/* Поля форм загального калькулятора магазину (дата з календарем, сітка). Підключено в layouts/app і layouts/guest. */
.sf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.sf-col { grid-column: span 6 / span 6; min-width: 0; }
@media (min-width: 768px) { .sf-half { grid-column: span 3 / span 3; } .sf-third { grid-column: span 2 / span 2; } .sf-full { grid-column: span 6 / span 6; } }
[x-cloak] { display: none !important; }
.sfd { position: relative; }
.sfd-field { position: relative; }
.sfd-input { padding-right: 2.75rem !important; letter-spacing: .02em; }
.sfd-invalid .sfd-input { border-color: #ef4444 !important; }
.sfd-btn { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; border-radius: .6rem; background: transparent; color: #475569; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sfd-btn:hover, .sfd-btn[aria-expanded="true"] { background: #eff6ff; color: #1d4ed8; }
.sfd-error { color: #dc2626; font-size: .875rem; margin-top: .25rem; }
.sfd-pop { position: fixed; z-index: 60; top: var(--sfd-top, 0); left: var(--sfd-left, 0); width: 19.5rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: .75rem; user-select: none; }
.sfd-head { display: flex; align-items: center; justify-content: space-between; gap: .25rem; margin-bottom: .5rem; }
.sfd-title { flex: 1; border: 0; background: transparent; font-weight: 700; font-size: 1rem; color: #0f172a; padding: .4rem; border-radius: .6rem; cursor: pointer; }
.sfd-title:hover { background: #f1f5f9; }
.sfd-nav { width: 2.2rem; height: 2.2rem; border: 0; border-radius: .6rem; background: transparent; color: #334155; cursor: pointer; font-size: 1.1rem; }
.sfd-nav:hover { background: #f1f5f9; }
.sfd-nav:disabled { opacity: .3; cursor: default; background: transparent; }
.sfd-week, .sfd-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .15rem; }
.sfd-week span { text-align: center; font-size: .75rem; color: #94a3b8; font-weight: 600; padding: .25rem 0; }
.sfd-week span:nth-child(n+6) { color: #f87171; }
.sfd-day { height: 2.4rem; border: 0; border-radius: 999px; background: transparent; color: #0f172a; font-size: .9rem; cursor: pointer; }
.sfd-day:hover:not(:disabled) { background: #eff6ff; }
.sfd-day.is-out { color: #cbd5e1; }
.sfd-day.is-today { box-shadow: inset 0 0 0 1.5px #93c5fd; font-weight: 700; }
.sfd-day.is-selected { background: #2563eb !important; color: #fff; font-weight: 700; box-shadow: none; }
.sfd-day:disabled { color: #e2e8f0; cursor: not-allowed; text-decoration: line-through; }
.sfd-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.sfd-cell { height: 2.8rem; border: 0; border-radius: .75rem; background: #f8fafc; color: #0f172a; font-size: .9rem; cursor: pointer; }
.sfd-cell:hover:not(:disabled) { background: #eff6ff; }
.sfd-cell.is-selected { background: #2563eb; color: #fff; font-weight: 700; }
.sfd-cell.is-today { box-shadow: inset 0 0 0 1.5px #93c5fd; }
.sfd-cell:disabled { color: #cbd5e1; cursor: not-allowed; }
.sfd-foot { display: flex; gap: .4rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid #f1f5f9; }
.sfd-quick { flex: 1; border: 0; border-radius: .6rem; background: #f1f5f9; color: #1e293b; font-size: .85rem; font-weight: 600; padding: .5rem; cursor: pointer; }
.sfd-quick:hover { background: #dbeafe; color: #1d4ed8; }
.sfd-hint { font-size: .75rem; color: #94a3b8; text-align: center; margin-top: .4rem; }
@media (max-width: 640px) {
    .sfd-pop { position: fixed; left: .5rem; right: .5rem; bottom: .5rem; top: auto; width: auto; border-radius: 1.25rem; padding: 1rem; }
    .sfd-day { height: 2.9rem; font-size: 1rem; }
    .sfd-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 59; }
}
@media (min-width: 641px) { .sfd-backdrop { display: none; } }

/* Картка «знайдено в реєстрі МТСБУ» над формою (partials/vehicle-found). */
.sf-vcard { margin-bottom: 1.75rem; background: #fff; border: 1px solid #dbeafe; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(37, 99, 235, .25); }
.sf-vcard-head { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: linear-gradient(135deg, #eff6ff 0%, #ffffff 70%); border-bottom: 1px solid #e0ecff; }
.sf-vcard-car { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 1rem; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .7); }
.sf-vcard-car svg { width: 1.9rem; height: 1.9rem; }
.sf-vcard-main { flex: 1; min-width: 0; }
.sf-vcard-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; color: #047857; background: #d1fae5; border-radius: 999px; padding: .2rem .6rem .2rem .45rem; margin-bottom: .35rem; }
.sf-vcard-badge svg { width: .85rem; height: .85rem; }
.sf-vcard-title { font-size: 1.4rem; line-height: 1.2; font-weight: 800; color: #0f172a; letter-spacing: -.01em; overflow-wrap: break-word; }
.sf-vcard-meta { margin-top: .2rem; font-size: .95rem; color: #475569; font-weight: 500; }
.sf-plate { flex: none; display: inline-flex; align-items: stretch; border: 2px solid #0f172a; border-radius: .55rem; background: #fff; overflow: hidden; box-shadow: 0 2px 0 rgba(15, 23, 42, .08); }
.sf-plate-ua { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; background: #1d4ed8; color: #fff; padding: .2rem .35rem; }
.sf-plate-ua i { display: block; width: .95rem; height: .65rem; border-radius: 1px; background: linear-gradient(#3b82f6 50%, #facc15 50%); }
.sf-plate-ua b { font-size: .55rem; line-height: 1; letter-spacing: .04em; }
.sf-plate-num { padding: .35rem .7rem; font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; color: #0f172a; white-space: nowrap; }
.sf-vcard-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem 1.5rem; margin: 0; padding: 1.25rem 1.5rem; }
.sf-spec { display: flex; align-items: flex-start; gap: .75rem; min-width: 0; }
.sf-spec.is-wide { grid-column: span 2; }
.sf-spec-icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: .75rem; background: #eff6ff; color: #2563eb; display: flex; align-items: center; justify-content: center; }
.sf-spec-icon svg { width: 1.25rem; height: 1.25rem; }
.sf-spec-text { min-width: 0; }
.sf-spec dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin: .05rem 0 .15rem; }
.sf-spec dd { margin: 0; font-size: 1rem; font-weight: 600; color: #0f172a; line-height: 1.35; overflow-wrap: break-word; }
.sf-spec dd.is-mono { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .03em; }
.sf-vcard-foot { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; background: #f8fafc; border-top: 1px solid #eef2f7; font-size: .875rem; color: #475569; }
.sf-vcard-foot svg { flex: none; width: 1.05rem; height: 1.05rem; color: #3b82f6; }
@media (max-width: 640px) {
    .sf-vcard-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .75rem .85rem; padding: 1rem; }
    .sf-vcard-car { width: 2.75rem; height: 2.75rem; border-radius: .85rem; }
    .sf-vcard-car svg { width: 1.6rem; height: 1.6rem; }
    .sf-vcard-title { font-size: 1.2rem; }
    .sf-vcard-meta { font-size: .875rem; }
    .sf-plate { grid-column: 1 / -1; justify-self: start; }
    .sf-plate-num { font-size: 1.05rem; }
    .sf-vcard-specs { grid-template-columns: 1fr; padding: 1rem; gap: .85rem; }
    .sf-spec.is-wide { grid-column: auto; }
    .sf-spec-icon { width: 2.1rem; height: 2.1rem; border-radius: .65rem; }
    .sf-spec-icon svg { width: 1.1rem; height: 1.1rem; }
    .sf-vcard-foot { align-items: flex-start; padding: .75rem 1rem; font-size: .82rem; }
    .sf-vcard-foot svg { margin-top: .1rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
    .sf-vcard-specs { grid-template-columns: 1fr 1fr; }
    .sf-spec.is-wide { grid-column: 1 / -1; }
}

/* ── Телефон: без «матрьошки» карток, щоб форма займала всю ширину ── */
@media (max-width: 640px) {
    .sf-landing-box { padding: .75rem !important; }
    .sf-outer { padding: .75rem !important; }
    .sf-outer-head { padding: 1rem .75rem !important; }
    .sf-shell { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; overflow: visible !important; }
    .sf-pad { padding: 1rem .25rem !important; }
}

/* ── Пропозиції: спінер промокоду, перерахунок, сортування ── */
.sf-spin { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sf-spin .7s linear infinite; flex-shrink: 0; }
.sf-spin-lg { width: 1.6rem; height: 1.6rem; border-width: 3px; color: #2563eb; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-promo-btn { min-width: 9.5rem; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.sf-offers { position: relative; }
.sf-offers > .space-y-4 { transition: opacity .2s, filter .2s; }
.sf-offers.is-busy > .space-y-4 { opacity: .35; filter: blur(1.5px); pointer-events: none; }
.sf-offers-busy { display: none; position: absolute; z-index: 5; left: 50%; top: 2.5rem; transform: translateX(-50%); align-items: center; gap: .75rem; padding: .85rem 1.25rem; background: #fff; border: 1px solid #dbeafe; border-radius: 999px; box-shadow: 0 10px 30px rgba(15, 23, 42, .14); font-weight: 600; color: #1e3a8a; white-space: nowrap; }
.sf-offers.is-busy .sf-offers-busy { display: inline-flex; }

.sf-sort { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: -0.5rem 0 1rem; }
.sf-sort-label { font-size: .875rem; color: #64748b; margin-right: .25rem; }
.sf-sort-opt { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 600; color: #334155; cursor: pointer; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.sf-sort-opt:hover { border-color: #93c5fd; color: #1d4ed8; }
.sf-sort-opt.is-active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.sf-sort-opt:focus-within { outline: 2px solid #93c5fd; outline-offset: 2px; }
.sf-sort-opt svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf-rating { display: inline-flex; align-items: center; gap: .25rem; margin-top: .25rem; font-size: .875rem; font-weight: 700; color: #b45309; }
.sf-rating svg { width: .95rem; height: .95rem; fill: #f59e0b; stroke: #f59e0b; stroke-width: 1.5; stroke-linejoin: round; }

/* ── Поле телефону з прапорцем (partials/phone-input) ── */
.sfp { position: relative; }
.sfp-field { display: flex !important; align-items: stretch; padding: 0 !important; background: #fff; border: 1px solid #cbd5e1; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.sfp-field.is-focus { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.sfp-country { display: inline-flex; align-items: center; gap: .45rem; padding: 0 .6rem 0 .8rem; border: 0; border-right: 1px solid #e2e8f0; background: #f8fafc; color: #0f172a; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sfp-country:hover { background: #eff6ff; }
.sfp-chev { width: .9rem; height: .9rem; fill: none; stroke: #64748b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfp-input { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; padding: .55rem .75rem; font-size: 1rem; letter-spacing: .02em; background: transparent; }
.sfp-ok { width: 1.15rem; height: 1.15rem; align-self: center; margin-right: .75rem; fill: none; stroke: #16a34a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sfp-pop { position: fixed; z-index: 60; top: var(--sfp-top, 0); left: var(--sfp-left, 0); width: var(--sfp-width, 18rem); min-width: 15rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; box-shadow: 0 12px 32px rgba(15, 23, 42, .16); padding: .35rem; }
.sfp-list { max-height: 18rem; overflow-y: auto; }
.sfp-opt { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: .65rem; background: transparent; text-align: left; cursor: pointer; color: #0f172a; font-size: .95rem; }
.sfp-opt:hover { background: #f1f5f9; }
.sfp-opt.is-selected { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.sfp-name { flex: 1; }
.sfp-code { color: #64748b; font-variant-numeric: tabular-nums; }

/* Прапорці — CSS, без картинок і емодзі (емодзі-прапорців немає у Windows). */
.sfp-flag { display: inline-block; width: 1.5rem; height: 1.05rem; border-radius: .2rem; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); flex-shrink: 0; background: #e2e8f0; }
.sfp-flag-ua { background: linear-gradient(#0057b7 50%, #ffd700 50%); }
.sfp-flag-pl { background: linear-gradient(#fff 50%, #dc143c 50%); }
.sfp-flag-md { background: linear-gradient(90deg, #0046ae 33.3%, #ffd200 33.3% 66.6%, #cc092f 66.6%); }
.sfp-flag-ro { background: linear-gradient(90deg, #002b7f 33.3%, #fcd116 33.3% 66.6%, #ce1126 66.6%); }
.sfp-flag-sk { background: linear-gradient(#fff 33.3%, #0b4ea2 33.3% 66.6%, #ee1c25 66.6%); }
.sfp-flag-hu { background: linear-gradient(#ce2939 33.3%, #fff 33.3% 66.6%, #477050 66.6%); }
.sfp-flag-cz { background: linear-gradient(#fff 50%, #d7141a 50%); overflow: hidden; }
.sfp-flag-cz::before { content: ''; display: block; width: 0; height: 0; border-top: .525rem solid transparent; border-bottom: .525rem solid transparent; border-left: .75rem solid #11457e; }
.sfp-flag-de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.sfp-flag-lt { background: linear-gradient(#fdb913 33.3%, #006a44 33.3% 66.6%, #c1272d 66.6%); }
.sfp-flag-lv { background: linear-gradient(#9e3039 40%, #fff 40% 60%, #9e3039 60%); }
.sfp-flag-ee { background: linear-gradient(#0072ce 33.3%, #000 33.3% 66.6%, #fff 66.6%); }
.sfp-flag-xx { background: #e0f2fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230369a1' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M4 12h16M12 4c2.5 2.5 2.5 13.5 0 16M12 4c-2.5 2.5-2.5 13.5 0 16'/%3E%3C/svg%3E") center / 80% no-repeat; }
@media (max-width: 640px) {
    .sfp-pop { left: .5rem; right: .5rem; bottom: .5rem; top: auto; width: auto; border-radius: 1.25rem; padding: .5rem; }
    .sfp-list { max-height: 60vh; }
    .sfp-opt { padding: .8rem .75rem; font-size: 1rem; }
}
.sf-sort-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.sf-sort-opt { position: relative; white-space: nowrap; }
.sf-sort-short { display: none; }
@media (max-width: 640px) {
    .sf-sort { flex-wrap: nowrap; gap: .4rem; }
    .sf-sort-label { display: none; }
    .sf-sort-opt { flex: 1 1 0; min-width: 0; justify-content: center; padding: .55rem .4rem; gap: .3rem; }
    .sf-sort-full { display: none; }
    .sf-sort-short { display: inline; }
    .sf-promo-btn { min-width: 0; flex-shrink: 0; padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* ── Поле з пошуком у довіднику: кнопка «очистити» всередині поля ── */
.sf-dict { position: relative; }
.sf-dict .sf-has-clear { padding-right: 2.75rem; }
.sf-clear { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #e2e8f0; color: #334155; cursor: pointer; transition: background .15s, color .15s; }
.sf-clear:hover { background: #fee2e2; color: #b91c1c; }
.sf-clear:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.sf-clear svg, .sf-chip-x svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sf-dict-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; }
.sf-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; margin-left: .15rem; border: 0; border-radius: 999px; background: #dbeafe; color: #1d4ed8; cursor: pointer; }
.sf-chip-x:hover { background: #fecaca; color: #b91c1c; }

/* ── Рейтинг у картці пропозиції та вікно відгуків (livewire/reviews) ── */
.sf-rating-btn { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; padding: .2rem .55rem .2rem .4rem; border: 1px solid #fde68a; border-radius: 999px; background: #fffbeb; color: #92400e; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.sf-rating-btn:hover { background: #fef3c7; border-color: #f59e0b; }
.sf-rating-btn svg { width: .95rem; height: .95rem; fill: #f59e0b; }
.sf-rating-btn span { font-weight: 500; color: #a16207; }
.sf-noscroll { overflow: hidden; }
.sf-rv-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
.sf-rv { position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(40rem, calc(100vw - 2rem)); max-height: min(85vh, 52rem); overflow-y: auto; background: #fff; border-radius: 1.5rem; box-shadow: 0 30px 80px rgba(15, 23, 42, .3); padding: 1.75rem; }
.sf-rv-close { position: absolute; right: 1rem; top: 1rem; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: #f1f5f9; color: #334155; cursor: pointer; }
.sf-rv-close:hover { background: #e2e8f0; }
.sf-rv-close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sf-rv-head { display: flex; align-items: center; gap: 1rem; padding-right: 2.5rem; }
.sf-rv-logo { width: 3.5rem; height: 3.5rem; object-fit: contain; border-radius: 1rem; border: 1px solid #e2e8f0; padding: .3rem; background: #fff; }
.sf-rv-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.sf-rv-title { font-size: 1.4rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.sf-rv-summary { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.75rem; align-items: center; margin-top: 1.25rem; padding: 1.25rem; border-radius: 1.25rem; background: linear-gradient(135deg, #fffbeb, #fff7ed); border: 1px solid #fde68a; }
.sf-rv-score { text-align: center; }
.sf-rv-big { font-size: 3rem; font-weight: 800; line-height: 1; color: #0f172a; letter-spacing: -.02em; }
.sf-rv-count { margin-top: .25rem; font-size: .85rem; color: #78716c; }
.sf-rv-stars { --size: 1.15rem; display: inline-block; width: calc(var(--size) * 5); height: var(--size); margin-top: .35rem;
    background: linear-gradient(90deg, #f59e0b calc(var(--v) / 5 * 100%), #e7e5e4 calc(var(--v) / 5 * 100%));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; }
.sf-rv-stars-sm { --size: .9rem; margin: 0 0 0 auto; }
.sf-rv-bars { display: grid; gap: .3rem; }
.sf-rv-bar { display: grid; grid-template-columns: 1rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .8rem; color: #78716c; }
.sf-rv-bar i { display: block; height: .5rem; border-radius: 999px; background: #f5f5f4; overflow: hidden; }
.sf-rv-bar b { display: block; height: 100%; border-radius: 999px; background: #f59e0b; }
.sf-rv-bar em { font-style: normal; text-align: right; }
.sf-rv-criteria { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; }
.sf-rv-crit { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; border-radius: .85rem; background: #fff; border: 1px solid #fde68a; font-size: .9rem; color: #57534e; }
.sf-rv-crit b { font-size: 1.05rem; color: #0f172a; }
.sf-rv-list { margin-top: 1.25rem; display: grid; gap: .85rem; }
.sf-rv-item { padding: 1rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 1.1rem; }
.sf-rv-item-head { display: flex; align-items: center; gap: .75rem; }
.sf-rv-avatar { width: 2.4rem; height: 2.4rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-weight: 800; }
.sf-rv-author { font-weight: 700; color: #0f172a; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.sf-rv-verified { font-size: .72rem; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; padding: .1rem .5rem; }
.sf-rv-meta { font-size: .8rem; color: #64748b; }
.sf-rv-text { margin-top: .6rem; color: #334155; line-height: 1.55; white-space: pre-line; overflow-wrap: break-word; }
.sf-rv-empty { padding: 2.5rem 1rem; text-align: center; color: #64748b; display: flex; justify-content: center; }
.sf-rv-empty-sm { padding: 1rem; }
.sf-rv-more { display: block; width: 100%; margin-top: 1rem; padding: .75rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #f8fafc; font-weight: 700; color: #1d4ed8; cursor: pointer; }
.sf-rv-more:hover { background: #eff6ff; }
@media (max-width: 640px) {
    .sf-rv { left: 0; right: 0; bottom: 0; top: auto; transform: none; width: 100%; max-height: 90vh; border-radius: 1.5rem 1.5rem 0 0; padding: 1.25rem 1rem; }
    .sf-rv-summary { grid-template-columns: 1fr; text-align: center; }
    .sf-rv-title { font-size: 1.2rem; }
}

/* ── Оцінка страховика на сторінці договору (site/partials/order-review) ── */
.sf-or { background: #fff; border: 1px solid #f1f5f9; border-radius: 1.5rem; box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .25); padding: 1.75rem; position: relative; overflow: hidden; }
.sf-or::before { content: ''; position: absolute; inset: 0 0 auto 0; height: .35rem; background: linear-gradient(90deg, #f59e0b, #f97316, #2563eb); }
.sf-or-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b45309; }
.sf-or-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; line-height: 1.25; margin-top: .15rem; }
.sf-or-sub { color: #64748b; margin-top: .35rem; }
.sf-or-main { margin: 1.25rem 0 .5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.sf-or-word { font-weight: 700; color: #92400e; min-height: 1.5rem; }
.sf-stars-in { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.sf-stars-in button { padding: .1rem; border: 0; background: transparent; cursor: pointer; line-height: 0; border-radius: .4rem; }
.sf-stars-in button:focus-visible { outline: 2px solid #93c5fd; }
.sf-stars-in svg { width: 1.6rem; height: 1.6rem; fill: #e7e5e4; transition: fill .12s, transform .12s; }
.sf-stars-in-lg svg { width: 2.6rem; height: 2.6rem; }
.sf-stars-in button.is-on svg { fill: #f59e0b; }
@media (hover: hover) {
    .sf-stars-in:hover button svg, .sf-stars-in:hover button.is-on svg { fill: #e7e5e4; }
    .sf-stars-in:hover button:hover svg, .sf-stars-in:hover button:hover ~ button svg { fill: #fbbf24; }
}
.sf-stars-in button:hover svg { transform: scale(1.12); }
.sf-or-crit { display: grid; gap: .25rem; margin-top: .75rem; padding: .35rem 1rem; background: #f8fafc; border-radius: 1rem; }
.sf-or-crit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.sf-or-crit-row + .sf-or-crit-row { border-top: 1px solid #e2e8f0; }
.sf-or-crit-label { font-weight: 700; color: #0f172a; }
.sf-or-crit-hint { font-size: .8rem; color: #64748b; }
.sf-or-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-top: 1.25rem; align-items: start; }
.sf-or-field { display: grid; align-content: start; gap: .35rem; font-size: .9rem; font-weight: 600; color: #334155; }
.sf-or-field em { font-style: normal; font-weight: 400; color: #94a3b8; }
.sf-or-field textarea, .sf-or-field input { width: 100%; border: 1px solid #cbd5e1; border-radius: .9rem; padding: .65rem .8rem; font-weight: 400; font-size: 1rem; }
.sf-or-field textarea:focus, .sf-or-field input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
.sf-or-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.25rem; }
.sf-or-submit { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.6rem; border: 0; border-radius: 1rem; background: #2563eb; color: #fff; font-weight: 700; cursor: pointer; }
.sf-or-submit:hover { background: #1d4ed8; }
.sf-or-submit:disabled { opacity: .7; cursor: wait; }
.sf-or-fine { font-size: .8rem; color: #94a3b8; flex: 1; min-width: 14rem; }
.sf-or-error { margin-top: .5rem; color: #b91c1c; font-size: .9rem; }
.sf-or-done { display: flex; align-items: flex-start; gap: 1rem; }
.sf-or-done-icon { width: 3rem; height: 3rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 1rem; background: #fef3c7; }
.sf-or-done-icon svg { width: 1.6rem; height: 1.6rem; fill: #f59e0b; }
.sf-or-done-body { flex: 1; }
.sf-or-done .sf-or-title { font-size: 1.2rem; }
.sf-or-note { margin-top: .4rem; color: #475569; }
.sf-or-link { border: 0; background: transparent; color: #2563eb; font-weight: 700; cursor: pointer; }
@media (max-width: 640px) {
    .sf-or { padding: 1.25rem 1rem; border-radius: 1.25rem; }
    .sf-or-title { font-size: 1.25rem; }
    .sf-or-fields { grid-template-columns: 1fr; }
    .sf-or-crit-row { flex-direction: column; align-items: flex-start; gap: .25rem; }
    .sf-stars-in svg { width: 1.9rem; height: 1.9rem; }
    .sf-or-done { flex-wrap: wrap; }
}

/* ── Адмінка → Оформлення (admin/themes) ── */
.st-page { padding: 2.5rem 0 4rem; background: #f8fafc; min-height: 100vh; }
.st-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.st-narrow { max-width: 44rem; }
.st-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.st-h1 { font-size: 1.75rem; font-weight: 800; color: #0f172a; margin: .25rem 0 .35rem; }
.st-muted { color: #64748b; font-size: .92rem; line-height: 1.5; }
.st-center { text-align: center; margin-top: 1.25rem; }
.st-tabs { display: flex; gap: .25rem; border-bottom: 1px solid #e2e8f0; margin-bottom: 1.5rem; overflow-x: auto; }
.st-tabs a { padding: .75rem 1rem; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.st-tabs a:hover { color: #0f172a; }
.st-tabs a.is-active { color: #1d4ed8; border-bottom-color: #2563eb; }
.st-tabs a span { font-size: .75rem; background: #e2e8f0; color: #475569; border-radius: 999px; padding: .05rem .45rem; }
.st-tabs a .st-dot { background: #f59e0b; color: #fff; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; }
.st-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.st-card:hover { box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .2); }
.st-card.is-active { border-color: #22c55e; box-shadow: 0 0 0 2px #bbf7d0; }
.st-shot { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.st-shot-default { display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #1e3a8a, #0ea5e9); color: #fff; font-weight: 800; font-size: 1.15rem; }
.st-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.st-title-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.st-title-row h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.st-meta { font-size: .8rem; color: #94a3b8; }
.st-badge { font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #e0e7ff; color: #3730a3; }
.st-badge-on { background: #dcfce7; color: #15803d; }
.st-badge-free { background: #fef3c7; color: #92400e; }
.st-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.st-tags span { font-size: .75rem; background: #f1f5f9; color: #475569; border-radius: .5rem; padding: .1rem .5rem; }
.st-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; align-items: center; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: .8rem; font-weight: 700; font-size: .875rem; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.st-btn:disabled { opacity: .7; cursor: wait; }
.st-btn-primary { background: #2563eb; color: #fff; }
.st-btn-primary:hover { background: #1d4ed8; }
.st-btn-ghost { background: #fff; border-color: #cbd5e1; color: #334155; }
.st-btn-ghost:hover { border-color: #2563eb; color: #1d4ed8; }
.st-btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.st-btn-danger:hover { background: #fef2f2; }
.st-link { color: #2563eb; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; }
.st-alert { padding: .9rem 1.1rem; border-radius: 1rem; margin-bottom: 1rem; border: 1px solid; font-size: .92rem; }
.st-alert ul { margin: .35rem 0 0 1.1rem; list-style: disc; }
.st-alert-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.st-alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.st-alert-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.st-code { font-family: ui-monospace, monospace; font-size: .8rem; background: rgba(255,255,255,.7); border-radius: .5rem; padding: .5rem .7rem; margin: .5rem 0; overflow-wrap: anywhere; }
.st-note { font-size: .82rem; border-radius: .6rem; padding: .4rem .6rem; }
.st-note-err { background: #fef2f2; color: #991b1b; }
.st-note-info { background: #eff6ff; color: #1e40af; }
.st-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px dashed #94a3b8; border-radius: 1.25rem; }
.st-upload > div { flex: 1; min-width: 14rem; }
.st-empty { padding: 3rem 1rem; text-align: center; color: #64748b; background: #fff; border-radius: 1.25rem; border: 1px solid #e2e8f0; }
.st-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 1.5rem; display: grid; gap: 1.1rem; margin-top: 1rem; }
.st-field { display: grid; gap: .35rem; }
.st-field > label { font-weight: 700; color: #334155; font-size: .9rem; }
.st-field input[type=text], .st-field input[type=url], .st-field textarea, .st-field select { width: 100%; border: 1px solid #cbd5e1; border-radius: .8rem; padding: .55rem .75rem; }
.st-hint { font-size: .8rem; color: #64748b; }
.st-color { display: flex; gap: .5rem; align-items: center; }
.st-color input[type=color] { width: 3rem; height: 2.5rem; border: 1px solid #cbd5e1; border-radius: .6rem; padding: .15rem; background: #fff; }
.st-check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }
.st-image { display: flex; align-items: center; gap: 1rem; }
.st-image img { max-height: 4rem; border-radius: .5rem; border: 1px solid #e2e8f0; }
.st-guide { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.25rem; padding: 2rem; color: #334155; line-height: 1.65; }
.st-guide h1 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 .75rem; }
.st-guide h2 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 2rem 0 .6rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.st-guide h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 1.25rem 0 .4rem; }
.st-guide p, .st-guide ul, .st-guide ol, .st-guide table, .st-guide pre { margin: .6rem 0; }
.st-guide ul { list-style: disc; padding-left: 1.4rem; }
.st-guide ol { list-style: decimal; padding-left: 1.4rem; }
.st-guide code { font-family: ui-monospace, monospace; font-size: .85em; background: #f1f5f9; border-radius: .35rem; padding: .1rem .35rem; }
.st-guide pre { background: #0f172a; color: #e2e8f0; border-radius: .9rem; padding: 1rem 1.1rem; overflow-x: auto; font-size: .83rem; line-height: 1.55; }
.st-guide pre code { background: none; padding: 0; color: inherit; }
.st-guide table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; }
.st-guide th, .st-guide td { border: 1px solid #e2e8f0; padding: .45rem .65rem; text-align: left; vertical-align: top; }
.st-guide th { background: #f8fafc; }
.st-guide blockquote { border-left: 3px solid #f59e0b; background: #fffbeb; padding: .6rem 1rem; border-radius: 0 .6rem .6rem 0; }
.st-guide a { color: #2563eb; text-decoration: underline; }
@media (max-width: 640px) { .st-guide { padding: 1.25rem 1rem; } .st-h1 { font-size: 1.4rem; } }

/* Підказка під полем форми (display.hint або опис поля з платформи). */
.sf-hint { margin-top: .35rem; font-size: .8rem; line-height: 1.45; color: #64748b; white-space: pre-line; }
.sf-group-head .sf-hint { margin-top: .15rem; }
.sf-sync { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: 1rem; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-weight: 600; cursor: pointer; }
.sf-sync input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; border-radius: .3rem; }
.sf-sync em { display: block; font-style: normal; font-weight: 400; font-size: .82rem; color: #3b5b9a; }

/* ── Меню для тем (core.menu): лише структура, кольори задає тема ── */
.shop-menu { display: flex; align-items: center; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.shop-menu li { position: relative; list-style: none; }
.shop-menu a, .shop-menu summary { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem 0; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; color: inherit; }
.shop-menu summary { list-style: none; }
.shop-menu summary::-webkit-details-marker { display: none; }
.shop-menu summary::after { content: ''; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.shop-menu details > ul { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 60; min-width: 15rem; margin: 0; padding: .4rem; list-style: none; border-radius: 1rem; background: #fff; color: #334155; box-shadow: 0 20px 45px -15px rgba(15, 23, 42, .35); border: 1px solid #e2e8f0; }
.shop-menu details > ul a { display: block; padding: .6rem .8rem; border-radius: .6rem; font-weight: 500; white-space: normal; }
.shop-menu details > ul a:hover { background: #f1f5f9; }
@media (max-width: 900px) {
    .shop-menu { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .shop-menu details > ul { position: static; box-shadow: none; margin-top: .35rem; min-width: 0; background: transparent; color: inherit; border: 0; padding: 0 0 0 .75rem; }
}

/* ---- Продовження поліса (/renew/{token}) ---- */
.rn-page { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; display: grid; gap: 1.5rem; }
.rn-hero { border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); color: #fff; background: linear-gradient(135deg, #059669, #0f766e); box-shadow: 0 25px 50px -25px rgba(4, 120, 87, .55); }
.rn-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a7f3d0; }
.rn-hero h1 { margin: .4rem 0 .5rem; font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 800; line-height: 1.2; }
.rn-hero p { margin: 0; max-width: 44rem; color: #ecfdf5; line-height: 1.55; }
.rn-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0 0; }
.rn-facts div { border-radius: 1rem; background: rgba(255, 255, 255, .12); padding: .85rem 1rem; }
.rn-facts dt { font-size: .75rem; color: #a7f3d0; }
.rn-facts dd { margin: .25rem 0 0; font-weight: 700; word-break: break-word; }
.rn-note { border-radius: 1.5rem; border: 1px solid #fde68a; background: #fffbeb; color: #92400e; padding: 1.25rem 1.5rem; line-height: 1.6; }
.rn-note a { display: inline-block; margin-left: .25rem; font-weight: 700; color: #b45309; }
@media (max-width: 760px) { .rn-facts { grid-template-columns: 1fr 1fr; } }

/* ---- Кабінет: оцінка страховика за полісом ---- */
.sf-ar-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: .9rem; border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; font-weight: 600; font-size: .9rem; cursor: pointer; }
.sf-ar-btn:hover { background: #fef3c7; }
.sf-ar-btn.is-done { border-color: #e2e8f0; background: #fff; color: #475569; }
.sf-ar-close { margin-top: .5rem; background: none; border: 0; color: #64748b; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.sf-ar-wait { color: #cbd5e1; }

/* ---- Заповнити за фото документів ---- */
.sf-pf { margin-bottom: 1.25rem; display: grid; gap: .75rem; }
.sf-pf-open { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; padding: .9rem 1.1rem; border-radius: 1rem; border: 1px dashed #a78bfa; background: #f5f3ff; color: #4c1d95; cursor: pointer; transition: background .15s, border-color .15s; }
.sf-pf-open:hover { background: #ede9fe; border-color: #7c3aed; }
.sf-pf-open > span:first-child { font-size: 1.6rem; }
.sf-pf-open b { display: block; }
.sf-pf-open small { display: block; color: #6d28d9; font-size: .85rem; }
.sf-pf-panel { border-radius: 1.25rem; border: 1px solid #ddd6fe; background: #faf5ff; padding: 1rem; display: grid; gap: .75rem; }
.sf-pf-head { display: flex; justify-content: space-between; align-items: center; color: #4c1d95; }
.sf-pf-x { background: none; border: 0; color: #7c3aed; font-size: 1rem; cursor: pointer; }
.sf-pf-drop { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.25rem; border-radius: 1rem; border: 2px dashed #c4b5fd; background: #fff; text-align: center; cursor: pointer; color: #334155; }
.sf-pf-drop:hover { border-color: #7c3aed; }
.sf-pf-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-pf-drop > span { font-size: 1.8rem; }
.sf-pf-drop small { color: #64748b; font-size: .82rem; }
.sf-pf-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.sf-pf-thumb { position: relative; aspect-ratio: 1; border-radius: .75rem; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; color: #64748b; }
.sf-pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-pf-thumb button { position: absolute; top: .25rem; right: .25rem; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); width: 1.4rem; height: 1.4rem; font-size: .7rem; cursor: pointer; }
.sf-pf-go { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.25rem; border: 0; border-radius: .9rem; background: #7c3aed; color: #fff; font-weight: 700; cursor: pointer; }
.sf-pf-go:disabled { opacity: .5; cursor: not-allowed; }
.sf-pf-go .sf-spin { color: #fff; }
.sf-pf-note { color: #64748b; font-size: .8rem; margin: 0; }
.sf-pf-error { color: #b91c1c; font-size: .9rem; }
.sf-pf-done { padding: .85rem 1rem; border-radius: 1rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .92rem; }
.sf-pf-warn { display: block; margin-top: .25rem; color: #92400e; }
