:root {
  color-scheme: light;
  --navy: #10284b;
  --navy-2: #183b6d;
  --blue: #5460aa;
  --bright: #2e67d8;
  --ink: #142b4d;
  --muted: #667a98;
  --line: #d6e1ef;
  --line-strong: #bdcce0;
  --soft: #f3f6fa;
  --soft-blue: #edf4ff;
  --green: #14845a;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #eef3f8; color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
button, input, textarea { font: inherit; }
.ui-icon { width: 22px; height: 22px; display: block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
body.dialog-open { overflow: hidden; }

.site-header {
  position: relative;
  z-index: 40;
  color: white;
  background: linear-gradient(118deg, #0d2241 0%, #16365f 70%, #1c477f 100%);
  box-shadow: 0 2px 18px #0d1f3d2e;
}

.header-inner {
  width: min(1480px, calc(100% - 32px));
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.price-header-row, .order-header-row { width: 100%; align-items: center; }
.price-header-row { display: flex; gap: 24px; }
.order-header-row { display: none; justify-content: space-between; gap: 18px; }
body.order-mode .price-header-row { display: none; }
body.order-mode .order-header-row { display: flex; }
.order-header-back { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: white; color: #28558d; font-size: 14px; line-height: 20px; font-weight: 800; box-shadow: 0 4px 12px #07162924; }
.order-header-back:hover { background: #edf4ff; }
.order-header-logo { width: 126px; height: 43px; object-fit: contain; }

.brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand img { width: 112px; height: 38px; object-fit: contain; filter: brightness(0) invert(1); }
.brand-divider { width: 1px; height: 32px; background: #ffffff42; }
.brand-title { font-size: 15px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; }

.header-contacts {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: #d6e3f4;
  font-size: 13px;
  line-height: 18px;
}

.header-contacts a:hover { color: white; }
.header-cart {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #ffffff30;
  border-radius: 11px;
  background: #ffffff12;
  color: white;
  font-size: 14px;
  font-weight: 650;
}
.header-cart:hover { background: #ffffff1f; }
.header-cart strong, .cart-chip {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 99px;
  background: white;
  color: var(--navy);
  font-size: 12px;
}

.page-shell { width: min(1480px, calc(100% - 32px)); margin: 12px auto 64px; }
.page-heading, .order-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.page-heading h1, .order-heading h1 { margin: 0; color: #17375f; font-size: 28px; line-height: 34px; }
.heading-action { width: auto; min-width: 220px; }
.order-heading { justify-content: flex-start; }
.back-button { min-height: 42px; padding: 8px 13px; border: 1px solid #c5d4e6; border-radius: 10px; background: white; color: #28558d; font-size: 14px; font-weight: 750; }
.back-button:hover { background: #edf4ff; }
.intro-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid #cfdced;
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% -80%, #5d86d831 0 37%, transparent 38%),
    linear-gradient(118deg, #fff 0%, #f7faff 100%);
  box-shadow: 0 8px 28px #1b3c6910;
}

.eyebrow { margin: 0 0 5px; color: #557198; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .11em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(23px, 2.1vw, 33px); line-height: 1.15; letter-spacing: -.035em; }
.intro-copy { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 22px; }
.demo-badge { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #bdd0eb; border-radius: 99px; background: #edf4ff; color: #315b93; font-size: 12px; font-weight: 750; }

.level-card {
  margin-top: 0;
  padding: 12px 18px 10px;
  border: 1px solid #cbd9ea;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 18px #17375f0a;
}
.level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.level-copy { display: grid; gap: 1px; }
.level-head strong { color: #28558d; font-size: 14px; line-height: 20px; }
.level-head .level-copy small { color: var(--green); font-size: 12px; line-height: 16px; font-weight: 750; }
.level-head span { color: var(--navy); font-size: 20px; line-height: 24px; font-weight: 800; white-space: nowrap; }
.progress-track { position: relative; height: 8px; margin-top: 9px; border-radius: 99px; background: #e0e7f1; }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5f83cc, #285fc3); transition: width .3s ease; }
.progress-marker { position: absolute; top: -4px; width: 2px; height: 17px; border-radius: 2px; background: #627999; }
.wholesale-marker { left: 25%; }
.delivery-marker { right: 0; }
.progress-labels { position: relative; min-height: 32px; margin-top: 5px; display: flex; justify-content: space-between; color: #536a88; font-size: 11px; line-height: 14px; }
.progress-labels span { text-align: right; }
.progress-labels span:first-child { text-align: left; }
.progress-labels b { font: inherit; font-weight: 750; }
.progress-labels small { color: #8290a3; font-size: 10px; }
.progress-labels .delivery-label, .progress-labels .delivery-label small, .progress-labels .delivery-label b { color: var(--green); }
.wholesale-label { position: absolute; left: 25%; transform: translateX(-50%); text-align: center !important; }

.selected-prices-panel { width: min(100%, 980px); margin: 10px auto 0; overflow: hidden; border: 1px solid #285790; border-radius: 13px; background: white; box-shadow: 0 6px 22px #17375f14; }
.selected-prices-panel[hidden] { display: none; }
.selected-prices-panel summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; background: linear-gradient(90deg, #173b6d, #245b99); color: white; font-size: 14px; line-height: 20px; font-weight: 800; cursor: pointer; list-style: none; }
.selected-prices-panel summary::-webkit-details-marker { display: none; }
.selected-prices-chevron { font-size: 21px; line-height: 1; transition: transform .2s ease; }
.selected-prices-panel[open] .selected-prices-chevron { transform: rotate(180deg); }
.selected-prices-table { overflow: hidden; }
.selected-prices-head, .selected-prices-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(100px, .7fr) minmax(110px, .8fr); align-items: stretch; }
.selected-prices-head.has-best, .selected-prices-row.has-best { grid-template-columns: minmax(180px, 1.55fr) repeat(3, minmax(96px, .72fr)); }
.selected-prices-head { min-height: 30px; background: #f3f7fc; color: #58708f; font-size: 10px; line-height: 13px; font-weight: 800; text-transform: uppercase; }
.selected-prices-head span, .selected-prices-row > * { min-width: 0; padding: 7px 10px; border-left: 1px solid #dce5f0; }
.selected-prices-head span:first-child, .selected-prices-row > *:first-child { border-left: 0; }
.selected-prices-head span:nth-child(n+2) { display: flex; align-items: center; justify-content: center; text-align: center; }
.selected-prices-row > *:first-child { background: #f3f7fc; }
.selected-prices-row { min-height: 48px; border-top: 1px solid #dce5f0; color: #526984; font-size: 12px; line-height: 16px; }
.selected-prices-row > span:nth-child(n+2), .selected-prices-row > strong { display: flex; align-items: center; justify-content: center; text-align: center; }
.selected-prices-row b, .selected-prices-row small { display: block; }
.selected-prices-row b { overflow: hidden; color: #17375f; font-size: 13px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.selected-prices-row small { margin-top: 1px; color: #72849a; font-size: 10px; line-height: 14px; }
.selected-prices-row strong { white-space: nowrap; }
.selected-prices-head .selected-price-retail, .selected-prices-row .selected-price-retail { background: white; }
.selected-prices-head .selected-price-wholesale { background: #edf4ff; color: #234f87; }
.selected-prices-row .selected-price-wholesale { background: #edf4ff; }
.selected-prices-head .selected-price-best, .selected-prices-row .selected-price-best { background: #173b6d; color: white; }
.selected-prices-row .selected-price-best.empty { color: #9fb5d2; }
.selected-prices-row .selected-price-retail, .selected-prices-row .selected-price-wholesale, .selected-prices-row .selected-price-best { color: #173456; font-size: 16px; line-height: 20px; font-weight: 750; white-space: nowrap; }
.selected-prices-row .selected-price-best { color: white; }
.selected-prices-row .active-price-column { box-shadow: inset 0 -2px #2e67d8; color: #174f9e; font-weight: 800; }
.selected-prices-row .selected-price-best.active-price-column { box-shadow: inset 0 -2px #2e67d8; color: white; }

.content-grid { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.category { margin-top: 14px; overflow: hidden; border: 1px solid #cbd8e8; border-radius: 16px; background: white; box-shadow: 0 5px 20px #17375f0b; }
.category:first-child { margin-top: 0; }
.category-title { margin: 0; padding: 13px 17px; border-bottom: 1px solid #d3deec; background: linear-gradient(90deg, #10284b, #1a467b); color: white; font-size: 16px; line-height: 21px; letter-spacing: -.01em; }
.table-head, .product-row { display: grid; grid-template-columns: minmax(260px, 1.25fr) minmax(220px, .8fr) minmax(300px, 1.05fr); align-items: stretch; }
.table-head { min-height: 40px; border-bottom: 1px solid #d8e2ef; background: #f3f7fc; color: #5b7090; font-size: 11px; font-weight: 750; line-height: 14px; letter-spacing: .02em; }
.table-head > span { display: flex; align-items: center; padding: 7px 13px; }
.table-head > span:nth-child(n+2) { justify-content: center; border-left: 1px solid #d8e2ef; }
.product-row { min-height: 126px; border-bottom: 1px solid #dde6f1; }
.product-row:last-child { border-bottom: 0; }
.product-row:nth-child(even) { background: #fbfdff; }
.product-main { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 11px; padding: 9px 13px; }
.product-image-button { width: 72px; height: 78px; display: grid; place-items: center; padding: 0; overflow: hidden; border: 1px solid #2f6cbf; border-radius: 11px; background: #1f63c6; }
.product-image-button:hover { border-color: #6990cb; box-shadow: 0 0 0 3px #5481c818; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.product-image-button img.is-small-pouch { transform: none; }
.product-image-button img.is-largest-pouch, .image-stage img.is-largest-pouch { transform: scale(1.75); }
.product-info { min-width: 0; }
.product-info h3 { margin: 0; color: #16365e; font-size: 17px; line-height: 21px; }
.product-info p { margin: 4px 0 0; color: #5f7593; font-size: 13px; line-height: 18px; }
.pack-note { display: inline-block; margin-top: 7px; padding: 4px 7px; border-radius: 6px; background: #eef3f9; color: #516985; font-size: 11px; line-height: 14px; font-weight: 650; }
.price-summary { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-left: 1px solid #dce5f0; }
.price-summary.single-price { grid-template-columns: 1fr; }
.current-price, .best-price { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 7px; text-align: center; }
.current-price { background: #edf4ff; }
.current-price.discounted { box-shadow: inset 0 -3px #2e67d8; }
.current-price span, .best-price span { font-size: 10px; line-height: 13px; font-weight: 750; }
.current-price span { color: #5e7592; }
.current-price strong, .best-price strong { font-size: 18px; line-height: 22px; white-space: nowrap; }
.current-price strong { color: #173456; }
.current-price small, .best-price small { font-size: 9px; line-height: 12px; }
.current-price small { color: #73849b; }
.best-price { background: #173b6d; color: #fff; }
.best-price strong { color: #fff; }
.best-price span, .best-price small { color: #c9d8ec; }
.best-price.active { box-shadow: inset 0 -3px #8ab5ff; }
.product-actions { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 9px 10px; border-left: 1px solid #dce5f0; }
.quantity-controls { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quantity-controls.single-control { grid-template-columns: minmax(0, 150px); justify-content: center; }
.quantity-control { min-width: 0; display: grid; gap: 4px; }
.quantity-copy { min-width: 0; }
.quantity-copy strong { display: block; color: #355272; font-size: 11px; line-height: 14px; }
.quantity-copy small { display: block; overflow: hidden; color: #7b8da4; font-size: 9px; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stepper { width: 100%; display: grid; grid-template-columns: 32px minmax(32px, 1fr) 32px; align-items: center; overflow: hidden; border: 1px solid #bfcfe4; border-radius: 10px; background: white; }
.stepper button { width: 32px; height: 36px; display: grid; place-items: center; padding: 0; background: #f1f5fb; color: #285790; }
.stepper button .ui-icon { width: 18px; height: 18px; }
.stepper button:hover:not(:disabled) { background: #e5eefb; }
.stepper button:disabled { color: #b6c1cf; cursor: not-allowed; }
.stepper input { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; border-inline: 1px solid #d5e0ee; outline-offset: -2px; color: #17375f; text-align: center; font-size: 14px; font-weight: 750; }

.price-category, .order-category { margin-top: 14px; overflow: hidden; border: 1px solid #cbd8e8; border-radius: 16px; background: white; box-shadow: 0 5px 20px #17375f0b; }
.price-category:first-child, .order-category:first-child { margin-top: 0; }
.price-category.two-prices .price-table-head, .price-category.two-prices .price-grid-row { display: grid; grid-template-columns: minmax(300px, 1.65fr) repeat(2, minmax(160px, 1fr)); align-items: stretch; }
.price-category.has-best .price-table-head, .price-category.has-best .price-grid-row { display: grid; grid-template-columns: minmax(300px, 1.65fr) repeat(3, minmax(145px, 1fr)); align-items: stretch; }
.price-category .category-title { padding: 9px 13px; font-size: 14px; line-height: 18px; }
.price-table-head { min-height: 36px; border-bottom: 1px solid #d8e2ef; background: #f3f7fc; color: #5b7090; font-size: 10px; font-weight: 800; line-height: 13px; }
.price-table-head span { display: flex; align-items: center; justify-content: center; padding: 7px 10px; border-left: 1px solid #d8e2ef; text-align: center; }
.price-table-head span:first-child { justify-content: flex-start; border-left: 0; }
.price-table-head span:nth-child(2) { background: white; }
.price-table-head span:nth-child(3) { background: #edf4ff; }
.price-category.has-best .price-table-head span:last-child { background: #173b6d; color: white; border-left-color: #2b527f; }
.price-grid-row { min-height: 68px; border-bottom: 1px solid #dde6f1; }
.price-grid-row:last-child { border-bottom: 0; }
.price-grid-row:nth-child(even) { background: #fbfdff; }
.price-product-main { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 9px; padding: 6px 11px; background: #f3f7fc; }
.order-product-main { min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 11px; padding: 8px 13px; }
.price-product-main .product-image-button { width: 44px; height: 48px; padding: 0; border-radius: 8px; }
.order-product-main .product-image-button { width: 64px; height: 68px; }
.price-product-main .product-info h3 { font-size: 14px; line-height: 18px; }
.price-product-main .product-info p { margin-top: 1px; font-size: 12px; line-height: 16px; }
.price-tier { min-width: 0; display: grid; grid-template-rows: 20px 12px; align-content: center; justify-items: center; row-gap: 2px; padding: 7px 6px; border-left: 1px solid #dce5f0; text-align: center; }
.price-tier strong { align-self: end; color: #173456; font-size: 16px; line-height: 20px; white-space: nowrap; }
.price-tier small { align-self: start; color: #71839a; font-size: 9px; line-height: 12px; white-space: nowrap; }
.price-tier.base-tier { background: white; }
.price-tier.wholesale-tier { background: #edf4ff; }
.price-tier.best-tier { background: #173b6d; border-left-color: #2b527f; }
.price-tier.best-tier strong { color: white; }
.price-tier.best-tier small { color: #c9d8ec; }
.price-tier.best-tier.empty strong, .price-tier.best-tier.empty small { color: #aabbd2; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 14px; margin-top: 14px; }
.order-builder { width: min(100%, 980px); margin: 14px auto 0; padding: 18px; border: 1px solid #c7d5e7; border-radius: 16px; background: white; box-shadow: 0 10px 34px #17375f14; }
.order-builder-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.order-builder-head h2 { margin: 0; color: #17375f; font-size: 24px; line-height: 29px; }
.order-builder-head span { color: #617693; font-size: 13px; line-height: 18px; }
.order-builder-head b { color: #28558d; font-size: 15px; }
.selected-order-items { margin-top: 14px; overflow: hidden; border: 1px solid #d8e3f0; border-radius: 13px; }
.order-empty { min-height: 126px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px; border: 1px dashed #bfd0e5; border-radius: 12px; background: #fbfdff; color: #5f7799; }
.order-empty svg { width: 42px; height: 42px; flex: 0 0 auto; }
.order-empty strong, .order-empty span { display: block; }
.order-empty strong { color: #214b80; font-size: 16px; line-height: 21px; }
.order-empty span { margin-top: 4px; font-size: 13px; line-height: 18px; }
.selected-order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; border-bottom: 1px solid #dde6f1; }
.selected-order-row:last-child { border-bottom: 0; }
.selected-order-main { min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 11px; padding: 10px 13px; }
.selected-order-main .product-image-button { width: 64px; height: 68px; }
.selected-order-main .product-info h3 { margin: 0; color: #17375f; font-size: 16px; line-height: 20px; }
.selected-order-main .product-info p { margin: 2px 0 0; color: #637895; font-size: 12px; line-height: 16px; }
.selected-order-main .product-info small { display: block; margin-top: 3px; color: #71839a; font-size: 11px; line-height: 15px; }
.selected-order-price { min-width: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding: 12px 13px 8px; background: transparent; text-align: right; }
.selected-order-price small { color: #637995; font-size: 11px; line-height: 15px; white-space: nowrap; }
.selected-order-price strong { color: #173b6d; font-size: 18px; line-height: 22px; white-space: nowrap; }
.selected-order-price em { color: #71839a; font-size: 10px; line-height: 14px; font-style: normal; }
.selected-order-controls { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px 10px; border-top: 1px solid #e2e9f2; }
.selected-order-remove { width: 38px; height: 38px; display: grid; place-items: center; align-self: end; padding: 0; border-radius: 9px; background: transparent; color: #71849e; }
.selected-order-remove svg { width: 21px; height: 21px; }
.selected-order-remove:hover { color: #a23b45; }
.add-product-button { width: 100%; min-height: 56px; margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #2f68d8; border-radius: 12px; background: white; color: #1757bb; font-size: 16px; line-height: 22px; font-weight: 800; }
.add-product-button span { font-size: 26px; line-height: 1; font-weight: 400; }
.add-product-button:hover { background: #f1f6ff; }
.order-builder-summary { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d9e3ef; }
.order-builder-summary .cart-totals:empty { display: none; }
.order-builder-summary .primary-button { margin-top: 12px; }
.order-category { margin-top: 12px; }
.order-product-row { min-height: 112px; display: grid; grid-template-columns: minmax(250px, 1.2fr) minmax(170px, .55fr) minmax(300px, 1fr); align-items: stretch; border-bottom: 1px solid #dde6f1; }
.order-product-row:last-child { border-bottom: 0; }
.order-product-row:nth-child(even) { background: #fbfdff; }
.order-current-price { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; border-left: 1px solid #dce5f0; background: #edf4ff; text-align: center; }
.order-current-price span { color: #647994; font-size: 10px; line-height: 13px; font-weight: 750; }
.order-current-price strong { color: #173b6d; font-size: 16px; line-height: 21px; white-space: nowrap; }
.order-current-price small { color: #58749a; font-size: 10px; line-height: 13px; }
.order-product-actions { min-width: 0; display: flex; align-items: center; padding: 9px 10px; border-left: 1px solid #dce5f0; }

.terms-card { margin-top: 14px; padding: 12px 14px; border: 1px solid #c9d7e8; border-radius: 14px; background: white; box-shadow: 0 5px 20px #17375f0b; }
.terms-card h2 { margin: 0; color: #17375f; font-size: 16px; line-height: 21px; }
.terms-card ul { margin: 9px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d7e1ed; border-radius: 10px; list-style: none; }
.terms-card li { min-width: 0; padding: 9px 11px; background: #f8fbff; }
.terms-card li + li { border-left: 1px solid #d7e1ed; }
.terms-card strong, .terms-card span { display: block; }
.terms-card strong { color: #234d82; font-size: 14px; line-height: 19px; }
.terms-card span { margin-top: 3px; color: #687b94; font-size: 12px; line-height: 17px; }
.terms-action { width: min(100%, 300px); margin: 12px auto 0; display: block; }

.cart-panel { position: sticky; top: 86px; padding: 18px; border: 1px solid #c7d5e7; border-radius: 16px; background: white; box-shadow: 0 10px 34px #17375f14; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-heading h2 { margin: 0; font-size: 24px; line-height: 29px; letter-spacing: -.02em; }
.cart-heading .cart-chip { background: #e7effa; color: #234d83; }
.cart-items { display: grid; gap: 0; margin: 15px 0; overflow: hidden; border: 1px solid #d8e3f0; border-radius: 12px; }
.cart-empty { padding: 18px 14px; color: #74859d; font-size: 13px; line-height: 19px; text-align: center; }
.cart-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; }
.cart-line + .cart-line { border-top: 1px solid #e0e8f2; }
.cart-line img { width: 44px; height: 48px; padding: 3px; border-radius: 8px; background: #e6e9ed; object-fit: contain; mix-blend-mode: multiply; }
.cart-line-copy { min-width: 0; }
.cart-line-copy strong { display: block; overflow: hidden; color: #19395f; font-size: 13px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.cart-line-copy span { display: block; margin-top: 1px; color: #70829a; font-size: 11px; line-height: 15px; }
.cart-line-total { text-align: right; }
.cart-line-total strong { display: block; color: #173456; font-size: 13px; line-height: 17px; white-space: nowrap; }
.cart-line-total button { margin-top: 2px; padding: 2px 0; background: transparent; color: #7d8fa7; font-size: 10px; }
.cart-line-total button:hover { color: #a23b45; }
.cart-totals { display: grid; gap: 8px; margin-bottom: 14px; }
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; color: #5f728d; font-size: 13px; line-height: 18px; }
.total-row strong { color: #213d61; white-space: nowrap; }
.total-row.saving { color: var(--green); }
.total-row.saving strong { color: var(--green); }
.total-row.grand { margin-top: 3px; padding-top: 11px; border-top: 1px solid #d9e3ef; color: #173456; font-weight: 750; }
.total-row.grand strong { font-size: 22px; }
.delivery-copy { margin: 3px 0 0; padding: 8px 10px; border-radius: 9px; background: #edf5ff; color: #315d93; font-size: 11px; line-height: 16px; }
.primary-button { width: 100%; min-height: 50px; padding: 11px 16px; border-radius: 11px; background: linear-gradient(180deg, #3a74e3, #2557bb); color: white; font-size: 15px; font-weight: 750; box-shadow: 0 7px 18px #2255aa2b; }
.primary-button:hover:not(:disabled) { filter: brightness(1.04); }
.primary-button:disabled { background: #e0e7f0; color: #8190a4; box-shadow: none; cursor: not-allowed; }
.cart-demo-copy { margin: 9px 2px 0; color: #8593a6; font-size: 10px; line-height: 14px; text-align: center; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: #08172ca8; backdrop-filter: blur(3px); }
.product-picker-dialog { width: min(1040px, calc(100% - 28px)); height: min(90dvh, 860px); max-height: none; overflow: hidden; border-radius: 18px; background: #eef3f8; color: var(--ink); box-shadow: 0 24px 80px #07162970; }
.product-picker-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.product-picker-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; background: white; border-bottom: 1px solid #d6e1ef; }
.product-picker-header .eyebrow { margin-bottom: 1px; }
.product-picker-header h2 { margin: 0; color: #17375f; font-size: 22px; line-height: 27px; }
.product-picker-close { position: static; flex: 0 0 auto; }
.product-picker-scroll { min-height: 0; overflow-y: auto; padding: 14px 16px 20px; }
.product-picker-scroll .order-category:first-child { margin-top: 0; }
.product-picker-scroll .order-category { overflow: hidden; border: 1px solid #d7e1ed; border-radius: 13px; background: white; }
.product-picker-scroll .order-category .category-title { margin: 0; padding: 8px 13px; border-bottom: 1px solid #d7e1ed; background: #e8f0fa; color: #365a83; font-size: 13px; line-height: 18px; }
.picker-product-row { min-height: 82px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 12px; border-bottom: 1px solid #e1e8f1; }
.picker-product-row:last-child { border-bottom: 0; }
.picker-product-main { min-width: 0; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 11px; }
.picker-product-main .product-image-button { width: 62px; height: 66px; padding: 2px; border-radius: 8px; }
.picker-product-main .product-info h3 { margin: 0; color: #17375f; font-size: 16px; line-height: 20px; }
.picker-product-main .product-info p { margin: 3px 0 0; color: #637895; font-size: 13px; line-height: 17px; }
.picker-add-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: transparent; color: #1757bb; }
.picker-add-button .ui-icon { width: 27px; height: 27px; stroke-width: 2; }
.picker-add-button:hover:not(:disabled) { background: #edf4ff; }
.image-dialog { width: min(596px, calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; padding: 18px; border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 24px 80px #07162970; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; background: #10284be8; color: white; }
.dialog-close .ui-icon { width: 23px; height: 23px; }
.image-stage { width: min(100%, 560px); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; margin-inline: auto; padding: 0; border-radius: 13px; background: #1f63c6; }
.image-stage img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; mix-blend-mode: normal; }
.image-dialog h2 { margin: 15px 0 2px; font-size: 21px; line-height: 27px; }
.image-dialog p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }

.checkout-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; background: #eef3f8; color: var(--ink); }
.checkout-shell { min-height: 100%; }
.checkout-header { position: relative; z-index: 3; min-height: 74px; display: flex; align-items: center; gap: 14px; padding: 12px max(18px, calc((100% - 980px) / 2)); color: white; background: linear-gradient(110deg, #10284b, #1c477e); }
.checkout-header .eyebrow { margin-bottom: 1px; color: #bcd0ea; }
.checkout-header h2 { margin: 0; font-size: 22px; line-height: 27px; }
.checkout-header .demo-badge { margin-left: auto; color: white; border-color: #ffffff3b; background: #ffffff12; }
.checkout-back { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border-radius: 50%; background: #ffffff10; color: white; }
.checkout-back .ui-icon { width: 24px; height: 24px; }
.checkout-back:hover { background: #ffffff1c; }
.checkout-grid { width: min(980px, calc(100% - 32px)); margin: 20px auto 40px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: start; }
.checkout-products, .customer-card { padding: 19px; border: 1px solid #cbd8e9; border-radius: 16px; background: white; box-shadow: 0 7px 26px #17375f10; }
.checkout-products h3, .customer-card h3 { margin: 0 0 13px; font-size: 20px; line-height: 26px; }
.checkout-product { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid #e0e8f2; font-size: 13px; line-height: 18px; }
.checkout-product span { color: #61758f; }
.checkout-product strong { color: #173456; white-space: nowrap; }
.checkout-total { margin-top: 13px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field-grid label { min-width: 0; color: #526985; font-size: 12px; font-weight: 650; }
.field-grid label span { display: block; margin-bottom: 5px; }
.field-grid input, .field-grid textarea { width: 100%; min-height: 47px; padding: 10px 11px; border: 1px solid #cbd3dd; border-radius: 9px; outline: none; background: #f1f3f5; color: #173456; font-size: 16px; font-weight: 400; resize: vertical; }
.field-grid input:focus, .field-grid textarea:focus { border-color: #4a79c0; box-shadow: 0 0 0 3px #4a79c01c; }
.field-grid input:disabled { cursor: not-allowed; background: #f0f4f8; color: #8492a5; }
.delivery-choice { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 0; border: 0; }
.delivery-choice legend { margin-bottom: 5px; color: #526985; font-size: 12px; font-weight: 650; }
.delivery-choice label { position: relative; display: block; }
.delivery-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.delivery-choice span { min-height: 45px; display: grid !important; place-items: center; margin: 0 !important; padding: 8px 10px; border: 1px solid #cbd3dd; border-radius: 9px; background: #f1f3f5; color: #526985; text-align: center; font-size: 14px; font-weight: 700; cursor: pointer; }
.delivery-choice input:checked + span { border-color: #2e67c7; background: #e8f0fc; color: #194d9e; box-shadow: inset 0 0 0 1px #2e67c7; }
.delivery-choice input:focus-visible + span { outline: 3px solid #4a79c033; outline-offset: 2px; }
.delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.delivery-fields[hidden] { display: none; }
.autocomplete-wrap { position: relative; display: block !important; margin: 0 !important; }
.autocomplete-menu { position: absolute; z-index: 8; top: calc(100% + 5px); left: 0; right: 0; max-height: 238px; overflow-y: auto; padding: 5px; border: 1px solid #bdcce0; border-radius: 10px; background: white; box-shadow: 0 14px 34px #17375f2b; }
.autocomplete-menu[hidden] { display: none; }
.autocomplete-option { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 10px; border-radius: 7px; color: #173456; text-align: left; }
.autocomplete-option:hover, .autocomplete-option:focus-visible { background: #edf4ff; outline: none; }
.autocomplete-option strong { font-size: 14px; line-height: 18px; font-weight: 700; }
.autocomplete-option small { color: #6f8198; font-size: 12px; line-height: 16px; font-weight: 500; }
.autocomplete-message { display: block !important; margin: 0 !important; padding: 10px; color: #6f8198; font-size: 13px; line-height: 18px; font-weight: 500; }
.wide-field { grid-column: 1 / -1; }
.customer-card .primary-button { margin-top: 14px; }
.form-note { margin: 8px 2px 0; color: #8492a5; font-size: 10px; line-height: 14px; text-align: center; }
.order-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-error { margin: 10px 2px 0; padding: 10px 12px; border-radius: 9px; background: #fff0f0; color: #a52a2a; font-size: 13px; line-height: 18px; text-align: center; }
.primary-button[disabled] { cursor: wait; opacity: .7; }
.success-dialog { width: min(480px, calc(100% - 28px)); border-radius: 18px; background: white; color: var(--ink); }
.success-card { padding: 28px; text-align: center; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: #e4f6ee; color: #128459; font-size: 29px; font-weight: 800; }
.success-card h2 { margin-bottom: 8px; font-size: 23px; }
.success-card p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 21px; }

@media (max-width: 1240px) {
  .header-contacts { display: none; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 328px; }
  .table-head, .product-row { grid-template-columns: minmax(220px, 1.05fr) minmax(210px, .8fr) minmax(280px, 1.05fr); }
  .product-main { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding-inline: 11px; }
  .product-image-button { width: 72px; height: 82px; }
  .order-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .terms-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms-card li:nth-child(odd) { border-left: 0; }
  .terms-card li:nth-child(n+3) { border-top: 1px solid #d7e1ed; }
}

@media (max-width: 1240px) {
  body { padding-bottom: 0; }
  .page-shell { width: min(760px, calc(100% - 24px)); margin-top: 14px; }
  .header-inner { width: calc(100% - 24px); min-height: 64px; }
  .brand img { width: 96px; height: 36px; }
  .brand-title { font-size: 14px; }
  .header-cart { display: none; }
  .content-grid { display: block; }
  .cart-panel { display: block; }
}

@media (max-width: 720px) {
  .order-header-back { min-height: 40px; padding: 7px 11px; font-size: 13px; }
  .order-header-logo { width: 106px; height: 38px; }
  .brand-divider { display: block; height: 26px; }
  .brand-title { display: block; font-size: 13px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .page-heading h1, .order-heading h1 { font-size: 23px; line-height: 28px; }
  .heading-action { width: 100%; min-width: 0; }
  .order-heading { align-items: center; gap: 10px; }
  .back-button { flex: 0 0 auto; padding-inline: 10px; }
  .level-card { padding: 11px 12px 9px; }
  .level-head strong { font-size: 13px; line-height: 18px; }
  .level-head span { font-size: 18px; line-height: 22px; }
  .progress-labels { font-size: 10px; }
  .progress-labels small { font-size: 9px; }
  .selected-prices-panel { margin-top: 8px; border-radius: 11px; }
  .selected-prices-panel summary { min-height: 41px; padding: 8px 10px; font-size: 13px; line-height: 18px; }
  .selected-prices-head, .selected-prices-row { grid-template-columns: minmax(130px, 1.45fr) minmax(70px, .75fr) minmax(84px, .85fr); }
  .selected-prices-head.has-best, .selected-prices-row.has-best { grid-template-columns: minmax(112px, 1.3fr) repeat(3, minmax(60px, .67fr)); }
  .selected-prices-head span, .selected-prices-row > * { padding: 6px 5px; }
  .selected-prices-head { font-size: 8px; line-height: 11px; }
  .selected-prices-row { font-size: 10px; line-height: 14px; }
  .selected-prices-row b { font-size: 11px; line-height: 15px; }
  .selected-prices-row small { font-size: 9px; line-height: 12px; }
  .selected-prices-row .selected-price-retail, .selected-prices-row .selected-price-wholesale, .selected-prices-row .selected-price-best { font-size: 14px; line-height: 18px; }
  .price-category.two-prices .price-table-head, .price-category.two-prices .price-grid-row { grid-template-columns: minmax(135px, 1.6fr) repeat(2, minmax(76px, 1fr)); }
  .price-category.has-best .price-table-head, .price-category.has-best .price-grid-row { grid-template-columns: minmax(125px, 1.55fr) repeat(3, minmax(58px, .85fr)); }
  .price-category .category-title { padding: 8px 10px; font-size: 13px; line-height: 17px; }
  .price-table-head { display: grid; min-height: 32px; font-size: 9px; line-height: 11px; }
  .price-table-head span { padding: 5px 3px; }
  .price-grid-row { min-height: 56px; padding: 0; }
  .price-product-main { grid-column: auto; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 5px 6px; }
  .price-product-main .product-image-button { width: 34px; height: 38px; padding: 0; border-radius: 6px; }
  .price-product-main .product-info h3 { font-size: 13px; line-height: 16px; }
  .price-product-main .product-info p { font-size: 10px; line-height: 13px; }
  .price-tier { min-height: 56px; grid-template-rows: 18px 10px; row-gap: 1px; padding: 4px 2px; border-top: 0; }
  .price-tier.base-tier { border-radius: 0; }
  .price-tier:last-child { border-radius: 0; }
  .price-tier strong { font-size: 14px; line-height: 18px; }
  .price-tier small { font-size: 8px; line-height: 10px; }
  .order-product-row { grid-template-columns: 1fr; min-height: 0; padding: 9px; }
  .order-product-main { grid-column: 1 / -1; grid-template-columns: 60px minmax(0, 1fr); padding: 0 0 8px; }
  .order-product-main .product-image-button { width: 60px; height: 64px; }
  .order-current-price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 7px 9px; border: 1px solid #d5e0ee; border-radius: 9px; text-align: left; }
  .order-current-price strong { font-size: 14px; }
  .order-product-actions { grid-column: 1 / -1; padding: 8px 0 0; border-left: 0; }
  .order-builder { margin-top: 10px; padding: 13px; border-radius: 13px; }
  .order-builder-head h2 { font-size: 21px; line-height: 26px; }
  .selected-order-items { margin-top: 11px; }
  .order-empty { min-height: 118px; justify-content: flex-start; padding: 18px; }
  .selected-order-row { grid-template-columns: minmax(0, 1fr) auto; padding: 8px; }
  .selected-order-main { grid-column: 1; grid-template-columns: 56px minmax(0, 1fr); padding: 0; }
  .selected-order-main .product-image-button { width: 56px; height: 60px; }
  .selected-order-price { grid-column: 2; min-width: 76px; padding: 3px 2px 0 8px; }
  .selected-order-price strong { font-size: 15px; line-height: 19px; }
  .selected-order-controls { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; margin-top: 8px; padding: 8px 0 0; border-top: 1px solid #e2e9f2; }
  .add-product-button { min-height: 52px; font-size: 15px; }
  .product-picker-dialog { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .product-picker-header { min-height: 64px; padding: 9px 12px; }
  .product-picker-header h2 { font-size: 20px; line-height: 25px; }
  .product-picker-scroll { padding: 8px 8px 16px; }
  .product-picker-scroll .order-category { margin-top: 8px; border-radius: 11px; }
  .product-picker-scroll .order-category .category-title { padding: 7px 9px; font-size: 12px; line-height: 16px; }
  .picker-product-row { min-height: 70px; gap: 8px; padding: 6px 8px; }
  .picker-product-main { grid-template-columns: 50px minmax(0, 1fr); gap: 8px; }
  .picker-product-main .product-image-button { width: 50px; height: 56px; }
  .picker-product-main .product-info h3 { font-size: 14px; line-height: 18px; }
  .picker-product-main .product-info p { margin-top: 1px; font-size: 11px; line-height: 15px; }
  .picker-add-button { width: 42px; height: 42px; font-size: 30px; }
  .table-head { display: none; }
  .product-row { display: grid; grid-template-columns: 1fr; min-height: 0; padding: 9px; }
  .product-main { grid-column: 1 / -1; grid-template-columns: 66px minmax(0, 1fr); padding: 0 0 8px; }
  .product-image-button { width: 66px; height: 70px; }
  .product-info h3 { font-size: 16px; }
  .price-summary { grid-column: 1 / -1; min-height: 58px; overflow: hidden; border: 1px solid #d5e0ee; border-radius: 10px; }
  .current-price, .best-price { padding: 6px 5px; }
  .current-price strong, .best-price strong { font-size: 15px; line-height: 19px; }
  .product-actions { grid-column: 1 / -1; padding: 8px 0 0; border-left: 0; }
  .quantity-controls { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quantity-controls.single-control { grid-template-columns: minmax(0, 1fr); }
  .cart-panel { margin-top: 12px; padding: 14px; }
  .cart-heading h2 { font-size: 21px; line-height: 26px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-products { order: 2; }
  .field-grid { grid-template-columns: 1fr; }
  .delivery-fields { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 58px; }
  .brand img { width: 88px; }
  .page-shell { width: calc(100% - 16px); }
  h1 { font-size: 22px; }
  .category { border-radius: 13px; }
  .category-title { font-size: 15px; }
  .product-main { grid-template-columns: 60px minmax(0, 1fr); }
  .product-image-button { width: 60px; height: 64px; }
  .pack-note { margin-top: 5px; }
  .terms-card { padding: 15px; border-radius: 13px; }
  .terms-card ul { grid-template-columns: 1fr; }
  .terms-card li + li, .terms-card li:nth-child(n+3) { border-left: 0; border-top: 1px solid #d7e1ed; }
  .quantity-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .quantity-controls.single-control { grid-template-columns: minmax(0, 1fr); }
  .checkout-header { padding-inline: 12px; }
  .checkout-header h2 { font-size: 18px; line-height: 23px; }
  .checkout-header .demo-badge { display: none; }
  .checkout-grid { width: calc(100% - 16px); margin-top: 8px; }
  .customer-card, .checkout-products { padding: 15px; border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
