:root {
  color-scheme: light;
  --ink: #172018;
  --muted: #687068;
  --paper: #f4f2ea;
  --card: #fffdf7;
  --line: rgba(23, 32, 24, .13);
  --green: #27633e;
  --lime: #d9ef8b;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(217, 239, 139, .65), transparent 24rem),
    linear-gradient(180deg, #f8f6ef 0, var(--paper) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 70px; position: relative; }
.hero-body { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 48px; }
.hero-copy { flex: 999 1 520px; min-width: 0; max-width: 720px; }
.topbar { width: min(1120px, calc(100vw - 40px)); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 20px; display: inline-flex; align-items: center; gap: 9px; }
.brand span { display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--green); border-radius: 50% 50% 45% 55%; }
.services-link { margin-left: auto; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.services-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-trigger { min-height: 42px; padding: 6px 7px 6px 15px; gap: 10px; border-radius: 99px; font-size: 13px; }
.cart-count { min-width: 29px; height: 29px; padding: 0 7px; display: grid; place-items: center; border-radius: 99px; color: var(--green); background: var(--lime); }
.eyebrow { margin-top: 82px; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
h1 { margin: 16px 0 18px; font-size: clamp(54px, 8vw, 96px); line-height: .92; letter-spacing: -.065em; font-weight: 600; }
h1 em { color: var(--green); font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.045em; }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.55; max-width: 620px; }

form {
  margin-top: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, .78);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) minmax(190px, 1fr) auto;
  gap: 8px;
  box-shadow: 0 20px 60px rgba(34, 55, 38, .08);
}

