/* Robnety Veikala Asistents */
.rsa-fab, .rsa-panel, .rsa-overlay { --rsa-ink: #1d1d1b; --rsa-muted: #6b6a66; --rsa-line: #e6e3dc; --rsa-soft: #f7f5f0; --rsa-bg: #fff; box-sizing: border-box; font-family: inherit; }
.rsa-fab *, .rsa-panel * { box-sizing: border-box; }
html.rsa-locked { overflow: hidden; }

/* Peldošā poga */
.rsa-fab { position: fixed; right: 20px; bottom: var(--rsa-offset, 24px); z-index: 99990; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; background: var(--rsa-accent, #BA7517); color: #fff; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .18s ease, box-shadow .18s ease; }
.rsa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.rsa-fab:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.rsa-fab-icon { flex: none; }
.rsa-fab.rsa-pos-middle { top: 50%; bottom: auto; right: 0; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; border-radius: 10px 0 0 10px; padding: 16px 11px; }
.rsa-fab.rsa-pos-middle:hover { transform: translateY(-50%) rotate(180deg) translateY(0); }
.rsa-fab.rsa-pos-middle .rsa-fab-icon { transform: rotate(90deg); }
@media (max-width: 600px) {
	.rsa-fab.rsa-pos-bottom { right: 14px; padding: 14px; }
	.rsa-fab.rsa-pos-bottom .rsa-fab-label { display: none; }
	.rsa-fab.rsa-hide-mobile { display: none; }
}

/* Panelis */
.rsa-overlay { position: fixed; inset: 0; z-index: 99991; background: rgba(20,18,14,.42); opacity: 0; transition: opacity .2s ease; }
.rsa-overlay.is-visible { opacity: 1; }
.rsa-panel { position: fixed; z-index: 99992; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--rsa-bg); color: var(--rsa-ink); box-shadow: -10px 0 40px rgba(0,0,0,.16); transform: translateX(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); font-size: 15px; line-height: 1.5; }
.rsa-panel.is-visible { transform: none; }
.rsa-panel[hidden], .rsa-overlay[hidden] { display: none; }
.rsa-panel-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.rsa-panel-title { font-weight: 700; font-size: 16px; flex: 1; }
.rsa-step { font-size: 13px; color: var(--rsa-muted); font-variant-numeric: tabular-nums; }
.rsa-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--rsa-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rsa-close:hover { background: var(--rsa-soft); }
.rsa-progress { height: 3px; background: var(--rsa-soft); margin: 0 20px; border-radius: 3px; overflow: hidden; }
.rsa-progress span { display: block; height: 100%; width: 0; background: var(--rsa-accent, #BA7517); transition: width .3s ease; }
.rsa-body { flex: 1; overflow-y: auto; padding: 22px 20px; overscroll-behavior: contain; }
.rsa-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rsa-line); flex-wrap: wrap; }
.rsa-foot-right { display: flex; gap: 8px; margin-left: auto; }

/* Jautājumi */
.rsa-intro p { font-size: 17px; margin: 0; color: var(--rsa-ink); }
.rsa-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.rsa-q-title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; padding: 0; }
.rsa-q-help, .rsa-q-hint { margin: 0 0 12px; color: var(--rsa-muted); font-size: 14px; }
.rsa-q-hint { font-size: 13px; }
.rsa-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.rsa-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--rsa-line); border-radius: 10px; background: var(--rsa-bg); color: var(--rsa-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.rsa-opt:hover { border-color: #cfcac0; background: var(--rsa-soft); }
.rsa-opt:focus-visible { outline: 2px solid var(--rsa-accent, #BA7517); outline-offset: 2px; }
.rsa-opt-mark { flex: none; width: 20px; height: 20px; border: 1.5px solid #bdb8ae; border-radius: 50%; position: relative; transition: all .15s; }
.rsa-opt.is-multi .rsa-opt-mark { border-radius: 5px; }
.rsa-opt.is-selected { border-color: var(--rsa-accent, #BA7517); background: color-mix(in srgb, var(--rsa-accent, #BA7517) 8%, #fff); }
.rsa-opt.is-selected .rsa-opt-mark { border-color: var(--rsa-accent, #BA7517); background: var(--rsa-accent, #BA7517); }
.rsa-opt.is-selected .rsa-opt-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rsa-err { color: #b3261e; font-size: 14px; margin: 10px 0 0; min-height: 1em; }

/* Pogas */
.rsa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; }
.rsa-btn-primary { background: var(--rsa-accent, #BA7517); color: #fff; }
.rsa-btn-primary:hover { filter: brightness(.94); color: #fff; }
.rsa-btn-ghost { background: transparent; color: var(--rsa-ink); border-color: var(--rsa-line); }
.rsa-btn-ghost:hover { background: var(--rsa-soft); }
.rsa-btn:disabled { opacity: .6; cursor: default; }
.rsa-btn:focus-visible { outline: 2px solid var(--rsa-accent, #BA7517); outline-offset: 2px; }
.rsa-inline-btn { cursor: pointer; }

/* Rezultāti */
.rsa-loading { display: flex; align-items: center; gap: 12px; color: var(--rsa-muted); padding: 30px 0; }
.rsa-spinner { width: 20px; height: 20px; border: 2px solid var(--rsa-line); border-top-color: var(--rsa-accent, #BA7517); border-radius: 50%; animation: rsa-spin .8s linear infinite; }
@keyframes rsa-spin { to { transform: rotate(360deg); } }
.rsa-res-title { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.rsa-res-text { color: var(--rsa-muted); font-size: 14px; margin: 0 0 16px; }
.rsa-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rsa-product { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--rsa-line); border-radius: 12px; background: var(--rsa-bg); }
.rsa-product.is-best { border-color: var(--rsa-accent, #BA7517); border-width: 1.5px; }
.rsa-p-img { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--rsa-soft); }
.rsa-p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rsa-p-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rsa-badge { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--rsa-accent, #BA7517); }
.rsa-p-name { color: var(--rsa-ink); font-weight: 600; text-decoration: none; font-size: 14px; line-height: 1.3; }
.rsa-p-name:hover { text-decoration: underline; }
.rsa-p-reason { font-size: 12px; color: var(--rsa-muted); }
.rsa-p-price { font-size: 14px; font-weight: 600; }
.rsa-p-price del { color: var(--rsa-muted); font-weight: 400; margin-right: 4px; }
.rsa-p-price ins { text-decoration: none; }
.rsa-p-add { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--rsa-line); background: var(--rsa-bg); color: var(--rsa-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-weight: 700; }
.rsa-p-add:hover { border-color: var(--rsa-accent, #BA7517); color: var(--rsa-accent, #BA7517); }
.rsa-p-add.is-added { background: var(--rsa-accent, #BA7517); border-color: var(--rsa-accent, #BA7517); color: #fff; }
.rsa-p-view { width: auto; border-radius: 999px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.rsa-empty p { margin: 0 0 12px; }
.rsa-contact { text-align: center; font-size: 14px; margin: 16px 0 0; }
.rsa-contact a { color: var(--rsa-accent, #BA7517); }

@media (max-width: 600px) {
	.rsa-panel { width: 100vw; }
	.rsa-q-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.rsa-panel, .rsa-overlay, .rsa-fab, .rsa-progress span { transition: none; }
}