label, .form-field { padding: 10px 16px 8px; border-right: 1px solid var(--line); min-width: 0; }
.form-field > label { padding: 0; border: 0; }
label > span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
input { width: 100%; padding: 8px 0 5px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
input::placeholder { color: #9ca29b; }
input[aria-invalid="true"] { color: #a52a2a; }
.field-error { display: block; min-height: 0; color: #a52a2a; font-size: 11px; }
.field-error:not(:empty) { padding-top: 4px; }
.address-field {
  position: relative;
  padding: 9px 16px 7px 15px;
  border: 1px solid transparent;
  border-right-color: var(--line);
}
.address-field:has(input[aria-expanded="true"]) {
  border-color: var(--line);
  border-bottom-color: transparent;
  border-radius: 12px 12px 0 0;
  background: var(--card);
}
.address-suggestions-panel {
  width: calc(100% + 2px);
  max-height: min(360px, 55vh);
  position: absolute;
  z-index: 10;
  top: 100%;
  left: -1px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--ink);
  background: var(--card);
  box-shadow: none;
}
.address-suggestions-list { margin: 0; padding: 0; list-style: none; }
.address-suggestion-option {
  min-height: 44px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.address-suggestion-option[aria-selected="true"] { color: #174a2d; background: #e8f0d7; }
.address-suggestions-attribution { display: block; padding: 9px 14px 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.address-suggestions-attribution a { color: var(--green); font-weight: 750; text-underline-offset: 2px; }
button { border: 0; border-radius: 15px; padding: 0 22px; min-height: 58px; background: var(--green); color: white; font: inherit; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 28px; cursor: pointer; transition: transform .18s ease, background .18s ease; }
button:hover { transform: translateY(-2px); background: #194d2e; }
button:disabled { cursor: wait; opacity: .75; transform: none; }
.add-button:disabled { cursor: not-allowed; opacity: .62; color: var(--muted); background: #e4e3dc; }
.add-button:disabled:hover { transform: none; color: var(--muted); background: #e4e3dc; }

.provider { max-width: calc(100% - 34px); position: absolute; z-index: 2; top: 17px; left: 17px; padding: 8px 11px; border: 1px solid rgba(23,32,24,.1); border-radius: 16px; background: rgba(255,255,255,.9); backdrop-filter: blur(9px); font-size: 11px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.card--samokat .visual img { width: 82%; height: 78%; object-fit: contain; filter: brightness(1.05) saturate(.98); }
.card-body { min-width: 0; padding: 74px 26px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.match-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.attribute-difference { padding-left: 14px; position: relative; color: #684918; font-size: 10px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.price-time { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.pill { padding: 6px 8px; background: #f1f0e9; border-radius: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.product-link { color: var(--green); text-decoration: none; font-size: 13px; font-weight: 700; }
.product-link:hover { text-decoration: underline; }
.add-button { min-height: 38px; padding: 8px 12px; border-radius: 11px; gap: 0; font-size: 12px; white-space: nowrap; }

.empty-mark { font: italic 64px "Playfair Display", Georgia, serif; color: var(--green); }
.empty-title { margin: 5px 0 8px; }
.empty-copy { color: var(--muted); line-height: 1.5; margin: 0; }
.disclaimer { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 18px 2px; }
.disclaimer-summary { cursor: pointer; list-style: none; }
.disclaimer-summary::-webkit-details-marker { display: none; }
.disclaimer-more { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.disclaimer[open] .disclaimer-more { text-decoration: none; }
.disclaimer-full { margin: 8px 0 0; }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-legal { color: var(--muted); text-transform: none; letter-spacing: normal; font-size: 13px; text-underline-offset: 3px; }
.footer-legal:hover { color: var(--ink); }

/* The page-only cart (no account workspace). */
.cart-loading, .cart-error { margin: 28px 0; color: var(--muted); }
.cart-error { color: #a52a2a; }
.cart-empty { min-height: 360px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cart-group { padding: 22px 0 4px; }
.cart-group + .cart-group { border-top: 1px solid var(--line); }
.cart-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.cart-provider { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.cart-provider-total { font-size: 14px; }
.cart-line { padding: 13px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-top: 1px solid rgba(23, 32, 24, .07); }
.cart-line-title { margin: 0 0 5px; font-size: 14px; line-height: 1.3; }
.cart-line-price { color: var(--muted); font-size: 11px; }
.cart-line-limit { margin-top: 4px; color: #5c572b; font-size: 10px; font-weight: 700; }
.quantity-controls { display: flex; align-items: center; gap: 5px; }
.quantity-button { width: 30px; min-height: 30px; padding: 0; border-radius: 9px; color: var(--green); background: #edf0e2; font-size: 17px; }
.quantity-button:hover { transform: none; }
.quantity-button:disabled { cursor: default; opacity: .35; }
.quantity-value { min-width: 21px; text-align: center; font-size: 12px; font-weight: 750; }
.remove-button { min-height: 30px; padding: 5px 7px; border-radius: 8px; color: #8a3d35; background: transparent; font-size: 10px; }
.remove-button:hover { color: white; background: #8a3d35; transform: none; }
.basket-package-comparison { color: var(--ink); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.basket-quantity-difference { padding: 6px 8px; border-radius: 7px; background: #f7efdf; }
/* The cart drawer (owner's mockup «Корзина и «Найти дешевле»», 08.10.2026): the store's tile and
   «Корзина» on top, the address, the lines, and a green panel with the totals and the actions. */
.cart-dialog { width: min(520px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; color: var(--ink); background: var(--card); box-shadow: -24px 0 70px rgba(23, 32, 24, .2); }
.cart-dialog::backdrop { background: rgba(23, 32, 24, .38); backdrop-filter: blur(3px); }
.cart-shell { min-height: 100%; height: 100%; display: flex; flex-direction: column; }
.cart-header { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px 24px; }
.cart-brand { display: none; }
.cart-heading { flex: 1; min-width: 0; }
.cart-header h2 { margin: 0; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; font-weight: 700; }
.cart-header .cart-eyebrow { margin: 0 0 4px; }
.cart-subtitle { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.cart-subtitle .rz-skeleton { display: block; width: 168px; height: 12px; margin-top: 7px; border-radius: 6px; }
.cart-mark { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; }
.cart-mark .rz-skeleton { width: 48px; height: 48px; border-radius: 16px; }
.cart-mark > .store-tile { width: 48px; height: 48px; border-radius: 16px; font-size: 20px; }
.cart-mark--pair > .store-tile { position: absolute; width: 32px; height: 32px; border-radius: 11px; font-size: 15px; }
.cart-mark--pair > .store-tile:first-child { left: 0; top: 0; }
.cart-mark--pair > .store-tile:last-child { right: 0; bottom: 0; border: 2px solid var(--card); }
.store-tile { display: grid; place-items: center; box-sizing: border-box; font-weight: 800; line-height: 1; color: #4f554f; background: #eceee6; }
.store-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.store-tile--samokat { color: #8c2350; background: #fbe3ea; }
.store-tile--perekrestok { color: #1f6b3a; background: #dcefe0; }
.store-tile--yandex-lavka { color: #7a5600; background: #fff0c2; }
.store-tile--kuper { color: #2d4a9a; background: #e3e8f8; }
.cart-tools { display: flex; align-items: center; gap: 12px; }
/* «Очистить корзину» (owner's mockup, 12.10.2026): a quiet square in the header, then one question. */
.cart-dialog .cart-clear-all { width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: transparent; }
.cart-dialog .cart-clear-all:hover { transform: none; background: #f4f2ea; }
.cart-dialog .cart-clear-all:disabled { cursor: not-allowed; opacity: .5; }
.cart-clear-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-confirm { width: min(408px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; padding: 26px 24px 24px; border: 0; border-radius: 26px; color: var(--ink); background: var(--card); box-shadow: 0 24px 60px rgba(23, 32, 24, .3); }
.cart-confirm::backdrop { background: rgba(23, 32, 24, .42); }
.cart-confirm-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #a12a22; background: #fbe6e3; }
.cart-confirm-mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-confirm h2 { margin: 16px 0 0; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; font-weight: 700; }
.cart-confirm p { margin: 8px 0 0; color: #4f554f; font-size: 14px; line-height: 1.45; }
.cart-confirm-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-confirm-actions button { min-height: 48px; padding: 0 14px; gap: 0; border-radius: 14px; font-size: 15px; font-weight: 800; }
.cart-confirm-actions .cart-confirm-cancel { border: 1px solid rgba(23, 32, 24, .16); color: var(--ink); background: transparent; }
.cart-confirm-actions .cart-confirm-cancel:hover { transform: none; background: #f4f2ea; }
.cart-confirm-actions .cart-confirm-danger { color: #fff; background: #b3261e; }
.cart-confirm-actions .cart-confirm-danger:hover { transform: none; background: #8f1e18; }
/* A flex button drops the span's leading space: «Очистить корзину» on a phone keeps its gap. */
.cart-confirm-danger .cart-narrow { margin-left: .3em; }
.cart-state--cleared { padding-top: 14px; }
.cart-state--cleared::after { content: ""; margin-top: auto; }
.cart-cleared { align-self: flex-start; margin: 0 0 auto; padding: 8px 12px 8px 9px; display: flex; align-items: center; gap: 7px; border-radius: 99px; color: var(--green); background: #eef5d6; font-size: 13px; font-weight: 700; }
.cart-cleared svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-dialog .cart-carts-toggle { min-height: 44px; padding: 0 10px 0 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; }
.cart-dialog .cart-carts-toggle:hover { transform: none; background: #f4f2ea; }
.cart-carts-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-carts-toggle[aria-expanded="true"] .cart-carts-chevron { transform: rotate(180deg); }
.cart-carts-icon { display: none; }
.icon-button { font-size: 26px; font-weight: 400; }
.cart-dialog .icon-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: #eceadf; }
.cart-dialog .icon-button:hover { transform: none; color: var(--ink); background: #e2dfd2; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cart-content { position: relative; flex: 1; min-height: 0; padding: 0 24px 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding: 18px; }
.comparison-first-frame { display: none; }
/* The list fades under the panel, like the mockup's last row. */
.workspace-enabled .cart-content::after { content: ""; position: sticky; bottom: 0; display: block; height: 28px; margin-top: -28px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 253, 247, 0), var(--card)); }
.workspace-status, .workspace-error { flex-shrink: 0; margin: 0; padding: 12px 24px; font-size: 12px; line-height: 1.45; background: #eef2e7; }
.workspace-status:empty { display: none; }
.workspace-error { color: #8a3d35; background: #fbebe6; }
.workspace-copy { margin: 6px 0; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.workspace-warning { margin: 5px 0; color: #785421; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.workspace-empty { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 16px 0; }
.workspace-text-button { min-height: 44px; padding: 8px 0; border-radius: 6px; color: var(--green); background: transparent; font-size: 13px; box-shadow: none; }
.workspace-text-button:hover { color: var(--green); background: transparent; text-decoration: underline; text-underline-offset: 4px; transform: none; }
.workspace-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 12px 0; padding: 0; border: 0; font-size: 12px; }
.workspace-field > span { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: normal; font-size: 13px; }
.workspace-field input, .workspace-field select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; font-size: 16px; }
.workspace-details { margin: 0; border-top: 1px solid var(--line); }
.workspace-details > summary { min-height: 44px; padding: 13px 0; cursor: pointer; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.workspace-details summary:focus-visible, .workspace-enabled button:focus-visible, .cart-content input:focus-visible, .cart-content select:focus-visible, .cart-content a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.workspace-products-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.workspace-products-heading h3 { margin: 0; font-size: 14px; font-weight: 600; }
.workspace-line-description { display: flex; min-width: 0; gap: 10px; align-items: flex-start; }
.workspace-product-info { min-width: 0; }
.workspace-product-info p { margin: 3px 0 0; }
.workspace-product-thumb { display: block; position: relative; width: 64px; height: 64px; flex: 0 0 64px; overflow: hidden; border-radius: 12px; background: #f1f1e9; color: #b0b5a7; }
.workspace-product-thumb > svg { position: absolute; width: 26px; height: 26px; inset: 19px; }
.workspace-product-image { display: block; position: relative; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: white; }
.workspace-line-price { display: flex; flex-direction: column; align-items: flex-start; max-width: 150px; text-align: left; }
.workspace-line-price strong { font-size: 15px; font-weight: 650; line-height: 1.4; }
.workspace-line-price .workspace-line-price--muted { color: var(--muted); font-weight: 600; }
.workspace-line-price .workspace-copy { margin: 2px 0 0; font-size: 11px; }

/* The address: a pin, «Доставка» and «Изменить» on one soft bar. */
.cart-address { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 56px; margin: 0 0 4px; padding: 6px 6px 6px 14px; border-radius: 16px; background: #f4f2ea; }
.cart-address-pin, .cmp-address-pin { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-address.is-loading .cart-address-pin { stroke: #9aa096; }
.cart-address-text { flex: 1; min-width: 0; }
.cart-address-caption, .cmp-address-caption { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.cart-address-text > p { margin: 1px 0 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.cart-address-text .rz-skeleton { display: block; width: 230px; max-width: 100%; height: 13px; margin-top: 5px; border-radius: 6px; background: #e6e5dc; }
.cart-dialog .cart-address-edit { min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.cart-address .saved-address-picker { max-width: 150px; padding: 0 4px; }
.cart-address.is-editing { display: block; padding: 4px 14px 12px; }
.workspace-address-form { width: 100%; margin: 0; padding: 0; display: block; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.workspace-address-form .workspace-field { margin-top: 8px; }
.workspace-address > .saved-address-picker { max-width: 100%; padding: 8px 0 0; }
.cart-address.is-editing > .saved-address-picker { flex-basis: auto; }

/* «Мои корзины»: the account's carts under the header. */
.cart-carts { margin: 0 0 10px; padding: 8px 14px 6px; border: 1px solid var(--line); border-radius: 16px; background: #fffef9; }
.cart-carts-list { display: grid; gap: 4px; }
.cart-dialog .cart-carts-item { min-height: 44px; padding: 0 12px; display: flex; justify-content: space-between; gap: 12px; border-radius: 12px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 650; text-align: left; }
.cart-dialog .cart-carts-item:hover { transform: none; background: #f4f2ea; }
.cart-dialog .cart-carts-item.is-current { background: #eef5d6; }
.cart-carts-count { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cart-carts-form { display: flex; gap: 8px; align-items: center; margin-top: 6px; padding: 0; }
.cart-carts-form input { flex: 1; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; }
.cart-carts-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
.cart-dialog .cart-carts-delete { color: #8a3d35; }

/* A line: picture, name and package, the line's amount and its stepper. */
.cart-items { padding: 4px 0 0; }
.cart-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 0 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid #eef1ec; }
.cart-item-picture { position: relative; width: 60px; height: 60px; }
.cart-item-picture .workspace-product-thumb { width: 60px; height: 60px; flex-basis: 60px; border-radius: 16px; background: #f1f0e8; }
.cart-item-picture .workspace-product-thumb > svg { inset: 17px; }
.cart-item-store { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border: 2px solid var(--card); border-radius: 50%; font-size: 11px; }
.cart-item-info { padding-top: 2px; }
.cart-item-info h4 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.cart-item-meta { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cart-item-info .workspace-warning { margin: 4px 0 0; }
.cart-chip { display: inline-flex; margin-top: 7px; padding: 3px 9px; border-radius: 99px; color: #3f453f; background: #ebe9e0; font-size: 12px; font-weight: 700; }
.cart-chip--ask { color: #7a4d0b; background: #fbf0dc; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-total { font-size: 16px; line-height: 1.25; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item-total.workspace-line-price--muted { color: var(--muted); font-weight: 650; }
.cart-item--unavailable .workspace-product-thumb { opacity: .45; }
.cart-item--unavailable h4 { color: #4f554f; }
.cart-item.is-saving .cart-item-total { color: #9aa096; animation: rz-shimmer 1.2s ease-in-out infinite; }
.workspace-quantity { flex-shrink: 0; }
.workspace-stepper { display: flex; align-items: center; height: 40px; border-radius: 13px; background: #f1f0e8; }
.workspace-stepper.is-saving { box-shadow: inset 0 0 0 2px var(--green); }
.cart-dialog .workspace-step, .cart-dialog .cart-item-bin { width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; margin: -2px 0; padding: 0; display: grid; place-items: center; border-radius: 13px; color: var(--ink); background: transparent; }
.cart-dialog .workspace-step--bin, .cart-dialog .cart-item-bin { color: var(--muted); }
.cart-dialog .cart-item-bin { height: 40px; min-height: 40px; margin: 0; background: #f1f0e8; }
.cart-dialog .workspace-step svg, .cart-dialog .cart-item-bin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cart-dialog .workspace-step--bin svg, .cart-dialog .cart-item-bin svg { stroke-width: 1.8; }
.cart-dialog .workspace-step:hover, .cart-dialog .cart-item-bin:hover { transform: none; color: var(--green); background: rgba(39, 99, 62, .08); }
.cart-dialog .workspace-step--bin:hover, .cart-dialog .cart-item-bin:hover { color: #8a3d35; background: #fbebe6; }
/* A pending write elsewhere never fades the other lines; only the saved one spins. */
.cart-dialog .cart-item .workspace-stepper button:disabled { opacity: 1; cursor: default; }
.cart-dialog .cart-item.is-saving .workspace-stepper button:disabled { color: #9aa096; }
.cart-dialog .workspace-quantity-value { min-width: 24px; height: 44px; min-height: 44px; margin: -2px 0; padding: 0 2px; border-radius: 10px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-dialog .workspace-quantity-value:hover { transform: none; color: var(--green); background: transparent; }
.cart-dialog .workspace-stepper--amount .workspace-quantity-value { padding: 0 14px; }
.workspace-quantity-saving { display: grid; place-items: center; min-width: 24px; }
.workspace-quantity-saving::before { content: ""; display: block; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid #cfd7c8; border-top-color: var(--green); border-radius: 50%; animation: rz-spin .9s linear infinite; }
.workspace-quantity-editor { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; gap: 8px; align-items: center; margin: 12px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; }
.workspace-quantity-editor input, .workspace-quantity-editor select { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 15px; border: 1px solid rgba(23, 32, 24, .2); border-radius: 12px; background: white; color: var(--ink); }
.workspace-quantity-editor input { border: 2px solid var(--green); }
.workspace-quantity-editor select { padding: 0 8px; }
.workspace-quantity-editor .workspace-quantity-save { width: auto; min-height: 44px; margin: 0; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.workspace-quantity-editor .workspace-text-button { grid-column: 1 / -1; justify-self: start; min-height: 36px; padding: 0; }
.workspace-quantity-editor .workspace-line-error, .workspace-quantity-help { grid-column: 1 / -1; }
.workspace-quantity-help { width: 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.workspace-line-error { grid-column: 1 / -1; margin: 0; color: #8a3d35; font-size: 12px; }
.cart-more { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 14px; }
.cart-dialog .cart-more-add, .cart-dialog .cart-more-import { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.cart-dialog .cart-more-add { border: 1px dashed rgba(39, 99, 62, .5); color: var(--green); background: transparent; }
.cart-dialog .cart-more-import { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.cart-dialog .cart-more-add:hover, .cart-dialog .cart-more-import:hover { transform: none; background: #f4f2ea; }
.cart-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cart-manual { border-top: 0; }
.cart-manual > summary { min-height: 36px; padding: 4px 0; color: var(--green); font-size: 13px; font-weight: 600; }
.cart-note { margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workspace-manual-form { display: block; margin: 0; padding: 0 0 16px; border: 0; border-radius: 0; box-shadow: none; background: none; }
.workspace-check { display: flex; align-items: center; min-height: 44px; gap: 10px; padding: 10px 0; border: 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.workspace-check > span { text-transform: none; letter-spacing: normal; font-size: 13px; font-weight: 500; line-height: 1.5; color: inherit; }
.workspace-check input { width: 20px; height: 20px; min-width: 20px; margin: 0; accent-color: var(--green); }
.workspace-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.workspace-primary { min-height: 44px; width: 100%; padding: 12px 16px; font-size: 13px; }
.cart-content .secondary-button { min-height: 44px; font-size: 13px; margin: 6px 0; }
.cart-content button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* A pending write keeps the cart as it looks; only the line being saved shows it. */
.cart-dialog[aria-busy="true"] .cart-content button:disabled { opacity: 1; cursor: progress; }
.workspace-import-picker { padding: 14px 0; }
.workspace-import-picker h3, .workspace-import-preview h3 { margin: 14px 0 8px; font-size: 17px; letter-spacing: -.02em; }
.workspace-import-picker button { display: block; width: 100%; }
.workspace-import-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.workspace-import-row .workspace-line-description { flex-direction: column; gap: 3px; }
.workspace-import-row .workspace-copy, .workspace-import-row .workspace-warning { margin: 0; }
.workspace-import-row .workspace-line-price { align-items: flex-end; text-align: right; max-width: 105px; }
.workspace-evidence > summary { font-size: 12px; font-weight: 500; color: var(--muted); }
.workspace-import-preview .workspace-evidence { border: 0; }
.cart-dialog .workspace-back { min-height: 40px; margin: 0; padding: 0; }

/* Empty, not loaded: one centred message with its way on. */
.cart-state { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 4px 32px; text-align: center; }
.cart-state h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.03em; }
.cart-state .workspace-empty { margin: 0; color: #5d645d; font-size: 13px; line-height: 1.45; }
.cart-state-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: var(--green); background: #eef5d6; }
.cart-state-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-state--error .cart-state-mark { width: 64px; height: 64px; color: #7a4d0b; background: #fbf0dc; }
.cart-state--error .cart-state-mark svg { width: 30px; height: 30px; stroke-width: 1.8; }
.cart-state-actions { display: grid; gap: 8px; width: min(100%, 360px); margin-top: 6px; }
.cart-dialog .cart-state-primary, .cart-dialog .cart-state-secondary { min-height: 48px; padding: 0 28px; border-radius: 14px; font-size: 15px; font-weight: 800; }
.cart-dialog .cart-state-primary { color: #fff; background: var(--green); }
.cart-dialog .cart-state-secondary { border: 1px solid rgba(39, 99, 62, .35); color: var(--green); background: transparent; }
.cart-dialog .cart-state-primary:hover { transform: none; background: #194d2e; }
.cart-dialog .cart-state-secondary:hover { transform: none; background: #f4f2ea; }

/* Prices older than 12 hours: an amber bar over the panel. */
.cart-prices { flex-shrink: 0; display: flex; align-items: center; gap: 10px; margin: 0 12px 8px; padding: 4px 6px 4px 12px; border-radius: 14px; color: #5c3f0c; background: #fbf0dc; }
.cart-prices-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-prices-text { flex: 1; font-size: 13px; line-height: 1.35; }
.cart-dialog .cart-prices #basket-refresh-prices { width: auto; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 10px; color: var(--green); background: transparent; font-size: 13px; font-weight: 800; }
.cart-dialog .cart-prices #basket-refresh-prices:hover { transform: none; background: rgba(39, 99, 62, .08); }

/* The green panel: the total on top, «Найти дешевле» and the store transfers below. */
.cart-footer { flex-shrink: 0; width: auto; margin: 0; padding: 20px 24px 24px; border-top: 1px solid var(--line); color: var(--ink); background: #f2f0e7; text-transform: none; letter-spacing: normal; }
.cart-sum { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cart-sum-main { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex: 1; min-width: 0; }
.cart-footer #cart-subtotal-label { color: var(--muted); font-size: 12px; }
.cart-footer #cart-subtotal { font-size: 28px; letter-spacing: -.05em; }
.cart-footer #cart-disclaimer { margin: 9px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.cart-footer .cart-disclaimer--stale { color: #7a5b19; }
.cart-footer #cart-compare { width: 100%; min-height: 44px; }
/* The panel, compact (owner, 09.10.2026: the list keeps its room): the total and the actions on one
   row of a wide cart, two on a phone; what only some carts need is one short line under them. */
.workspace-enabled .cart-footer { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "alert alert alert" "sum transfer compare" "extra extra extra"; align-items: center; column-gap: 10px; margin: 4px 12px max(12px, env(safe-area-inset-bottom)); padding: 12px 12px 12px 16px; border: 0; border-radius: 22px; color: #fff; background: var(--green); box-shadow: 0 -12px 32px rgba(23, 32, 24, .1); }
.workspace-enabled .cart-sum { grid-area: sum; display: block; min-width: 0; }
.workspace-enabled .cart-sum-main { display: block; }
.workspace-enabled .cart-footer #cart-subtotal-label { display: block; max-width: 170px; color: var(--lime); font-size: 11px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .1em; }
.workspace-enabled .cart-footer #cart-subtotal { display: block; margin-top: 3px; color: #fff; font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.workspace-enabled .cart-footer #cart-subtotal.is-pending { color: rgba(255, 255, 255, .6); animation: rz-shimmer 1.2s ease-in-out infinite; }
.workspace-enabled .cart-footer #cart-subtotal .rz-skeleton { display: block; width: 120px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .2); }
.workspace-enabled .cart-footer #cart-disclaimer { margin: 3px 0 0; color: rgba(255, 255, 255, .8); font-size: 11px; line-height: 1.3; text-align: left; }
/* Long and short wording of the same line: a wide cart and a phone. */
.cart-narrow { display: none; }
.workspace-enabled .cart-actions { display: contents; }
.cart-panel-alert { grid-area: alert; margin-bottom: 10px; }
.cart-panel-extra { grid-area: extra; margin-top: 10px; }
.cart-panel-transfer { grid-area: transfer; }
.workspace-enabled .cart-footer .cart-compare { position: relative; grid-area: compare; min-width: 0; min-height: 52px; padding: 6px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; border: 0; border-radius: 15px; color: #172018; background: var(--lime); box-shadow: 0 8px 20px rgba(10, 30, 15, .22); }
.workspace-enabled .cart-footer .cart-compare:hover { transform: none; background: #e3f5a2; }
.workspace-enabled .cart-footer .cart-compare:disabled { opacity: 1; cursor: not-allowed; color: rgba(23, 32, 24, .78); background: rgba(217, 239, 139, .45); box-shadow: none; }
.cart-compare-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; }
.cart-compare-title { max-width: 100%; overflow: hidden; font-size: 16px; font-weight: 800; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.cart-compare:not(.is-saving):not(.cart-comparing) .cart-compare-title::after { content: " →" / ""; }
.cart-compare-sub { max-width: 100%; overflow: hidden; color: rgba(23, 32, 24, .72); font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.cart-compare-sub { display: flex; align-items: center; gap: 4px; }
.cart-compare-tab { width: 11px; height: 11px; flex: 0 0 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cart-transfers--many .cart-transfer-name { display: none; }
.cart-compare-spinner { width: 14px; height: 14px; flex: 0 0 14px; box-sizing: border-box; border: 2px solid rgba(23, 32, 24, .25); border-top-color: #172018; border-radius: 50%; animation: rz-spin .9s linear infinite; }
.workspace-enabled .cart-footer .cart-transfer { min-height: 52px; padding: 6px 12px 6px 10px; display: flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 15px; color: #fff; background: transparent; font-size: 14px; font-weight: 800; }
.workspace-enabled .cart-footer .cart-transfer:hover { transform: none; background: rgba(255, 255, 255, .08); }
.workspace-enabled .cart-footer .cart-transfer:disabled { opacity: 1; cursor: not-allowed; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .62); }
.workspace-enabled .cart-footer .cart-transfer:disabled .store-tile { opacity: .6; }
.cart-transfer-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.2; }
.cart-transfer-title { font-size: 14px; font-weight: 800; white-space: nowrap; }
.cart-transfer-sub { color: rgba(255, 255, 255, .82); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cart-transfer-tile { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; font-size: 12px; }
.cart-transfers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.workspace-enabled .cart-footer .cart-transfers-title { margin: 0 2px 0 0; color: var(--lime); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.workspace-enabled .cart-footer .cart-transfer--store { min-height: 36px; padding: 0 5px 0 4px; gap: 6px; border-width: 1px; border-radius: 11px; font-size: 13px; }
.cart-transfer--store .cart-transfer-tile { width: 26px; height: 26px; flex-basis: 26px; border-radius: 8px; }
.cart-transfer-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cart-transfer-count { flex: 0 0 auto; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 12px; }
.workspace-enabled .cart-footer .workspace-action-hint { margin: 10px 0 0; color: rgba(255, 255, 255, .9); font-size: 12px; line-height: 1.4; text-align: left; }
.workspace-enabled .cart-footer .workspace-action-hint--ask { color: var(--lime); }
/* The comparison started from this cart: its button leads to the tab and tells how it goes. */
.workspace-enabled .cart-footer .cart-comparing { gap: 8px; padding: 6px 12px; }
.cart-comparing-mark { width: 22px; height: 22px; flex: 0 0 22px; box-sizing: border-box; border: 3px solid rgba(23, 32, 24, .18); border-top-color: #172018; border-radius: 50%; animation: rz-spin 1s linear infinite; }
.cart-comparing--done .cart-comparing-mark { display: grid; place-items: center; border: 0; color: #fff; background: var(--green); animation: none; }
.cart-comparing-mark svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cart-comparing-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(23, 32, 24, .12); }
.cart-comparing-bar > span { display: block; height: 100%; background: var(--green); transition: width .3s ease; }
.cart-alert { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; color: #4a3209; background: #fbf0dc; }
.cart-alert-icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-alert-text { font-size: 13px; line-height: 1.4; }
.cart-alert-text b { display: block; }

/* The skeleton of a cart opened before the page knows it. */
.rz-skeleton { display: block; border-radius: 7px; background: #eceee6; animation: rz-shimmer 1.4s ease-in-out var(--delay, 0s) infinite; }
.cart-item--skeleton { grid-template-columns: 60px minmax(0, 1fr) auto; }
.cart-item--skeleton .cart-item-info { display: flex; flex-direction: column; gap: 9px; padding-top: 5px; }
.cart-item--skeleton .cart-item-side { gap: 12px; padding-top: 3px; }
.cart-skeleton-picture { width: 60px; height: 60px; border-radius: 16px; }
.cart-skeleton-title { width: 72%; height: 14px; }
.cart-skeleton-meta { width: 30%; height: 11px; background: #f1f2ec; }
.cart-skeleton-price { width: 56px; height: 16px; border-radius: 8px; }
.cart-skeleton-stepper { width: 112px; height: 40px; border-radius: 13px; background: #f1f2ec; }
.cart-item--skeleton .rz-skeleton { animation-delay: var(--delay, 0s); }
@keyframes rz-shimmer { 0% { opacity: .55; } 50% { opacity: 1; } 100% { opacity: .55; } }
@keyframes rz-spin { to { transform: rotate(360deg); } }
.rz-spinner { display: inline-block; }
.workspace-stepper .workspace-quantity-saving { display: grid; place-items: center; min-width: 24px; height: 44px; }

@media (max-width: 520px) {
  .cart-header { gap: 10px; padding: 16px 12px 12px 16px; }
  .cart-tools { gap: 10px; }
  .cart-confirm { position: fixed; inset: auto 8px max(8px, env(safe-area-inset-bottom)); width: auto; margin: 0; padding: 22px 18px 18px; }
  .cart-confirm h2 { font-size: 22px; }
  .cart-confirm-actions { margin-top: 18px; display: flex; flex-direction: column-reverse; gap: 8px; }
  .cart-header h2 { font-size: 24px; }
  .cart-mark, .cart-mark > .store-tile, .cart-mark .rz-skeleton { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; font-size: 19px; }
  .cart-mark--pair > .store-tile { width: 30px; height: 30px; font-size: 14px; }
  .cart-dialog .cart-carts-toggle { width: 44px; padding: 0; justify-content: center; }
  .cart-carts-label, .cart-carts-chevron { display: none; }
  .cart-carts-icon { display: block; }
  .cart-content { padding: 0 16px; }
  .cart-address { padding: 6px 4px 6px 12px; }
  .cart-address-caption { display: none; }
  .cart-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0 12px; padding: 13px 0; }
  .cart-item-picture, .cart-item-picture .workspace-product-thumb, .cart-skeleton-picture { width: 56px; height: 56px; flex-basis: 56px; border-radius: 15px; }
  .cart-item-info h4 { font-size: 14px; }
  .cart-item-meta { font-size: 12px; }
  .cart-item-total { font-size: 15px; }
  .workspace-stepper { height: 38px; border-radius: 12px; }
  .workspace-status, .workspace-error { padding: 10px 16px; }
  .workspace-import-row { gap: 10px; }
  .cart-prices { margin: 0 8px 8px; }
  .workspace-enabled .cart-footer { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "alert alert" "sum compare" "transfer transfer" "extra extra"; margin: 4px 8px max(8px, env(safe-area-inset-bottom)); padding: 10px 10px 10px 14px; border-radius: 20px; }
  .workspace-enabled .cart-footer #cart-subtotal { font-size: 24px; }
  .cart-narrow { display: inline; }
  .cart-compare-title { font-size: 15px; }
  .workspace-enabled .cart-footer .cart-panel-transfer { min-height: 44px; margin-top: 8px; justify-content: center; }
  .cart-panel-transfer .cart-transfer-text { flex-direction: row; align-items: baseline; gap: .3em; }
  .cart-panel-transfer .cart-transfer-sub { color: inherit; font-size: 14px; font-weight: 800; }
  .cart-transfers .cart-transfer-name { display: none; }
}
/* A narrow phone (360 px and less) gives the heading the tile's place: with «Мои корзины» and
   «Очистить корзину» beside it, «6 товаров · Самокат» would not fit. The subtitle names the store. */
@media (max-width: 380px) {
  .cart-header .cart-mark { display: none; }
}
@media (max-height: 540px) {
  .cart-header { padding-top: 10px; padding-bottom: 10px; }
  .workspace-enabled .cart-footer { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .rz-skeleton, .cart-item.is-saving .cart-item-total, .workspace-enabled .cart-footer #cart-subtotal.is-pending { animation: none; } }
/* Spec 023, variant A (owner, 05.10.2026): the transfer into the user's store cart. */
/* The flow: three steps, the store, what goes and what stays, actions held at the bottom. */
.cart-export { padding-top: 4px; }
.cart-dialog.is-exporting #cart-title { font-size: 22px; letter-spacing: -.03em; }
.comparison-page .cart-export { max-width: 560px; }
.cart-export-heading { margin: 4px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.cart-export-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 18px; padding: 0; list-style: none; }
.cart-export-steps li { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.cart-export-steps li::before { content: ""; height: 4px; border-radius: 99px; background: #e4e3dc; }
.cart-export-steps .is-done, .cart-export-steps .is-current { color: var(--green); }
.cart-export-steps .is-done::before, .cart-export-steps .is-current::before { background: var(--green); }
.cart-export-steps .is-current { font-weight: 750; }
.cart-export-steps .is-failed { color: #7a4d0b; font-weight: 750; }
.cart-export-steps .is-failed::before { background: #c08a2f; }
.cart-export-store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cart-export-store .comparison-store-mark, .cart-export-result-head .comparison-store-mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 19px; }
.cart-export-store-name { display: grid; gap: 2px; min-width: 0; }
.cart-export-store-name strong { font-size: 16px; }
.cart-export-store-name span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
/* RZ-409: the address the store gets, under the store card and the result headline. */
.cart-export-address { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cart-export-address-pin { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: #eef4ea; }
.cart-export-address-pin::before { content: ""; position: absolute; top: 12px; left: 15px; width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.cart-export-address-body, .cart-export-address-outcome { display: grid; gap: 2px; min-width: 0; }
.cart-export-address-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.cart-export-address-body strong, .cart-export-address-outcome strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.cart-export-address-note { color: #3f4a41; font-size: 13px; line-height: 1.4; }
.cart-export-address-outcome { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #eef4ea; }
.cart-export-address-outcome--check { background: #fbf0dc; }
.cart-export-title { margin: 18px 0 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.cart-export-copy { margin: 0 0 12px; color: #3f4a41; font-size: 14px; line-height: 1.5; }
.cart-export-hint { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.cart-export-promises { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; color: #3f4a41; font-size: 13px; line-height: 1.4; }
.cart-export-promises li { position: relative; padding-left: 24px; }
.cart-export-promises li::before { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 5px; border-bottom: 2px solid var(--green); border-left: 2px solid var(--green); transform: rotate(-45deg); }
.cart-export-group { margin: 0; padding: 12px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.cart-export-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid #eef1ec; }
.cart-export-row .workspace-product-thumb { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; }
.cart-export-row .workspace-product-thumb > svg { width: 20px; height: 20px; inset: 12px; }
.cart-export-row-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cart-export-row-title { font-size: 14px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; }
.cart-export-row--quiet .cart-export-row-title { color: #59635b; font-weight: 500; }
.cart-export-row--quiet .workspace-product-thumb { opacity: .45; filter: grayscale(1); }
.cart-export-amount { flex-shrink: 0; color: #3f4a41; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-export-note { max-width: 100%; padding: 1px 8px; border-radius: 99px; color: #4f574f; background: #f1f0e9; font-size: 12px; line-height: 18px; font-weight: 700; }
.cart-export-note--ok { padding: 0; color: var(--green); background: none; font-weight: 650; }
.cart-export-note--check { color: #7a4d0b; background: #fbf0dc; }
.cart-export-note--missing { color: #8a3d35; background: #f7e3df; }
.cart-export-row-link { display: inline-flex; flex-shrink: 0; align-items: center; min-height: 44px; color: var(--green); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.cart-export-row-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-export-result-head, .cart-export-progress { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cart-export-result-head .cart-export-title, .cart-export-progress .cart-export-title { margin: 0; }
.cart-export-tally { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.cart-export-chip { padding: 2px 9px; border-radius: 99px; color: #4f574f; background: #f1f0e9; font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.cart-export-chip--ok { color: #20583a; background: #e3efcf; }
.cart-export-chip--check { color: #7a4d0b; background: #fbf0dc; }
.cart-export-chip--missing { color: #8a3d35; background: #f7e3df; }
.cart-export-skipped { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
/* The wait: the comparison page's spinner around the store, a running bar, the reason it takes a while. */
.cart-export-spinner { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; }
.cart-export-spinner::before { content: ""; position: absolute; inset: 0; border: 3px solid #cbd8cc; border-top-color: var(--green); border-radius: 50%; animation: comparison-spin 1s linear infinite; }
.cart-export-spinner .comparison-store-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 18px; }
.cart-export-meter { position: relative; height: 6px; margin: 22px 0 14px; overflow: hidden; border-radius: 99px; background: #e4e8dc; }
.cart-export-meter span { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: 99px; background: var(--green); animation: cart-export-slide 1.6s ease-in-out infinite; }
@keyframes cart-export-slide { from { transform: translateX(-100%); } to { transform: translateX(270%); } }
.cart-export-waiting { opacity: .72; }
.cart-export-gate .comparison-store-mark { width: 56px; height: 56px; flex-basis: 56px; margin-top: 8px; font-size: 24px; }
.cart-export-alert { display: grid; place-items: center; width: 56px; height: 56px; margin-top: 8px; border-radius: 50%; color: #7a4d0b; background: #fbf0dc; font: 800 26px/1 Georgia, serif; }
.cart-export-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }
.cart-export-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-export-bar { position: sticky; z-index: 2; bottom: 0; display: flex; gap: 8px; margin: 18px -24px 0; padding: 12px 24px 16px; border-top: 1px solid var(--line); background: var(--card); }
/* The transfer's actions are the panel's last row: the list fade would only cover them. */
.cart-dialog.is-exporting .cart-content::after { display: none; }
.cart-export-bar--stack { display: grid; }
.cart-export-bar-row { display: flex; gap: 8px; }
.comparison-page .cart-export-bar { bottom: 0; margin: 18px 0 0; padding: 12px 0 16px; background: #f6f4ec; }
.cart-export-primary, .cart-export-secondary { min-height: 48px; padding: 10px 16px; gap: 0; border-radius: 14px; font-size: 15px; font-weight: 700; }
.cart-export-primary { display: inline-flex; flex: 1; align-items: center; justify-content: center; color: #fff; background: var(--green); text-decoration: none; }
a.cart-export-primary:hover { color: #fff; background: #194d2e; }
.cart-export-secondary { flex: 0 0 auto; padding-inline: 14px; color: var(--green); background: transparent; }
.cart-export-secondary:hover { color: var(--green); background: #eceadf; transform: none; }
.cart-export-secondary--outline { flex: 1; border: 1px solid rgba(39, 99, 62, .3); }
.cart-export-bar button:hover { transform: none; }
@media (max-width: 440px) { .cart-export-bar { margin-inline: -16px; padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .cart-export-spinner::before, .cart-export-meter span { animation: none; } }
.workspace-back::before { content: "←"; margin-right: 8px; }
.basket-shop-picker { display: block; width: 100%; min-height: 44px; margin: 0 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-overflow: ellipsis; }
.basket-proposal { margin: 0; padding: 0; }
.basket-proposal-summary { padding: 10px 0 14px; }
.basket-proposal-summary > p { margin: 4px 0; }
.basket-proposal-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0; }
.basket-proposal-heading h3 { margin: 0; min-width: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.03em; }
.basket-proposal-price { font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.basket-saving { font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--green); margin: 0; }
.basket-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 0 16px; font-size: 13px; }
.basket-totals dt { color: var(--muted); }
.basket-totals dd { margin: 0; font-weight: 700; text-align: right; }
.basket-proposal-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.basket-review-heading { margin: 14px 0 8px; font-size: 14px; font-weight: 600; }
.workspace-product-info .basket-original { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.basket-candidate-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.basket-row-label { display: block; margin: 8px 0 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.basket-row-price { display: block; margin: 0; font-size: 15px; white-space: nowrap; }
.basket-review { color: var(--green); margin-top: 4px; padding: 8px 0; }
.server-cart-heading { padding: 18px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-line-limit--warning { color: #8a3d35; }
.desired-shell { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--card); box-shadow: none; display: flex; gap: 0; }
.desired-intro { margin: 18px 24px 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.desired-address { margin: 12px 24px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.desired-items { flex: 1; padding: 0 24px 24px; overflow: auto; }
.desired-item { margin: 16px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.desired-item-title { padding: 0 5px; font-weight: 750; }
.desired-field { display: block; margin-top: 9px; padding: 7px 0; border: 0; border-bottom: 1px solid rgba(23, 32, 24, .08); }
.desired-field input, .desired-field select { width: 100%; margin-top: 4px; padding: 7px 0; border: 0; color: var(--ink); background: transparent; font: inherit; }
.desired-confirm { display: flex; gap: 8px; margin-top: 12px; padding: 0; border: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.desired-confirm input { width: auto; flex: 0 0 auto; }
.desired-footer { flex: 0 0 auto; }
.imported-comparison { margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); }
.imported-comparison .eyebrow { margin-top: 0; }
.imported-comparison h2 { margin: 8px 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.imported-coverage, .baseline-copy { color: var(--muted); font-size: 13px; line-height: 1.5; }
.imported-item-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.imported-item-result h3 { margin: 0 0 5px; }
.result-warning { margin: 6px 0; color: #74421d; font-size: 12px; font-weight: 650; }
.imported-provider-results { display: grid; gap: 7px; margin-top: 12px; }
.imported-provider { display: grid; grid-template-columns: minmax(100px, .6fr) auto minmax(0, 1.4fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f2f0e7; font-size: 12px; }
.imported-provider--error { background: #f7e7e3; }
.secondary-button { width: 100%; min-height: 44px; padding: 9px 14px; color: var(--green); background: transparent; border: 1px solid rgba(39, 99, 62, .3); }
.secondary-button:hover { color: white; }
.cart-toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(420px, calc(100% - 32px)); padding: 11px 15px; border-radius: 12px; color: white; background: var(--ink); box-shadow: 0 12px 34px rgba(23,32,24,.25); font-size: 12px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a7cc45; outline-offset: 3px; }

@media (max-width: 760px) {
  main { width: min(100% - 24px, 600px); padding-top: 18px; }
  .topbar { width: 100%; }
  .eyebrow { margin-top: 58px; }
  h1 { font-size: clamp(52px, 17vw, 78px); }
  form { grid-template-columns: 1fr; padding: 10px; }
  label, .form-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-field > label { border-bottom: 0; }
  .address-field { padding: 9px 15px 8px; border: 1px solid transparent; border-bottom-color: var(--line); }
  .address-suggestions-panel { max-height: min(300px, 48vh); }
  button { min-height: 56px; }
  footer { width: calc(100% - 24px); }
  .cart-dialog { width: min(100vw, 520px); }
  .cart-footer { width: auto; }
  .imported-provider { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .topbar { flex-wrap: wrap; }
  .services-link { width: 100%; order: 3; text-align: right; }
  .add-button { width: 100%; min-height: 44px; }
  .cart-line { grid-template-columns: 1fr; }
  .quantity-controls { justify-content: flex-start; }
  .desired-intro, .desired-address { margin-left: 16px; margin-right: 16px; }
  .desired-items { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.account-nav { display:flex; gap:20px; align-items:center; margin-left:auto; }
.account-nav .services-link { margin:0; }
.address-label { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.address-label > span { flex-shrink:0; }
.saved-address-picker { font:inherit; font-size:12px; color:var(--green); border:0; background:transparent; max-width:170px; min-width:0; padding:0; text-overflow:ellipsis; }
.saved-address-picker[hidden] { display:none; }
.delivery-save-error { position:absolute; top:100%; left:12px; font-size:12px; color:#a52a2a; background:var(--card); z-index:11; }
.delivery-save-error:empty { display:none; }
@media(max-width:700px) { .topbar { flex-wrap:wrap; column-gap:10px; row-gap:8px; } .account-nav { order:5; width:100%; margin:10px 0 0; gap:16px; } .account-nav .services-link { font-size:12px; } .address-label .saved-address-picker { max-width:145px; } }

@media(max-width:360px) { .topbar .brand { font-size:19px; gap:7px; } .topbar .cart-trigger { padding:9px 11px; gap:8px; } .topbar .account-trigger { min-width:80px; padding:8px; } .account-nav { gap:12px; } .account-nav .services-link { padding:8px 0; font-size:11px; } .address-label .saved-address-picker { max-width:110px; } }

/* The comparison tab (owner's mockup «Корзина и «Найти дешевле»», 08.10.2026): one screen from the
   tap to the result. A summary on top (one heading; only the bar and the count move), the stages
   beside it, then your cart and the stores' columns in the places they first appeared. */
.comparison-page body { background: radial-gradient(circle at 92% 0%, rgba(217, 239, 139, .55), transparent 26rem), linear-gradient(180deg, #f8f6ef 0, var(--paper) 100%); color: var(--ink); }
.comparison-page body > main, .comparison-page body > footer { display: none; }
.comparison-page #cart-dialog { position: static; width: min(1376px, calc(100% - 32px)); max-width: none; height: auto; max-height: none; margin: 0 auto; border: 0; border-radius: 0; overflow: visible; box-shadow: none; color: var(--ink); background: transparent; }
.comparison-page #cart-dialog .cart-shell { height: auto; max-height: none; display: block; padding: 20px 0 48px; }
.comparison-page #cart-dialog .cart-header { flex-wrap: nowrap; gap: 12px 16px; padding: 0; background: transparent; border: 0; }
/* The address shrinks before the way back moves; editing it may take its own line. */
.comparison-page #cart-dialog .cart-header:has(.cmp-address.is-editing) { flex-wrap: wrap; }
.comparison-page .cart-back { flex-shrink: 0; }
.comparison-page .cart-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.comparison-page .cart-brand span { display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--green); border-radius: 50% 50% 45% 55%; letter-spacing: 0; }
.comparison-page .cart-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.comparison-page .cart-mark { display: none; }
.comparison-page .cart-tools { flex: 0 1 auto; min-width: 0; margin-left: auto; }
.comparison-page #cart-dialog .cart-footer, .comparison-page .cart-prices { display: none; }
.comparison-page #cart-content { display: block; overflow: visible; padding: 0; max-height: none; }
.comparison-page #cart-content::after { display: none; }
.comparison-page .comparison-first-frame { display: block; }
.comparison-page #workspace-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.comparison-page #workspace-error { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; }
.comparison-page[data-account-checking] #cart-dialog { visibility: hidden; }
.comparison-page summary { min-height: 44px; padding: 10px 0; color: var(--green); font-weight: 700; }
.comparison-page .workspace-copy { color: #5d645d; font-size: 14px; line-height: 1.45; }
.comparison-page .workspace-warning { color: #7a4d0b; font-size: 14px; line-height: 1.45; }
.comparison-page button:disabled { cursor: not-allowed; }
.cart-back { min-height: 44px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(23, 32, 24, .14); border-radius: 14px; color: var(--ink); background: var(--card); font: inherit; font-size: 14px; font-weight: 700; }
.cart-back:hover { transform: none; color: var(--ink); background: #f4f2ea; }
.cart-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The address in the top bar; «Изменить» once there is a result. */
.cmp-address { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 0 16px 0 12px; border: 1px solid rgba(23, 32, 24, .1); border-radius: 14px; background: rgba(255, 253, 247, .85); font-size: 14px; }
.cmp-address:has(.cmp-address-edit) { padding-right: 4px; }
.cmp-address-pin { width: 18px; height: 18px; flex-basis: 18px; }
.cmp-address-text { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cmp-address .cmp-address-caption { color: var(--muted); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: normal; }
.cmp-address-text > p { margin: 0; overflow: hidden; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.cmp-address .cmp-address-edit { min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.cmp-address.is-editing { display: block; min-width: min(420px, 100%); padding: 4px 12px 10px; }
.cmp-address-form .workspace-field { margin: 6px 0; }

/* The summary and the stages. */
.basket-comparison-result { margin: 0; padding: 0; }
.cmp-hero { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.cmp-hero-main { flex: 999 1 640px; min-width: 0; box-sizing: border-box; padding: 24px 28px; border: 1px solid rgba(23, 32, 24, .07); border-radius: 28px; background: var(--card); box-shadow: 0 20px 60px rgba(34, 55, 38, .08); }
.cmp-hero-side { flex: 1 1 320px; box-sizing: border-box; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; border-radius: 28px; background: #ebe9e0; }
.cmp-hero-side:empty { display: none; }
.cmp-eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.cmp-title { margin: 8px 0 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -.05em; font-weight: 700; }
.cmp-sub, .cmp-narrow { display: none; }
.cmp-progress { position: relative; margin-top: 22px; height: 10px; overflow: hidden; border-radius: 99px; background: #e4e8dc; }
.cmp-progress > span { display: block; height: 100%; border-radius: 99px; background: var(--green); transition: width .4s ease; }
.cmp-progress--waiting > span { position: absolute; top: 0; left: 0; width: 38%; animation: rz-slide 1.6s ease-in-out infinite; }
@keyframes rz-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
.cmp-progress-line { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.cmp-progress-text { margin: 0; font-size: 15px; line-height: 1.4; }
.cmp-progress-text > span { color: #5d645d; }
.comparison-page .cmp-stop { margin-left: auto; min-height: 44px; padding: 0 4px; border: 0; color: var(--green); background: transparent; font-size: 14px; font-weight: 700; }
.comparison-page .cmp-stop:hover { transform: none; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.cmp-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cmp-step { display: flex; align-items: center; gap: 12px; }
.cmp-step-mark { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; }
.cmp-step--done .cmp-step-mark { color: #fff; background: var(--green); }
.cmp-step-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cmp-step--active .cmp-step-mark { border: 3px solid #cfd7c8; border-top-color: var(--green); animation: rz-spin 1s linear infinite; }
.cmp-step--pending .cmp-step-mark { border: 2px solid #a3a89e; color: #4f554f; font-size: 13px; font-weight: 800; }
.cmp-step-text { min-width: 0; font-size: 15px; line-height: 1.3; }
.cmp-step-detail { display: block; color: #5d645d; font-size: 13px; }
.cmp-step--pending .cmp-step-text { color: #4f554f; }
.cmp-steps--done { gap: 12px; }
.cmp-steps--done .cmp-step-detail { display: inline; }
.cmp-steps--done .cmp-step-detail::before { content: " · "; }
.cmp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comparison-page .cmp-again { width: auto; min-height: 44px; padding: 0 14px; border: 1px solid rgba(39, 99, 62, .35); border-radius: 12px; color: var(--green); background: var(--card); font-size: 14px; font-weight: 700; }
.comparison-page .cmp-again:hover { transform: none; color: #fff; background: var(--green); }
.comparison-page .cmp-again:disabled { color: #687068; background: #f1f0e8; border-color: #d8d6cc; }
.cmp-hero-actions .workspace-action-hint { margin: 0; color: #7a4d0b; font-size: 13px; line-height: 1.4; }
.cmp-best { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.cmp-best-total { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.cmp-saving { padding: 6px 12px; border-radius: 99px; color: #172018; background: var(--lime); font-size: 15px; font-weight: 800; white-space: nowrap; }
.cmp-best-note { color: #5d645d; font-size: 14px; line-height: 1.4; }
.cmp-note { margin: 14px 0 0; color: #5d645d; font-size: 14px; line-height: 1.4; }
.cmp-copy { margin: 10px 0 0; color: #3f453f; font-size: 14px; line-height: 1.5; }
.cmp-warning { margin: 10px 0 0; }
.cmp-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-actions:empty { display: none; }
.comparison-page .cmp-primary { width: auto; min-height: 48px; padding: 0 18px; border-radius: 14px; color: #fff; background: var(--green); font-size: 15px; font-weight: 800; }
.comparison-page .cmp-primary:hover { transform: none; background: #194d2e; }
.comparison-page .cmp-link { width: auto; min-height: 48px; padding: 0 14px; border-radius: 14px; color: var(--green); background: transparent; font-size: 15px; font-weight: 700; }
.comparison-page .cmp-link:hover { transform: none; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.comparison-page .cmp-primary:disabled { color: #4b574d; background: #dfe5dd; }
.cmp-hero-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #7a4d0b; background: #fbf0dc; }
.cmp-hero-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp-hero--done .cmp-hero-mark { color: var(--green); background: #e4efcf; }
.cmp-hero-mark + .cmp-title { margin-top: 14px; font-size: clamp(24px, 2.4vw, 30px); }

/* The columns: your cart and the stores', sharing the board's row tracks (subgrid), so the n-th
   product, the headers and the totals line up across them whatever their text length. */
.comparison-board { --rows: 1; --cols: 4; margin-top: 18px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: auto repeat(var(--rows), auto) auto; gap: 0 16px; }
.comparison-board > .comparison-full, .comparison-board > .comparison-partial { display: contents; }
.comparison-cart { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(23, 32, 24, .1); border-radius: 22px; background: var(--card); }
.comparison-board .comparison-cart { display: grid; grid-row: 1 / -1; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; }
.comparison-board .comparison-cart > .comparison-rows { display: grid; grid-row: 2 / -2; grid-template-rows: subgrid; }
.comparison-board .comparison-cart > .comparison-cart-footer { grid-row: -2 / -1; }
.basket-proposal--featured { border: 2px solid var(--green); box-shadow: 0 18px 44px rgba(39, 99, 62, .16); }
.comparison-cart-header { min-height: 100px; box-sizing: border-box; padding: 16px 16px 12px; border-bottom: 1px solid #eef1ec; }
.comparison-store { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.comparison-store-name { min-width: 0; flex: 1; }
.comparison-store :is(h3, h4) { margin: 0; overflow: hidden; color: var(--ink); font-size: 17px; line-height: 1.25; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.comparison-cart-subtitle { margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.comparison-store-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; font-size: 17px; font-weight: 800; color: #4f554f; background: #eceee6; }
.comparison-store-mark svg { width: 20px; height: 20px; }
.comparison-store-mark--cart { color: #fff; background: #172018; }
.comparison-store-mark--samokat { color: #8c2350; background: #fbe3ea; }
.comparison-store-mark--perekrestok { color: #1f6b3a; background: #dcefe0; }
.comparison-store-mark--yandex-lavka { color: #7a5600; background: #fff0c2; }
.comparison-store-mark--kuper { color: #2d4a9a; background: #e3e8f8; }
.comparison-badge { flex: 0 0 auto; padding: 5px 10px; border-radius: 99px; color: #172018; background: var(--lime); font-size: 12px; font-weight: 800; white-space: nowrap; }
.comparison-caption { margin: 12px 0 0; font-size: 14px; line-height: 1.35; font-weight: 700; }
.comparison-page .comparison-caption.workspace-copy { color: #5d645d; font-weight: 600; }
.comparison-page .comparison-caption.basket-saving { color: var(--green); }
.basket-proposal--partial .comparison-caption, .comparison-caption--issue { color: #7a4d0b; }
.comparison-page .comparison-cart-warning { margin: 4px 0 0; font-size: 13px; }
.comparison-page .comparison-baseline { margin: 4px 0 0; color: #5d645d; font-size: 13px; line-height: 1.4; }
.comparison-rows { display: flex; flex-direction: column; }
.comparison-page .comparison-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 0 10px; min-height: 90px; box-sizing: border-box; margin: 0; padding: 12px 16px; border: 0; border-bottom: 1px solid #eef1ec; background: transparent; }
.comparison-page .comparison-rows > .comparison-row:last-child { border-bottom: 0; }
.comparison-row-picture { position: relative; width: 44px; height: 44px; }
.comparison-page .comparison-row .workspace-product-thumb { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; background: #f1f0e8; }
.comparison-page .comparison-row .workspace-product-thumb > svg { inset: 10px; width: 24px; height: 24px; }
.comparison-row-body { min-width: 0; }
.comparison-page .comparison-row-title { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink); font-size: 14px; line-height: 18px; font-weight: 600; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.comparison-row-link { color: inherit; text-decoration: none; }
.comparison-row-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.comparison-row-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.comparison-row-meta { display: flex; flex: 1 1 auto; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.comparison-row-side { display: flex; flex: 0 0 auto; align-items: center; }
.comparison-row-quantity, .comparison-chip { display: inline-flex; max-width: 100%; overflow: hidden; padding: 2px 8px; border-radius: 8px; color: #3f453f; background: #f1f0e8; font-size: 12px; line-height: 18px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.comparison-chip--analogue { color: #24507a; background: #e7f0fb; }
.comparison-chip--warning, .comparison-chip--missing { color: #7a4d0b; background: #fbf0dc; }
.comparison-row-price { color: var(--ink); font-size: 15px; line-height: 18px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-row-price--muted { color: var(--muted); font-weight: 650; }
.comparison-page .comparison-row--missing { background: #fdf8ee; }
.comparison-row--missing .comparison-row-title { color: #4f554f; }
.comparison-row--missing .workspace-product-thumb { opacity: .4; filter: grayscale(1); }
.comparison-row--missing .workspace-text-button { min-height: 28px; padding: 0; font-size: 13px; }
/* The source quantity looks like the store rows' chip and opens the editor on a tap. */
.comparison-page .comparison-row .comparison-row-quantity--edit { width: auto; min-width: 0; height: auto; min-height: 0; max-width: none; margin: 0; padding: 2px 8px; border: 0; border-radius: 8px; color: #3f453f; background: #f1f0e8; font: inherit; font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.comparison-page .comparison-row .comparison-row-quantity--edit:hover { transform: none; color: var(--green); background: #e8eedb; }
.comparison-page .comparison-row .workspace-quantity-editor { grid-column: 1 / -1; padding-top: 0; }
.comparison-cart-footer { margin-top: auto; padding: 14px 16px 16px; background: #faf9f3; }
.comparison-totals { display: grid; gap: 6px; margin: 0; }
.comparison-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #4f554f; font-size: 14px; line-height: 1.4; }
.comparison-totals dt, .comparison-totals dd { margin: 0; }
.comparison-totals dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-totals .comparison-totals-muted dd { color: var(--muted); }
.comparison-totals .comparison-totals-warning dd { color: #7a4d0b; }
.comparison-totals .comparison-totals-pending { align-items: center; }
.comparison-totals .comparison-total { order: 9; margin-top: 2px; color: var(--ink); font-size: 16px; font-weight: 700; }
.comparison-totals .comparison-total:first-child { order: 0; margin: 0 0 2px; }
.comparison-totals .comparison-total dd { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.comparison-totals .comparison-landed:not(.comparison-total) dd { font-weight: 700; }
.cmp-skeleton-value { width: 74px; height: 12px; border-radius: 6px; background: #e6e5dc; }
.cmp-skeleton-total { width: 112px; height: 22px; border-radius: 8px; background: #e6e5dc; }
.comparison-page .comparison-fees { margin: 6px 0 0; color: #5d645d; font-size: 13px; line-height: 1.4; }
.comparison-card-action { display: grid; gap: 8px; margin-top: 14px; }
.comparison-page .comparison-card-action .workspace-primary { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 800; }
.comparison-page .comparison-card-action .workspace-primary:hover { transform: none; }
.comparison-page .comparison-card-action .cart-export-card-button { width: 100%; min-height: 44px; border: 1px solid rgba(39, 99, 62, .35); border-radius: 14px; color: var(--green); background: #fff; font-size: 14px; font-weight: 700; }
.comparison-page .comparison-card-action .cart-export-card-button:hover { transform: none; color: #fff; background: var(--green); }
.comparison-page .comparison-card-action button:disabled { color: #4b574d; background: #dfe5dd; border-color: #c4cfc2; }
.cart-export-card-hint { margin: 0; color: #5d645d; font-size: 12px; line-height: 1.4; text-align: center; }
.cart-export-card-action { margin-top: 12px; }
.comparison-page .comparison-action-reason { margin: 0; color: #7a4d0b; font-size: 13px; line-height: 1.4; }
.comparison-page .comparison-action-reason:empty { display: none; }
.comparison-partial-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; color: #5c3f0c; background: #fbf0dc; font-size: 13px; line-height: 1.4; }
/* A store's column while it is searched. */
.cmp-searching { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; }
.cmp-searching-ring { position: absolute; inset: 0; box-sizing: border-box; border: 3px solid #dfe3d8; border-top-color: var(--green); border-radius: 50%; animation: rz-spin 1s linear infinite; }
.cmp-searching:has(.comparison-store-mark--perekrestok) .cmp-searching-ring { border-color: #c9e3d0; border-top-color: #1f6b3a; }
.cmp-searching:has(.comparison-store-mark--yandex-lavka) .cmp-searching-ring { border-color: #f1e0a8; border-top-color: #7a5600; }
.cmp-searching:has(.comparison-store-mark--kuper) .cmp-searching-ring { border-color: #cfd8f2; border-top-color: #2d4a9a; }
.cmp-searching:has(.comparison-store-mark--samokat) .cmp-searching-ring { border-color: #f3cfdb; border-top-color: #8c2350; }
.cmp-searching .comparison-store-mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 14px; }
.cmp-skeleton-caption { width: 64%; height: 13px; margin-top: 15px; }
.cmp-skeleton-picture { width: 44px; height: 44px; border-radius: 12px; }
.cmp-skeleton-row .comparison-row-body { display: flex; flex-direction: column; gap: 7px; padding-top: 3px; }
.cmp-skeleton-text { width: 80%; height: 11px; border-radius: 6px; }
.cmp-skeleton-text--short { width: 40%; }
.cmp-skeleton-row .comparison-row-line { margin-top: 8px; }
.cmp-skeleton-chip { width: 42px; height: 18px; border-radius: 8px; background: #f1f2ec; }
.cmp-skeleton-price { width: 52px; height: 15px; border-radius: 8px; }
.cmp-skeleton-row .rz-skeleton { animation-delay: var(--delay, 0s); }
.cmp-skeleton-footer { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; }
.cmp-skeleton-footer .cmp-skeleton-text { width: 100%; }
.cmp-skeleton-button { height: 48px; margin-top: 4px; border-radius: 14px; }
/* Narrow screens: the store totals first, each a tap away from its cart. */
.comparison-summary { display: none; }
.comparison-page .comparison-summary-item { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 48px; box-sizing: border-box; padding: 5px 12px 5px 5px; border: 1px solid rgba(23, 32, 24, .12); border-radius: 99px; color: var(--ink); background: var(--card); font-size: 14px; font-weight: 700; box-shadow: none; white-space: nowrap; }
.comparison-page .comparison-summary-item:hover { transform: none; color: var(--ink); background: #f4f2ea; }
.comparison-page .comparison-summary-item.is-best { border: 2px solid var(--green); }
.comparison-summary-item .comparison-store-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
.comparison-summary-item .cmp-searching { width: 36px; height: 36px; flex-basis: 36px; }
.comparison-summary-item .cmp-searching .comparison-store-mark { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
.comparison-summary-item strong { font-weight: 750; font-variant-numeric: tabular-nums; }
.comparison-summary-item .rz-skeleton { width: 52px; height: 12px; }
/* RZ-616 (owner, 13.10.2026; mockup boards 14–16): your cart on the left; on the right the three cheapest
   carts with the same products, then the three cheapest with analogues, and «Ещё варианты». */
.comparison-board--groups { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.comparison-board--groups > .comparison-cart--source { display: flex; flex: 1 1 280px; max-width: 340px; grid-row: auto; }
.comparison-board--groups > .comparison-cart--source > .comparison-rows { display: flex; }
.comparison-groups { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.comparison-group { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.comparison-group-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; padding: 0 4px; }
.comparison-group-text { flex: 1 1 420px; min-width: 0; }
.comparison-group-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.comparison-group-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; color: #fff; background: var(--green); }
.comparison-group--analogue .comparison-group-mark { color: #24507a; background: #d9e7f7; }
.comparison-group-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.comparison-group--partial .comparison-group-copy { margin-left: 0; }
.comparison-group-copy { margin: 4px 0 0 40px; color: #5d645d; font-size: 14px; line-height: 1.4; }
.comparison-group-count { color: #687068; font-size: 13px; font-weight: 700; }
.comparison-group .comparison-store h4, .comparison-group .comparison-cart-subtitle { white-space: normal; }
/* A narrow cart keeps its store's name whole: «Дешевле всего» moves under it when there is no room beside it. */
.comparison-group .comparison-store { flex-wrap: wrap; row-gap: 8px; }
.comparison-group .comparison-store-name { flex: 1 1 130px; }
.comparison-group-empty { margin: 0; padding: 12px 14px; border-radius: 14px; color: #5c3f0c; background: #fbf0dc; font-size: 14px; line-height: 1.4; }
.comparison-group--analogue .comparison-group-empty { color: #24507a; background: #eef4fb; }
/* A group's carts share their row tracks (subgrid), so the n-th product sits at one height across them;
   fewer than three keep their width, the empty places are not drawn. */
.comparison-group-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 16px; }
.comparison-group-cards > .comparison-cart { display: grid; grid-row: span var(--span, 3); grid-template-rows: subgrid; margin-bottom: 16px; }
.comparison-group-cards > .comparison-cart > .comparison-rows { display: grid; grid-row: 2 / -2; grid-template-rows: subgrid; }
.comparison-group-cards > .comparison-cart > .comparison-cart-footer { grid-row: -2 / -1; }
.comparison-page .comparison-row--analogue { background: #f7faff; }
.comparison-summary.comparison-summary--group { display: none; }
.comparison-group-title:focus { outline: none; }
.comparison-group-title:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 8px; }
.comparison-summary-figures { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.comparison-summary-store { color: #4f554f; font-size: 11px; font-weight: 700; }
/* The cheaper cart with analogues, under the hero's figure: a way down to its group. */
.cmp-analogues { margin-top: 16px; min-height: 44px; box-sizing: border-box; padding: 8px 14px 8px 10px; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; border-radius: 14px; color: var(--ink); background: #eef4fb; font-size: 14px; line-height: 1.35; text-decoration: none; }
.cmp-analogues:hover { color: var(--ink); background: #e3edf8; }
.cmp-analogues-tag { display: inline-flex; padding: 2px 8px; border-radius: 8px; color: #24507a; background: #d9e7f7; font-size: 12px; font-weight: 800; }
.cmp-analogues b { font-variant-numeric: tabular-nums; }
.cmp-analogues svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #24507a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-analogues + .cmp-note { margin-top: 12px; }
/* «Ещё варианты»: a line per cart, which opens to the cart. */
.comparison-page .comparison-more { border: 1px solid rgba(23, 32, 24, .1); border-radius: 18px; background: rgba(255, 253, 247, .7); }
.comparison-page .comparison-more > summary { min-height: 52px; box-sizing: border-box; padding: 15px 18px; font-size: 15px; }
.comparison-more-hint { color: #687068; font-weight: 600; }
.comparison-more-list { margin: 0; padding: 0 18px 14px; list-style: none; display: grid; gap: 8px; }
.comparison-more-item { border-radius: 12px; background: #fffdf7; }
.comparison-page .comparison-more-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 48px; box-sizing: border-box; padding: 8px 12px; border-radius: 12px; color: var(--ink); background: #fffdf7; font-weight: 400; list-style: none; }
.comparison-page summary.comparison-more-line { cursor: pointer; }
.comparison-page summary.comparison-more-line::-webkit-details-marker { display: none; }
.comparison-page summary.comparison-more-line:hover { background: #f4f2ea; }
.comparison-more-line .comparison-store-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 14px; }
.comparison-more-name { font-size: 15px; }
.comparison-more-note { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.comparison-more-note--partial { color: #7a4d0b; }
.comparison-more-note--analogue { color: #24507a; }
.comparison-more-note--same { color: var(--green); }
.comparison-more-total { margin-left: auto; font-size: 15px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.comparison-more-without { color: #687068; font-size: 12px; font-weight: 600; }
.comparison-more-card { padding: 4px 0 12px; }
.comparison-more-card > .comparison-cart { display: flex; max-width: 420px; grid-row: auto; }
.comparison-more-card > .comparison-cart > .comparison-rows { display: flex; }
.comparison-page .comparison-notes { margin-top: 18px; border-top: 1px solid rgba(23, 32, 24, .13); background: transparent; }
.comparison-page .comparison-notes > summary { padding: 12px 0 10px; font-size: 14px; }
.comparison-notes > p { max-width: 760px; margin: 0 0 8px; }
.comparison-notes > p:last-child { margin-bottom: 14px; }
/* The tab's first frame, before the scripts: the same places, grey. */
.comparison-first-frame .cmp-title { color: var(--ink); }
.comparison-first-frame .cmp-hero-side { justify-content: center; }
.cmp-skeleton-bar, .cmp-skeleton-mark, .cmp-skeleton-row { display: block; border-radius: 7px; background: #eceee6; animation: rz-shimmer 1.4s ease-in-out infinite; }
.comparison-first-frame .cmp-hero-side .cmp-skeleton-bar { width: 80%; height: 16px; }
.comparison-first-frame .comparison-cart-header { display: flex; align-items: center; gap: 10px; }
.comparison-first-frame .cmp-skeleton-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; }
.comparison-first-frame .comparison-cart-header .cmp-skeleton-bar { width: 50%; height: 16px; }
.comparison-first-frame .cmp-skeleton-row { height: 66px; margin: 12px 16px; }
.comparison-board--frame { grid-template-rows: none; }
.comparison-board--frame .comparison-cart { display: flex; grid-row: auto; }

@media (max-width: 1199px) {
  .comparison-board, .comparison-board--frame { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 44%); margin: 18px -16px 0; padding: 0 16px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding: 0 16px; scroll-snap-type: x mandatory; }
  .comparison-board .comparison-cart { scroll-snap-align: start; }
  .comparison-summary { display: flex; gap: 8px; margin: 12px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .comparison-board.comparison-board--groups { margin: 18px 0 0; padding: 0; overflow: visible; scroll-snap-type: none; }
}
/* Too narrow for your cart beside the groups: the groups first, your cart after them. */
@media (max-width: 900px) {
  .comparison-board--groups > .comparison-cart--source { order: 1; flex-basis: 100%; max-width: none; }
}
@media (max-width: 700px) {
  .comparison-page #cart-dialog .cart-shell { padding: 14px 0 32px; }
  .comparison-page .cart-brand, .comparison-page .cart-tools { display: none; }
  .comparison-page .cart-tools:has(.is-editing) { display: block; width: 100%; }
  .cmp-hero { margin-top: 12px; gap: 12px; }
  .cmp-hero-main { padding: 18px 18px 12px; border-radius: 24px; box-shadow: 0 16px 40px rgba(34, 55, 38, .08); }
  .cmp-hero-side { padding: 0; background: transparent; }
  .cmp-hero-side .cmp-steps { display: none; }
  .cmp-title { margin-top: 6px; font-size: 25px; letter-spacing: -.045em; }
  .cmp-hero-mark + .cmp-title { font-size: 24px; }
  .cmp-sub { display: block; margin: 6px 0 0; color: #5d645d; font-size: 13px; line-height: 1.4; }
  .cmp-progress { margin-top: 16px; height: 8px; }
  .cmp-progress-line { margin-top: 6px; gap: 8px; flex-wrap: nowrap; }
  .cmp-progress-text { flex: 1; font-size: 14px; }
  .cmp-wide { display: none; }
  .cmp-narrow { display: inline; }
  .cmp-best { margin-top: 10px; gap: 6px 10px; }
  .cmp-best-total { font-size: 32px; }
  .cmp-saving { padding: 5px 10px; font-size: 14px; }
  .cmp-best-note { flex-basis: 100%; font-size: 13px; }
  .cmp-note { font-size: 13px; }
  .comparison-board, .comparison-board--frame { grid-auto-columns: 300px; grid-template-rows: none; margin: 12px -16px 0; gap: 12px; }
  /* One cart at a time: each keeps its own compact rows instead of shared tracks. */
  .comparison-board .comparison-cart { display: flex; grid-row: auto; border-radius: 20px; }
  .comparison-board .comparison-cart > .comparison-rows { display: flex; }
  .comparison-board .comparison-cart > .comparison-cart-footer { margin-top: auto; }
  .comparison-cart-header { min-height: 0; padding: 14px 14px 10px; }
  .comparison-store-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
  .comparison-store h3 { font-size: 16px; }
  .comparison-cart-subtitle { font-size: 12px; }
  .comparison-page .comparison-row { grid-template-columns: 40px minmax(0, 1fr); min-height: 76px; padding: 10px 14px; }
  .comparison-row-picture, .comparison-page .comparison-row .workspace-product-thumb, .cmp-skeleton-picture { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
  .comparison-page .comparison-row-title { font-size: 13px; line-height: 17px; }
  .comparison-row-line { margin-top: 6px; }
  .comparison-row-price { font-size: 14px; }
  /* Phone (mockup board 15): the hero, then each group's totals in a line and its carts side by side.
     Your cart follows the groups: its rows still take a quantity a store asks for. */
  .comparison-board.comparison-board--groups { margin-top: 22px; }
  .comparison-groups { gap: 22px; }
  .comparison-group { gap: 0; }
  .comparison-group-head { padding: 0; }
  .comparison-group-title { gap: 8px; font-size: 19px; }
  .comparison-group-mark { width: 26px; height: 26px; flex-basis: 26px; }
  .comparison-group-mark svg { width: 14px; height: 14px; stroke-width: 2.8; }
  .comparison-group-copy { margin: 4px 0 0; font-size: 13px; }
  .comparison-group-count { display: none; }
  .comparison-group-empty { margin-top: 10px; }
  .comparison-summary.comparison-summary--group { display: flex; margin: 10px -16px 0; }
  .comparison-group-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 310px; gap: 12px; margin: 12px -16px 0; padding: 0 16px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding: 0 16px; scroll-snap-type: x mandatory; }
  .comparison-group-cards > .comparison-cart { display: flex; grid-row: auto; margin-bottom: 0; scroll-snap-align: start; }
  .comparison-group-cards > .comparison-cart > .comparison-rows { display: flex; }
  .cmp-analogues { display: flex; margin-top: 12px; padding: 8px 12px; gap: 8px; flex-wrap: nowrap; font-size: 13px; }
  .cmp-analogues-tag { display: none; }
  .cmp-analogues-text { flex: 1; min-width: 0; }
  .comparison-page .comparison-more > summary { min-height: 48px; padding: 14px 16px; font-size: 14px; }
  .comparison-more-list { padding: 0 12px 12px; }
  .comparison-more-total { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cmp-skeleton-bar, .cmp-skeleton-mark, .cmp-skeleton-row, .cmp-progress--waiting > span, .cmp-searching-ring, .cmp-step--active .cmp-step-mark { animation: none; } }

/* Spec 024: the bell, its list and the home banner «Нужно войти снова» (макет «Уведомления»). */
.topbar { position: relative; }
.notice-icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.notice-bell { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fffdf7; color: var(--ink); cursor: pointer; }
.notice-bell[hidden] { display: none; }
.notice-bell, .notice-panel__close, .notice-panel__back { min-height: 0; transition: none; }
.notice-bell:hover { transform: none; background: #f1efe6; }
.notice-bell--open, .notice-bell--open:hover { background: #172018; }
.session-notice__hide:hover { transform: none; background: rgba(122, 77, 11, .08); }
.notice-panel__close:hover { transform: none; background: #e2dfd2; }
.notice-panel__back:hover { transform: none; background: #f1efe6; }
.notice-bell--open { border-color: #172018; background: #172018; color: #fff; }
.notice-bell__badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; display: grid; place-items: center; border: 2px solid #f8f6ef; border-radius: 99px; background: #f0b43c; color: #172018; font-size: 11px; font-weight: 800; }
.notice-bell__badge[hidden] { display: none; }
.account-nav .services-link { display: inline-flex; align-items: center; gap: 7px; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: #e9a62c; }

.notice-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; font-size: 19px; font-weight: 800; color: #172018; background: #eceadf; }
.notice-mark--perekrestok { background: #dcefd8; color: #1d6431; }
.notice-mark--yandex-lavka { background: #fff0b3; color: #5e4a00; }
.notice-mark--kuper { background: #ffe5d2; color: #a5470f; }
.notice-mark--samokat { background: #ffe3ef; color: #a3245c; }
.notice-mark__clock { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid #fbf0dc; border-radius: 50%; background: #f0b43c; color: #172018; }

.session-notice-slot { width: min(1120px, calc(100vw - 40px)); }
.session-notice { margin-top: 28px; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "mark head actions" "mark text actions"; align-items: center; column-gap: 22px; padding: 18px 20px; border: 1px solid rgba(122, 77, 11, .26); border-radius: 22px; background: #fbf0dc; box-shadow: 0 12px 30px rgba(122, 77, 11, .07); color: var(--ink); }
.session-notice__mark { grid-area: mark; width: 48px; height: 48px; flex-basis: 48px; font-size: 20px; }
.session-notice__mark .notice-mark__clock { width: 24px; height: 24px; }
.session-notice__head { grid-area: head; min-width: 0; align-self: end; }
.session-notice__eyebrow { color: #7a4d0b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.session-notice h2 { margin: 5px 0 4px; font-size: 19px; line-height: 1.25; letter-spacing: -.03em; }
.session-notice__text { grid-area: text; align-self: start; margin: 0; color: #4a4130; font-size: 14px; line-height: 1.45; }
.session-notice__actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.session-notice__go, .session-notice__row-go { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; box-sizing: border-box; border-radius: 14px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.session-notice__go:hover, .session-notice__row-go:hover, .notice-card__go:hover { background: #194d2e; color: #fff; }
.session-notice__hide { min-height: 46px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: #5c4a22; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.session-notice--many { display: block; padding: 18px 20px 6px; }
.session-notice__top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 22px; }
.session-notice__top .session-notice__body { flex: 1 1 420px; min-width: 0; }
.session-notice__top .session-notice__text { margin: 0; }
.session-notice__clock { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #f5dca4; color: #7a4d0b; }
.session-notice__top .session-notice__hide { flex: 0 0 auto; }
.session-notice__list { margin: 14px 0 0; padding: 0; list-style: none; }
.session-notice__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(122, 77, 11, .18); }
.session-notice__row-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 17px; }
.session-notice__name { font-size: 15px; font-weight: 700; }
.session-notice__since { margin-top: 2px; color: #5c5340; font-size: 13px; line-height: 1.4; }
.session-notice__row-go { min-height: 44px; padding: 0 16px; border-radius: 13px; }
.hero:has(.session-notice-slot:not([hidden])) .eyebrow { margin-top: 56px; }

.notice-panel { position: absolute; inset: 54px 0 auto auto; z-index: 30; width: 420px; max-width: calc(100vw - 32px); margin: 0; padding: 0; box-sizing: border-box; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: #fffdf7; color: var(--ink); box-shadow: 0 24px 70px rgba(23, 32, 24, .18); }
.notice-panel[open] { display: flex; }
.notice-panel__header { display: flex; align-items: center; gap: 8px; padding: 12px 10px 4px 20px; }
.notice-panel__header h2 { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.notice-panel__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #eceadf; color: #172018; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.notice-panel__back { display: none; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #172018; cursor: pointer; }
.notice-panel__content { padding: 4px 16px 0; }
.notice-panel__section { margin: 0; padding: 8px 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.notice-panel__section--earlier { margin-top: 14px; padding-bottom: 4px; }
.notice-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid rgba(122, 77, 11, .26); border-radius: 18px; background: #fbf0dc; }
.notice-card + .notice-card { margin-top: 8px; }
.notice-card__body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.notice-card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
.notice-card__title strong { font-size: 15px; line-height: 1.3; }
.notice-card__when { flex: 0 0 auto; color: #5c5340; font-size: 12px; }
.notice-card__text { margin: 4px 0 12px; color: #4a4130; font-size: 13px; line-height: 1.45; }
.notice-card__go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; box-sizing: border-box; border-radius: 13px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.notice-history { margin: 0; padding: 0; list-style: none; }
.notice-history__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 10px 4px; border-bottom: 1px solid #eef1ec; }
.notice-history__item:last-child { border-bottom: 0; }
.notice-history__body { min-width: 0; }
.notice-history__title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.notice-history__name { font-size: 14px; line-height: 1.3; font-weight: 600; }
.notice-history__when { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.notice-history__resolved { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--green); font-size: 12px; font-weight: 600; }
.notice-panel__empty { margin: 8px 4px 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.notice-panel__footer { margin-top: 6px; padding: 4px 20px 10px; border-top: 1px solid var(--line); }
.notice-panel__all { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 14px; font-weight: 700; text-decoration: none; }
.notice-panel__all::after { content: " →"; white-space: pre; }

@media (max-width: 700px) {
  .notice-bell { width: 44px; height: 44px; margin-left: auto; }
  .session-notice-slot { width: 100%; }
  .session-notice { margin-top: 16px; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "mark head" "text text" "actions actions"; column-gap: 14px; padding: 16px; border-radius: 20px; box-shadow: 0 10px 26px rgba(122, 77, 11, .07); }
  .session-notice__mark { width: 44px; height: 44px; flex-basis: 44px; font-size: 19px; }
  .session-notice__mark .notice-mark__clock { width: 22px; height: 22px; }
  .session-notice__head { align-self: center; }
  .session-notice h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.025em; }
  .session-notice__text { margin-top: 10px; }
  .session-notice__actions { gap: 6px; margin-top: 12px; }
  .session-notice__go { flex: 1; padding: 0 14px; font-size: 15px; }
  .session-notice__hide { padding: 0 12px; }
  .session-notice--many { padding: 16px 16px 6px; }
  .session-notice__row { grid-template-columns: 40px minmax(0, 1fr); }
  .session-notice__row-go { grid-column: 1 / -1; }
  .hero:has(.session-notice-slot:not([hidden])) .eyebrow { margin-top: 26px; }
  .notice-panel:modal { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .notice-panel::backdrop { background: rgba(23, 32, 24, .2); }
  .notice-panel__header { gap: 4px; padding: 10px 12px 0 6px; }
  .notice-panel__back { display: grid; }
  .notice-panel__close { display: none; }
  .notice-panel__content { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px 0; }
  .notice-panel__section { padding: 4px 0 8px; }
  .notice-panel__section--earlier { margin-top: 18px; padding: 4px 0; }
  .notice-card__title { flex-direction: column; align-items: flex-start; gap: 2px; }
  .notice-card__text { margin: 6px 0 12px; font-size: 14px; }
  .notice-card__go { min-height: 46px; border-radius: 14px; font-size: 15px; }
  .notice-history__item { padding: 10px 0; }
  .notice-history__item:last-child { border-bottom: 1px solid #eef1ec; }
  .notice-history__title { flex-direction: column; gap: 2px; }
  .notice-panel__footer { flex-shrink: 0; margin: 0; padding: 8px 16px 16px; }
  .notice-panel__all { display: flex; justify-content: center; box-sizing: border-box; min-height: 46px; padding: 0 16px; border: 1px solid rgba(39, 99, 62, .3); border-radius: 14px; font-size: 15px; }
  .notice-panel__all::after { content: none; }
}

/* Spec 026: the page footer's links next to the policy. */
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; }

/* Visitor information pages: «Учёт посещений» (/visits, spec 026) and «О сервисе» (/about, RZ-708). */
.info-page > footer { width: min(760px, calc(100% - 32px)); }
.info-page > footer a { display: inline-block; padding-block: 6px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.info-page > footer a:hover { color: var(--ink); }
.info { width: min(760px, calc(100% - 32px)); padding: 24px 0 56px; }
.info-topbar { display: flex; align-items: center; gap: 18px; }
.info-back { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.info-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-intro { margin-top: 56px; }
.info-eyebrow { margin: 0; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.info h1 { margin: 14px 0 16px; font-size: clamp(40px, 7vw, 68px); line-height: .98; letter-spacing: -.055em; }
.info-lede { margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.info h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.info-section a { color: var(--green); text-underline-offset: 3px; }
.info-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.info-section { margin-top: 40px; }
.info-section ul, .info-section ol { margin: 0; padding-left: 20px; }
.info-section li { margin: 0 0 10px; line-height: 1.6; }
.info-section > p { margin: 0; line-height: 1.6; }
.info-section > ol + p { margin-top: 14px; }
.info-section > .info-note { margin-top: 18px; }
.info-facts { margin: 14px 0 0; border-top: 1px solid var(--line); }
.info-facts > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-facts dt { font-weight: 700; }
.info-facts dd { margin: 0; color: var(--muted); line-height: 1.55; }
.visits-choice { margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 12px 34px rgba(34, 55, 38, .05); }
.visits-state { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.visits-toggle { min-height: 48px; padding: 10px 20px; border: 1px solid rgba(39, 99, 62, .35); color: var(--green); background: transparent; }
.visits-toggle:hover { color: white; background: var(--green); }
.visits-warning { margin: 12px 0 0; color: #a52a2a; font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) {
  .info-intro { margin-top: 36px; }
  .info-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .visits-choice { padding: 20px 18px; border-radius: 20px; }
  .visits-toggle { width: 100%; }
}
/* Spec 030 (RZ-203): «Не тот товар» — a quiet text button under a result and in a store row of the comparison. */
.complaint { display: inline-flex; max-width: 100%; }
.complaint-button { min-height: 32px; padding: 4px 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 18px; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; box-shadow: none; }
.complaint-button:hover { color: var(--ink); background: transparent; text-decoration-color: currentColor; transform: none; }
.complaint-button[aria-disabled="true"] { cursor: default; text-decoration: none; }
.complaint-button[data-state="sent"] { color: var(--green); }
.complaint-button[data-state="failed"] { color: #963f2c; }
/* A 24 px target that takes only the 18 px line, so store rows stay in the source rows' tracks. */
.comparison-page .comparison-complaint .complaint-button { min-height: 24px; margin: -3px 0; padding: 3px 2px; color: var(--cmp-muted); font-weight: 500; }
.comparison-page .comparison-complaint .complaint-button[data-state="sent"] { color: var(--cmp-green); }

/* The home «Импорт корзины» block and its store chooser (owner, 07.10.2026). */
.import-promo { position: relative; overflow: hidden; flex: 1 1 300px; max-width: 360px; margin-top: 52px; padding: 24px 24px 20px; border-radius: 28px; color: #fff; background: var(--green); box-shadow: 0 24px 56px rgba(25, 77, 46, .28); }
.import-promo::before { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(217, 239, 139, .14); pointer-events: none; }
.import-promo > * { position: relative; }
.hero:has(.session-notice-slot:not([hidden])) .import-promo { margin-top: 26px; }
.import-promo__head { display: flex; align-items: center; gap: 12px; }
.import-promo__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; color: var(--ink); background: var(--lime); }
.import-promo__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.import-promo__eyebrow { color: var(--lime); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.import-promo h2 { margin: 16px 0 0; font-size: 25px; line-height: 1.12; letter-spacing: -.04em; font-weight: 700; }
.import-promo__steps { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.import-promo__steps li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255, 255, 255, .92); font-size: 14px; line-height: 1.4; }
.import-promo__steps .import-promo__long { padding-top: 2px; }
.import-promo__number { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border: 1.5px solid rgba(217, 239, 139, .7); border-radius: 50%; color: var(--lime); font-size: 12px; font-weight: 800; }
.import-promo__button { width: 100%; min-height: 56px; margin-top: 20px; padding: 0 20px; gap: 10px; border-radius: 16px; color: var(--ink); background: var(--lime); font-size: 16px; font-weight: 800; box-shadow: 0 10px 24px rgba(10, 30, 15, .25); }
.import-promo__button:hover { color: var(--ink); background: #e7f6a6; }
.import-promo__note { margin: 10px 0 0; color: rgba(255, 255, 255, .8); font-size: 12px; text-align: center; }
.import-promo__short { display: none; }
.import-promo--inline { flex: none; max-width: 640px; margin-top: 14px; padding: 18px 16px 14px; border-radius: 22px; box-shadow: 0 16px 36px rgba(25, 77, 46, .26); }
.import-promo--inline::before { top: -36px; right: -36px; width: 130px; height: 130px; }
.import-promo--inline .import-promo__head { gap: 10px; }
.import-promo--inline .import-promo__icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
.import-promo--inline .import-promo__icon svg { width: 20px; height: 20px; }
.import-promo--inline h2 { margin-top: 12px; font-size: 21px; line-height: 1.15; letter-spacing: -.035em; }
.import-promo--inline .import-promo__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.import-promo--inline .import-promo__steps li { flex-direction: column; gap: 6px; padding: 9px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .94); font-size: 12px; line-height: 1.3; }
.import-promo--inline .import-promo__number { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
.import-promo--inline .import-promo__button { min-height: 52px; margin-top: 14px; border-radius: 15px; }
.import-promo--inline .import-promo__note { margin-top: 9px; }
.import-promo--inline .import-promo__long { display: none; }
.import-promo--inline .import-promo__short { display: inline; }

.import-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 48px); margin: clamp(24px, 12vh, 104px) auto auto; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 26px; color: var(--ink); background: var(--card); box-shadow: 0 30px 80px rgba(23, 32, 24, .28); }
.import-dialog::backdrop { background: rgba(23, 32, 24, .42); }
.import-dialog__shell { padding: 24px 24px 18px; }
.import-dialog__grabber { display: none; }
.import-dialog__head { display: flex; align-items: flex-start; gap: 16px; }
.import-dialog__head > div { flex: 1 1 auto; min-width: 0; }
.import-dialog__eyebrow { color: var(--green); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.import-dialog h2 { margin: 6px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -.04em; }
.import-dialog__close { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: #fff; }
.import-dialog__close:hover { transform: none; color: var(--ink); background: #f1efe6; }
.import-dialog__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.import-dialog__intro { margin: 10px 0 18px; color: #4f574f; font-size: 14px; line-height: 1.5; }
.import-dialog__status { margin: 0; padding: 14px 0; color: var(--muted); font-size: 14px; }
.import-dialog__status--error { color: #a52a2a; }
.import-dialog__hint { margin: 0 0 12px; color: #4f574f; font-size: 14px; line-height: 1.45; }
.import-dialog__primary { min-height: 48px; padding: 0 22px; gap: 10px; border-radius: 14px; font-size: 15px; }
.import-source-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.import-source { width: 100%; min-height: 70px; display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid rgba(23, 32, 24, .08); border-radius: 18px; color: var(--ink); background: #f6f4ec; text-align: left; }
.import-source--ready { justify-content: flex-start; padding-right: 16px; border-color: var(--line); background: #fff; font: inherit; font-weight: 400; cursor: pointer; }
.import-source--ready:hover { transform: none; border-color: rgba(39, 99, 62, .45); background: #fbfdf4; }
.import-source .comparison-store-mark { width: 44px; height: 44px; flex: 0 0 44px; font-size: 19px; }
.import-source__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.import-source__name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.import-source__state { display: inline-flex; align-items: center; gap: 6px; color: #5d655d; font-size: 13px; font-weight: 600; }
.import-source__state::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; box-sizing: border-box; border: 1.5px solid #8a918a; border-radius: 50%; }
.import-source__state--ready { color: #2c6a40; }
.import-source__state--ready::before { border: 0; background: #3f9a5a; }
.import-source__state--reconnect { color: #7a4d0b; }
.import-source__state--reconnect::before { border: 0; background: #e9a62c; }
.import-source__chevron { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.import-source__action { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(23, 32, 24, .18); border-radius: 13px; color: var(--ink); background: var(--card); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.import-source__action:hover { border-color: var(--green); color: var(--green); }
.import-dialog__foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(23, 32, 24, .1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.import-dialog__foot p { flex: 1 1 240px; margin: 0; color: #5d655d; font-size: 13px; line-height: 1.4; }
.import-dialog__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 13px; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
/* While the chooser lists the stores and while a store's cart is read (owner, 07.10.2026). */
@keyframes import-shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes import-spin { to { transform: rotate(360deg); } }
@keyframes import-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
.import-skeleton { display: block; height: 12px; border-radius: 7px; background: #eceee6; animation: import-shimmer 1.4s ease-in-out infinite; animation-delay: var(--delay, 0ms); }
.import-source--skeleton { background: #fff; }
.import-source--skeleton .import-source__text { gap: 8px; }
.import-skeleton--mark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; }
.import-skeleton--name { width: 34%; height: 14px; }
.import-skeleton--state { width: 22%; height: 10px; border-radius: 6px; background: #f1f2ec; }
.import-source--skeleton:nth-child(2) .import-skeleton--name { width: 46%; }
.import-source--skeleton:nth-child(3) .import-skeleton--name { width: 40%; }
.import-source--skeleton:nth-child(4) .import-skeleton--name { width: 28%; }
.import-source--skeleton:nth-child(odd) .import-skeleton--state { width: 24%; }
.workspace-import-loading { padding-top: 10px; }
.workspace-import-loading-head { display: flex; align-items: center; gap: 14px; }
.workspace-import-loading-head h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.workspace-import-loading-head .workspace-copy { margin: 4px 0 0; font-size: 13px; }
.workspace-import-loading-mark { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; color: var(--green); }
.workspace-import-loading-mark::before { content: ""; position: absolute; inset: 0; border: 3px solid color-mix(in srgb, currentColor 20%, transparent); border-top-color: currentColor; border-radius: 50%; animation: import-spin 1s linear infinite; }
.workspace-import-loading-mark--samokat { color: #b8174a; }
.workspace-import-loading-mark--yandex-lavka { color: #8a6d00; }
.workspace-import-loading-mark--perekrestok { color: #1d6431; }
.workspace-import-loading-mark--kuper { color: #a5470f; }
.workspace-import-loading-mark .comparison-store-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 18px; }
.workspace-import-loading-bar { position: relative; overflow: hidden; height: 6px; margin: 22px 0 14px; border-radius: 99px; background: #e4e8dc; }
.workspace-import-loading-bar span { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: 99px; background: var(--green); animation: import-slide 1.6s ease-in-out infinite; }
.workspace-import-loading-copy { margin: 0 0 22px; color: #3f4a41; font-size: 14px; line-height: 1.5; }
.workspace-import-loading h4 { margin: 0; padding: 10px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.workspace-import-loading-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef1ec; }
.workspace-import-loading-row:last-child { border-bottom: 0; }
.workspace-import-loading-row .import-skeleton { animation-delay: var(--delay, 0ms); }
.workspace-import-loading-lines { display: flex; flex-direction: column; gap: 8px; }
.import-skeleton--thumb { width: 44px; height: 44px; border-radius: 10px; }
.import-skeleton--line { width: 74%; }
.workspace-import-loading-row:nth-child(2) .import-skeleton--line { width: 64%; }
.import-skeleton--short { width: 40%; height: 10px; border-radius: 6px; background: #f1f2ec; }
.import-skeleton--qty { width: 48px; }
@media (prefers-reduced-motion: reduce) { .import-skeleton, .workspace-import-loading-mark::before, .workspace-import-loading-bar span { animation: none; } }
@media (max-width: 700px) {
  .import-dialog { width: 100vw; max-height: 92dvh; margin: auto 0 0; border: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(23, 32, 24, .22); }
  .import-dialog__shell { padding: 10px 16px 28px; }
  .import-dialog__grabber { display: block; width: 40px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: rgba(23, 32, 24, .18); }
  .import-dialog__head { gap: 12px; }
  .import-dialog h2 { margin-top: 5px; font-size: 22px; letter-spacing: -.035em; }
  .import-dialog__intro { margin: 8px 0 14px; line-height: 1.45; }
  .import-source { min-height: 64px; gap: 12px; padding: 10px; border-radius: 16px; }
  .import-source--ready { padding-right: 14px; }
  .import-source .comparison-store-mark { width: 40px; height: 40px; flex-basis: 40px; font-size: 17px; }
  .import-skeleton--mark { width: 40px; height: 40px; flex-basis: 40px; }
  .import-source__name { font-size: 15px; }
  .import-source__action { padding: 0 12px; border-radius: 12px; }
  .import-dialog__foot { margin-top: 12px; padding-top: 10px; flex-direction: column; gap: 2px; text-align: center; }
  .import-dialog__foot p { flex: none; }
}

/* Spec 031 (RZ-111): the home page — the store the basket is assembled in, the search in it and the
   basket panel (mockup «Поиск в магазине», boards 1–12). Sizes and colours are the boards'. */
.store-search { position: relative; margin-top: 54px; scroll-margin-top: 12px; }
/* The room an open dropdown or chooser needs below the form, so that the footer starts under it (store-search.js). */
/* (No transition: the script measures the footer right after it sets the room.) */
.home { padding-bottom: calc(70px + var(--store-room, 0px)); transition: none; }
.store-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 0 6px; list-style: none; font-size: 13px; }
.store-step { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.store-step--muted { color: var(--muted); font-weight: 600; }
.store-step__arrow { width: 16px; height: 16px; fill: none; stroke: #a3a89e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-step__dot { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-size: 12px; font-weight: 800; }
.store-step--done .store-step__dot { border: 0; background: var(--green); color: #fff; }
.store-step--muted .store-step__dot { border: 1.5px solid #b9bdb2; color: inherit; }
.store-step__check { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.store-step--done .store-step__num, .store-step:not(.store-step--done) .store-step__check { display: none; }

/* The form: address, store, query, button — one row that wraps, as on the board. */
.store-form { margin: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 253, 247, .9); box-shadow: 0 20px 60px rgba(34, 55, 38, .08); backdrop-filter: none; }
.store-form .address-field { flex: 1.15 1 240px; }
/* The board sizes the three fields by their content box: the paddings come on top of the basis. */
.store-form .address-field, .store-field, .query-field { box-sizing: content-box; }
.store-field { position: relative; flex: .8 1 200px; min-width: 0; padding: 10px 12px 6px; border-right: 1px solid var(--line); }
.store-field--open { border-right-width: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.store-field__label { display: block; padding-left: 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.store-field--open .store-field__label { color: var(--green); }
.store-picker { width: 100%; min-height: 44px; margin-top: 3px; padding: 0 10px 0 4px; gap: 10px; justify-content: flex-start; border-radius: 12px; background: transparent; color: var(--ink); font-size: 16px; font-weight: 800; text-align: left; }
.store-picker:hover { background: rgba(23, 32, 24, .04); color: var(--ink); transform: none; }
.store-field--open .store-picker:hover { background: transparent; }
.store-picker[aria-expanded="true"] .store-picker__chevron { transform: rotate(180deg); }
.store-picker__text { min-width: 0; }
.store-picker__caption, .store-picker__compact, .store-picker__where { display: none; }
.store-picker__chevron { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.store-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; background: #f1f0e9; color: var(--muted); font-size: 14px; font-weight: 800; }
.store-mark--samokat { background: #fbe3ea; color: #8c2350; }
.store-mark--perekrestok { background: #dcefe0; color: #1f6b3a; }
.store-mark--yandex-lavka { background: #fff0c2; color: #7a5600; }
.store-mark--kuper { background: #e3e8f8; color: #2d4a9a; }
.store-mark--small { width: 26px; height: 26px; flex-basis: 26px; border-radius: 8px; font-size: 12px; }
.store-mark--large { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px; font-size: 20px; }
.store-mark--panel { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; font-size: 18px; }
.store-mark--option { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; font-size: 17px; }

.query-field { flex: 1.6 1 280px; min-width: 0; padding: 10px 12px 8px 16px; border-radius: 16px; cursor: text; }
.query-field:focus-within, .query-field.is-open { background: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.query-field__label { display: block; margin: 0; padding: 0; border: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; cursor: inherit; }
.query-field:focus-within .query-field__label, .query-field.is-open .query-field__label { color: var(--green); }
.query-field__row { display: flex; align-items: center; gap: 8px; }
.query-field__icon { display: none; flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.query-field input { flex: 1 1 auto; width: auto; min-width: 0; }
.query-field input:focus-visible { outline: 0; }
.query-clear { flex: 0 0 32px; width: 32px; height: 32px; min-height: 0; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #f1f0e9; color: var(--muted); }
.query-clear:hover { background: #e7e5da; color: var(--ink); transform: none; }
.query-clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.store-submit { flex: 0 0 auto; gap: 22px; }
.store-submit[aria-busy="true"], .store-submit[aria-busy="true"]:hover { gap: 12px; cursor: progress; background: var(--green); transform: none; }
.store-submit__spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: import-spin 1s linear infinite; }

/* The store chooser: a popover under the store field; on a phone a sheet from the bottom. */
.store-chooser { position: absolute; z-index: 6; inset: auto; top: calc(100% + 18px); left: calc(-6px + var(--chooser-shift, 0px)); width: 430px; max-width: calc(100vw - 40px); margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--card); box-shadow: 0 28px 70px rgba(34, 55, 38, .22); }
.store-chooser__sheet { padding: 20px 18px 16px; }
.store-chooser__grabber, .store-chooser__close { display: none; }
.store-chooser__head { display: flex; align-items: flex-start; gap: 10px; }
.store-chooser__head > div { flex: 1 1 auto; min-width: 0; }
.store-chooser h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.store-chooser__intro { margin: 6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.store-chooser__options { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.store-option { position: relative; min-height: 64px; padding: 10px 14px 10px 10px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 16px; cursor: pointer; }
.store-option input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.store-option input:focus-visible { outline: 0; }
.store-option:has(input:focus-visible) { outline: 3px solid #a7cc45; outline-offset: 2px; }
.store-option:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--green); }
.store-option.is-disabled { cursor: default; opacity: .6; }
.store-option > span { text-transform: none; letter-spacing: normal; }
.store-option__text { flex: 1 1 auto; min-width: 0; color: var(--ink); font-size: 16px; font-weight: 400; }
.store-option__name { display: block; font-size: 16px; font-weight: 800; }
.store-option__status { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.store-option__dot { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid #c9ccc2; border-radius: 50%; color: #fff; }
.store-option__dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.store-option:has(input:checked) .store-option__dot { border-color: var(--green); background: var(--green); }
.store-option:has(input:checked) .store-option__dot svg { visibility: visible; }
.store-chooser__note { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #f2f6df; color: #2f4a35; font-size: 13px; line-height: 1.45; }
.store-chooser__foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(23, 32, 24, .1); }
.store-chooser__connect { color: var(--green); font-size: 13px; font-weight: 700; }
.store-chooser__done { margin-left: auto; min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.store-chooser__done:hover { transform: none; }

/* The dropdown under the form: 5 products of the store, then «Развернуть все». */
.store-dropdown { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; width: min(800px, 100%); padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 28px 70px rgba(34, 55, 38, .2); }
.store-dropdown:focus, .store-results:focus { outline: 0; }
.store-dropdown[aria-busy="true"] { overflow: hidden; }
.store-dd__head, .store-dd__status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 6px 10px 12px; }
.store-dd__head { border-bottom: 1px solid rgba(23, 32, 24, .1); }
.store-dd__status { gap: 6px 12px; }
.store-dd__title { font-size: 14px; font-weight: 800; }
.store-dd__sub { color: var(--muted); font-size: 14px; }
.store-dd__prices { margin-left: auto; color: var(--muted); font-size: 12px; }
.store-dd__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 10px 4px; border-top: 1px solid rgba(23, 32, 24, .1); }
.store-dd__note { max-width: 330px; margin-left: auto; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: right; }
.store-expand { min-height: 46px; padding: 0 18px; gap: 10px; border-radius: 13px; background: #eef4dc; color: var(--green); font-size: 14px; font-weight: 800; }
.store-expand:hover { background: #e4eecb; color: #194d2e; transform: none; }
.store-expand:disabled, .store-expand:disabled:hover { background: #f1f2ec; color: var(--muted); opacity: 1; cursor: default; }
.store-icon { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Rows (dropdown) and cards (list): the product, its price and its place in the basket. */
.store-rows { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px 0; list-style: none; }
.store-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 150px; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; }
.store-row--in-cart { background: #f0f6e2; }
.store-thumb { position: relative; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; background: #f3efe2; color: #9a8a5c; }
.store-thumb svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.store-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.store-thumb.has-image svg { visibility: hidden; }
.store-row__text { min-width: 0; }
.store-row__title, .store-card__title { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.store-row__meta, .store-card__meta { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.store-row__price { font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.store-row__action, .store-card__action { display: flex; justify-content: flex-end; }
.store-hit { padding: 0 2px; border-radius: 4px; background: #e4f1b4; color: inherit; }
[data-pending] .store-row__action, [data-pending] .store-card__action { opacity: .55; }
button.store-add { min-height: 44px; padding: 0 16px; gap: 8px; border: 1px solid rgba(39, 99, 62, .35); border-radius: 12px; background: #fff; color: var(--green); font-size: 13px; font-weight: 800; white-space: nowrap; }
button.store-add:hover { background: #f4f8ea; color: #194d2e; transform: none; }
button.store-add--filled { border: 0; background: var(--green); color: #fff; }
button.store-add--filled:hover { background: #194d2e; color: #fff; }
button.store-add:disabled, button.store-add:disabled:hover { background: #fff; color: var(--green); opacity: 1; cursor: default; }
.store-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px; border-radius: 12px; background: var(--green); color: #fff; }
.store-stepper--soft { background: #e9f2d6; color: var(--green); }
.store-stepper__qty { min-width: 22px; text-align: center; font-size: 14px; font-weight: 800; }
.store-stepper--soft .store-stepper__qty { min-width: 54px; font-size: 13px; }
button.store-step-button { width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border-radius: 0; background: transparent; color: inherit; }
button.store-step-button:hover { background: rgba(255, 255, 255, .12); color: inherit; transform: none; }
.store-stepper--soft button.store-step-button:hover { background: rgba(39, 99, 62, .1); }
button.store-step-button[aria-disabled="true"], button.store-add[aria-disabled="true"], button.store-square[aria-disabled="true"] { opacity: .5; cursor: default; }
button.store-step-button:disabled { opacity: .45; cursor: default; }
.store-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; }
.store-pill--soft { background: #e9f2d6; color: var(--green); }
.store-rows--stale { padding: 8px 0 6px; opacity: .45; filter: saturate(.6); }

/* The whole list. */
.store-results { margin-top: 34px; scroll-margin-top: 16px; }
.store-list__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.store-list__head--loading { margin-bottom: 14px; }
.store-list__text { min-width: 0; }
.store-list__title { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.store-list__title:focus, .store-state__title:focus { outline: 0; }
.store-list__sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.store-collapse { margin-left: auto; min-height: 44px; padding: 0 16px; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--green); font-size: 13px; font-weight: 800; }
.store-collapse:hover { background: #f4f8ea; color: #194d2e; transform: none; }
.store-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.store-card { min-height: 132px; padding: 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.store-card--in-cart { border-color: rgba(39, 99, 62, .45); background: #f7faee; }
.store-card .store-thumb { width: 96px; height: 104px; border-radius: 16px; }
.store-card .store-thumb svg { width: 38px; height: 38px; stroke-width: 1.4; }
.store-card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.store-card__meta { margin-top: 0; }
.store-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.store-card__sum { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.store-card__price { font-size: 22px; letter-spacing: -.04em; line-height: 26px; white-space: nowrap; }
.store-card-complaint { margin: -2px 0 -4px; }
.store-card-complaint .complaint-button { min-height: 20px; padding: 0; font-size: 12px; line-height: 18px; }

.store-route-note { margin: 0; padding: 8px 10px 0; color: #5c4a22; font-size: 12px; line-height: 1.4; }
.store-route-note a { color: inherit; font-weight: 700; text-underline-offset: 2px; }
.store-results .store-route-note { margin: 0 0 14px; padding: 8px 12px; border-radius: 12px; background: #fff3dd; }

/* Waiting: a ring around the store's mark, a running bar, shapes of the rows to come. */
.store-spin { --ring-track: #dfe2d8; --ring-head: #687068; position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; }
.store-spin::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; border: 2.5px solid var(--ring-track); border-top-color: var(--ring-head); border-radius: 50%; animation: import-spin 1s linear infinite; }
.store-spin .store-mark { width: 24px; height: 24px; flex-basis: 24px; border-radius: 50%; font-size: 12px; }
.store-spin--large { width: 48px; height: 48px; flex-basis: 48px; }
.store-spin--large::before { border-width: 3px; }
.store-spin--large .store-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; }
.store-spin--samokat { --ring-track: #f3d4de; --ring-head: #8c2350; }
.store-spin--perekrestok { --ring-track: #c9e3d0; --ring-head: #1f6b3a; }
.store-spin--yandex-lavka { --ring-track: #f1e0a8; --ring-head: #7a5600; }
.store-spin--kuper { --ring-track: #cfd8f2; --ring-head: #2d4a9a; }
.store-bar { position: relative; overflow: hidden; height: 4px; margin: 0 10px; border-radius: 99px; background: #e4e8dc; }
.store-bar > span { position: absolute; top: 0; left: 0; width: 38%; height: 100%; border-radius: 99px; background: var(--green); animation: import-slide 1.6s ease-in-out infinite; }
.store-bar--large { height: 5px; margin: 0 0 18px; }
.store-skel { display: block; width: var(--w, 60%); height: 14px; border-radius: 7px; background: #eceee6; animation: import-shimmer 1.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.store-skel--b { height: 10px; border-radius: 6px; background: #f1f2ec; }
.store-skel-text { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.store-row--skeleton { grid-template-columns: 56px minmax(0, 1fr) 64px 150px; padding: 8px 10px; }
.store-skel--thumb { width: 56px; height: 56px; border-radius: 14px; }
.store-skel--price { justify-self: end; width: var(--w, 54px); height: 16px; border-radius: 8px; }
.store-skel--action { justify-self: end; width: 128px; height: 44px; border-radius: 12px; background: #f1f2ec; }
.store-rows--skeleton { padding: 8px 0 6px; }
.store-row--skeleton:nth-child(2), .store-card--skeleton:nth-child(2) { --delay: .12s; }
.store-row--skeleton:nth-child(3), .store-card--skeleton:nth-child(3) { --delay: .24s; }
.store-row--skeleton:nth-child(4), .store-card--skeleton:nth-child(4) { --delay: .36s; }
.store-row--skeleton:nth-child(5), .store-card--skeleton:nth-child(5) { --delay: .48s; }
.store-row--skeleton:nth-child(6), .store-card--skeleton:nth-child(6) { --delay: .6s; }
.store-card--skeleton { border-color: rgba(23, 32, 24, .08); }
.store-cards--skeleton .store-skel-text { padding-top: 4px; }
.store-cards--skeleton .store-skel--b { height: 14px; border-radius: 7px; background: #eceee6; }
.store-cards--skeleton .store-skel--c { height: 10px; border-radius: 6px; background: #f1f2ec; }
.store-skel--cardthumb { width: 96px; height: 104px; border-radius: 16px; }
.store-skel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.store-skel--cardprice { width: var(--w, 60px); height: 22px; border-radius: 8px; }
.store-skel--cardaction { width: 128px; height: 44px; border-radius: 12px; background: #f1f2ec; }
.store-slow { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff3dd; color: #5c3d06; }
.store-slow__title { margin: 0; font-size: 14px; font-weight: 800; }
.store-slow__text { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.store-slow__actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* Nothing found, the store did not answer, a clarification: one card, in the dropdown or in the list's place. */
.store-state { padding: 12px 10px 8px; }
.store-results .store-state { max-width: 520px; padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 22px 54px rgba(34, 55, 38, .14); }
.store-state__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #f1f0e9; color: var(--muted); }
.store-state__icon--amber { background: #fbe5cf; color: #7a3d0a; }
.store-icon--state { width: 26px; height: 26px; stroke-width: 1.8; }
.store-state__title { margin: 14px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.03em; }
.store-state__text { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.store-state__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.store-btn { min-height: 44px; padding: 0 16px; gap: 8px; border-radius: 12px; font-size: 13px; font-weight: 800; }
.store-btn--primary { border: 0; background: var(--green); color: #fff; }
.store-btn--primary:hover { background: #194d2e; transform: none; }
.store-btn--secondary, .store-btn--quiet { border: 1px solid rgba(23, 32, 24, .16); background: #fff; color: var(--green); }
.store-btn--quiet { color: var(--ink); }
.store-btn--secondary:hover { background: #f4f8ea; color: #194d2e; transform: none; }
.store-btn--quiet:hover { background: #f4f2ea; color: var(--ink); transform: none; }
.store-btn .store-icon { stroke-width: 2.2; }

/* The basket panel: under the list, held at the bottom of the screen. */
.store-panel { position: sticky; z-index: 4; bottom: 16px; margin-top: 26px; padding: 14px 14px 14px 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; border-radius: 24px; color: #fff; background: var(--green); box-shadow: 0 22px 50px rgba(25, 77, 46, .3); }
.store-panel__sum { min-width: 0; }
.store-panel__caption { color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.store-panel__total { margin-top: 2px; font-size: 22px; font-weight: 800; letter-spacing: -.035em; }
.store-panel__text { flex: 1 1 260px; margin: 0; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.45; }
.store-panel__button { min-height: 52px; padding: 0 22px; gap: 12px; border-radius: 16px; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 800; }
.store-panel__button:hover { background: #e7f6a6; color: var(--ink); transform: none; }
.store-view-list #import-promo-inline { display: none; }

@media (prefers-reduced-motion: reduce) {
  .store-spin::before, .store-bar > span, .store-skel, .store-submit__spinner { animation: none; }
}
@media (min-width: 721px) {
  .store-row--skeleton .store-skel--thumb { width: 56px; }
}

/* Phone: the boards 4–6, 11, 12. */
@media (max-width: 720px) {
  .home { width: calc(100% - 32px); padding: 12px 0 28px; }
  .site-footer { width: calc(100% - 32px); }
  .hero-copy h1 { margin: 12px 0 14px; font-size: 46px; line-height: .94; letter-spacing: -.06em; }
  .home.store-has-panel { padding-bottom: 112px; }
  .store-search { margin-top: 22px; }
  .store-steps { display: none; }
  .store-form { gap: 4px; padding: 6px; flex-direction: column; border-radius: 22px; background: rgba(255, 253, 247, .92); box-shadow: 0 16px 44px rgba(34, 55, 38, .08); }
  .store-form .address-field { flex: none; border-right-color: transparent; border-bottom-color: rgba(23, 32, 24, .1); }
  .store-field { flex: none; padding: 0; border: 0; border-bottom: 1px solid rgba(23, 32, 24, .1); border-radius: 0; }
  .store-field__label { display: none; }
  .store-picker { min-height: 55px; margin: 0; padding: 6px 10px; border-radius: 0; }
  .store-picker .store-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; font-size: 15px; }
  .store-picker__caption { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .store-picker__line { display: block; font-size: 16px; font-weight: 800; }
  .store-picker__where { color: var(--muted); font-size: 13px; font-weight: 600; }
  .store-searching .store-picker__where, .store-view-list .store-picker__where { display: inline; }
  .store-view-list .store-picker { min-height: 51px; padding: 4px 10px; }
  .store-view-list .store-picker .store-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 14px; }
  .store-view-list .store-picker__caption, .store-view-list .store-picker__name { display: none; }
  .store-view-list .store-picker__compact { display: inline; font-size: 15px; }
  .query-field { flex: none; padding: 6px 6px 6px 12px; }
  .query-field input { padding: 4px 0; font-size: 17px; }
  .query-field__label { letter-spacing: .08em; }
  .query-clear { flex-basis: 44px; width: 44px; height: 44px; background: transparent; }
  .query-clear:hover { background: transparent; }
  .query-clear svg { width: 18px; height: 18px; stroke-width: 2.2; }
  .store-submit { display: none; }
  .store-view-list .query-field:not(:focus-within) { padding: 2px 4px 2px 12px; background: transparent; box-shadow: none; }
  .store-view-list .query-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .store-view-list .query-field__icon { display: block; }
  .store-view-list .query-field input { padding: 10px 0; }
  .store-searching .hero-body, .store-searching .account-nav, .store-searching #import-promo-inline,
  .store-searching:not(.store-has-address-error) .address-field { display: none; }
  .store-searching .store-search { margin-top: 14px; }
  .store-searching .eyebrow { margin-top: 0; }

  .store-dropdown { position: static; width: auto; margin-top: 10px; padding: 8px; box-shadow: 0 22px 54px rgba(34, 55, 38, .16); }
  .store-dd__head { flex-wrap: nowrap; align-items: baseline; gap: 6px; padding: 4px 6px 10px; }
  .store-dd__title, .store-dd__sub { font-size: 13px; }
  .store-dd__status { flex-wrap: nowrap; gap: 10px; padding: 4px 6px 10px; }
  .store-dd__status .store-dd__sub, .store-dd__status .store-dd__prices { display: none; }
  .store-dd__foot { display: block; padding: 0; border-top: 0; }
  .store-expand { width: 100%; justify-content: center; min-height: 50px; margin-top: 4px; border-radius: 15px; font-size: 15px; }
  .store-dd__note { display: block; max-width: none; margin: 8px 6px 4px; text-align: center; }
  .store-bar { margin: 0 6px; }
  .store-spin { width: 32px; height: 32px; flex-basis: 32px; }
  .store-spin .store-mark { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
  .store-rows { gap: 0; padding: 4px 0; }
  .store-rows--skeleton { padding: 6px 0 4px; }
  .store-row--phone, .store-row--skeleton { position: relative; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; padding: 8px 4px 8px 6px; border-bottom: 1px solid rgba(23, 32, 24, .06); border-radius: 0; }
  .store-row--skeleton { padding: 9px 4px 9px 6px; }
  .store-row--phone:last-child, .store-row--skeleton:last-child { border-bottom: 0; }
  .store-row--phone.store-row--in-cart { border-bottom-width: 0; border-radius: 14px; }
  .store-row--phone .store-thumb, .store-skel--thumb { width: 44px; height: 44px; border-radius: 12px; }
  .store-row--phone .store-thumb svg { width: 22px; height: 22px; }
  .store-row--phone .store-row__title { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.28; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .store-row--phone .store-row__meta b { color: var(--ink); font-size: 13px; }
  .store-row--phone .store-row__action { justify-content: stretch; }
  .store-skel--action { width: 44px; height: 44px; border-radius: 13px; }
  .store-rows--phone .store-skel--a { height: 12px; border-radius: 6px; }
  .store-rows--phone .store-skel--b { height: 12px; border-radius: 6px; background: #eceee6; }
  .store-rows--phone .store-skel--c { height: 10px; border-radius: 6px; background: #f1f2ec; }
  .store-skel-text { gap: 8px; }
  button.store-square { width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(39, 99, 62, .35); border-radius: 13px; background: #fff; color: var(--green); }
  button.store-square:hover { background: #f4f8ea; color: var(--green); transform: none; }
  button.store-square:disabled, button.store-square:disabled:hover { background: #fff; color: var(--green); opacity: 1; cursor: default; }
  .store-square svg { width: 18px; height: 18px; }
  .store-square--qty, button.store-square--qty, button.store-square--qty:hover { border: 0; background: var(--green); color: #fff; font-size: 15px; font-weight: 800; }
  .store-square--qty.is-static { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; }
  .store-stepper--compact { position: absolute; z-index: 1; top: 50%; right: 4px; transform: translateY(-50%); box-shadow: 0 8px 20px rgba(25, 77, 46, .28); }
  .store-rows--list { margin: 10px 0 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
  .store-rows--list .store-row--phone, .store-results .store-row--skeleton { padding: 8px 2px; }
  .store-results .store-row--skeleton { padding: 10px 2px; }
  .store-results { margin-top: 18px; }
  .store-list__head { flex-wrap: nowrap; align-items: flex-end; gap: 10px; margin-bottom: 0; padding: 0 2px; }
  .store-list__head .store-mark--large { display: none; }
  .store-list__title { font-size: 24px; letter-spacing: -.04em; }
  .store-list__sub { margin-top: 3px; font-size: 13px; }
  .store-collapse { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--green); }
  .store-collapse span { text-decoration: underline; }
  .store-collapse:hover { background: transparent; }
  .store-list__head--loading { align-items: center; gap: 12px; margin-bottom: 0; }
  .store-list__head--loading .store-list__title { font-size: 21px; letter-spacing: -.035em; }
  .store-list__head--loading .store-list__sub { margin-top: 2px; }
  .store-spin--large { width: 40px; height: 40px; flex-basis: 40px; }
  .store-spin--large .store-mark { width: 28px; height: 28px; flex-basis: 28px; font-size: 13px; }
  .store-bar--large { margin: 14px 2px 10px; }
  .store-card-complaint { display: block; margin: 2px 0 0; }
  .store-card-complaint .complaint-button { min-height: 20px; font-size: 11px; }
  .store-results .store-state { max-width: none; }
  .store-panel { position: fixed; left: 12px; right: 12px; bottom: 14px; margin: 0; padding: 12px 12px 12px 16px; flex-wrap: nowrap; gap: 12px; border-radius: 22px; box-shadow: 0 18px 40px rgba(25, 77, 46, .35); }
  .store-panel .store-mark { display: none; }
  .store-panel__sum { flex: 1 1 auto; }
  .store-panel__total { font-size: 18px; letter-spacing: -.03em; }
  .store-panel__button { min-height: 48px; padding: 0 16px; gap: 8px; border-radius: 15px; }

  .store-chooser { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 92dvh; margin: 0; overflow: auto; border: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px rgba(10, 30, 15, .25); }
  .store-chooser::backdrop { background: rgba(23, 32, 24, .42); }
  .store-chooser__sheet { padding: 10px 16px 24px; }
  .store-chooser__grabber { display: block; width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 99px; background: #d4d6cc; }
  .store-chooser__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: #f1f0e9; color: var(--ink); }
  .store-chooser__close:hover { background: #e7e5da; color: var(--ink); transform: none; }
  .store-chooser__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .store-chooser__intro { margin-bottom: 0; }
  .store-chooser__options { margin-top: 16px; }
  .store-chooser__foot { display: block; margin-top: 14px; padding-top: 0; border-top: 0; text-align: center; }
  .store-chooser__connect { display: block; }
  .store-chooser__done { display: none; }
}
