/* CandyPort brand: navy / cobalt / mint. */
:root {
  --cp-navy: #071D3A;
  --cp-cobalt: #0060F0;
  --cp-mint: #20D48F;
  --cp-gray: #E5EAF0;
  --cp-slate: #334155;
  --cp-sky: #7DD3FC;
  --cp-pale-mint: #D1FAE5;
  --cp-neutral: #F8FAFC;
  --cp-bg: #F8FAFC;
  --cp-text: #334155;
  --cp-muted: #64748b;
  --cp-ink: #071D3A;
  --cp-primary: #0060F0;
  --cp-primary-hover: #0047C2;
  --cp-soft: #E8F1FF;
}

body {
  background: #fff;
  color: var(--cp-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#product-list.row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  padding: 8px 16px 28px;
  width: 100%;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

#product-list > .col {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
  display: flex !important;
  align-self: stretch;
  justify-self: stretch;
}

@media (min-width: 960px) {
  #product-list.row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

body.cp-list #product-list.row {
  grid-template-columns: minmax(0, 1fr) !important;
}

.cp-card {
  min-width: 0;
  padding: 0;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cp-card--out {
  opacity: 0.92;
}

.cp-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.cp-media img,
.cp-media-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.cp-card--out .cp-media img {
  filter: grayscale(0.35) brightness(0.92);
}

.cp-country,
.cp-country-line {
  display: none;
}

.cp-country {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: min(132px, 46%);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-oos-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.cp-body {
  padding: 10px 10px 6px;
  flex: 1 1 auto;
}

.cp-edo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 9px 3px 7px;
  border: 1px solid #BEDFFF;
  border-radius: 999px;
  background: #EFF7FF;
  color: #174A94;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  box-shadow: none;
  text-decoration: none;
  overflow: visible;
}

a .cp-edo,
.cp-detail-title .cp-edo {
  color: #174A94;
  text-decoration: none;
}

.cp-edo svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}

.cp-body h3:has(.cp-edo),
.cp-detail-title:has(.cp-edo) {
  overflow: visible;
  line-height: 1.7;
}

#product-list .cp-body h3:has(.cp-edo) {
  overflow: visible;
  line-height: 1.7;
  max-height: none;
}

.cp-body h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  min-height: 0;
  max-height: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #071D3A;
  overflow: hidden;
  word-break: break-word;
}

.cp-brand,
.cp-name {
  display: block;
}

.cp-brand {
  font-weight: 600;
}

.cp-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 500;
}

.cp-volume {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

.cp-card-facts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.cp-card-facts span {
  display: block;
}

.cp-body h3 a {
  color: inherit;
  text-decoration: none;
}

.cp-country-line {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.25;
  color: var(--cp-muted);
}

.cp-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px 10px;
  margin-top: auto;
}

.cp-detail-offers {
  padding: 0 0 12px;
  max-width: 420px;
}
.cp-page .cp-detail-offers {
  max-width: none;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  gap: 8px;
}

.cp-page .cp-detail-offers .cp-buy-total {
  margin-top: 10px;
}


.cp-band {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  min-height: 48px;
  width: 100%;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e8ecf1;
}

.cp-band--piece {
  box-shadow: inset 3px 0 0 #bae6fd;
}

.cp-band--pack {
  box-shadow: inset 3px 0 0 #86efac;
}

.cp-band--out {
  opacity: 0.72;
}

.cp-band-main {
  flex: 1;
  min-width: 0;
  padding: 8px 8px 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cp-band-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-band-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cp-band-meta {
  font-size: 11px;
  line-height: 1.25;
  color: var(--cp-muted);
}

.cp-band-controls {
  flex: 0 0 auto;
  width: clamp(76px, 34%, 112px);
  max-width: 42%;
  display: flex;
  align-items: stretch;
  border-left: 1px solid #e8ecf1;
  background: rgba(255, 255, 255, 0.85);
}

.cp-plus,
.cp-step {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #0060F0;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-plus {
  width: 100%;
  min-height: 48px;
  font-size: 26px;
  line-height: 1;
}

.cp-plus:active,
.cp-step:active {
  background: #f0f9ff;
}

.cp-stepper {
  display: grid;
  grid-template-columns: 1fr minmax(52px, auto) 1fr;
  width: 100%;
  min-height: 48px;
}

.cp-step {
  font-size: 20px;
  line-height: 1;
}

.cp-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 52px;
  padding: 4px 2px;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  border-right: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
}

.cp-qty {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 20px;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  color: var(--cp-ink);
  text-align: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: none;
}

.cp-sum {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  color: #0060F0;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.cp-sum[hidden] {
  display: none !important;
}

.cp-qty::-webkit-outer-spin-button,
.cp-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cp-qty:focus {
  outline: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 96, 240, 0.22);
}

.cp-band.is-empty .cp-stepper {
  display: none;
}

.cp-band:not(.is-empty) .cp-plus {
  display: none;
}

/* Variant A: qty > 0 → hide title/price, stepper full width */
.cp-band:not(.is-empty) .cp-band-main {
  display: none;
}

.cp-band:not(.is-empty) .cp-band-controls {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  border-left: 0;
}

.cp-band:not(.is-empty) .cp-stepper {
  grid-template-columns: 1fr minmax(64px, 1.2fr) 1fr;
}

.cp-band:not(.is-empty) .cp-step {
  font-size: 24px;
  min-width: 44px;
}

.cp-band:not(.is-empty) .cp-mid {
  min-width: 64px;
}

.cp-band:not(.is-empty) .cp-qty {
  font-size: 17px;
}

.cp-band:not(.is-empty) .cp-sum {
  font-size: 11px;
}

.cp-band.is-busy {
  pointer-events: none;
  opacity: 0.92;
}

#product:has(.cp-detail-offers) > .mb-3,
#product:has(.cp-detail-offers) > .row,
#product:has(.cp-detail-offers) #button-cart {
  display: none !important;
}

body:has(.cp-detail-offers) .col-sm > ul.list-unstyled:first-of-type {
  display: none;
}

.cp-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2000;
  background: #071D3A;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  max-width: min(420px, calc(100% - 24px));
}

/* Catalog shell. Piece/pack bands above stay as they are. */
#top,
footer:not(.cp-foot),
.breadcrumb,
#column-left,
#column-right,
#display-control {
  display: none !important;
}

header.cp-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 57px;
  margin: 0;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #E5EAF0;
}

.cp-mark,
.cp-heading {
  color: #071D3A;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.cp-mark {
  font-size: 17px;
  font-weight: 800;
  flex: 0 0 auto;
  color: var(--cp-cobalt);
  letter-spacing: -0.03em;
}

.cp-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.cp-links a {
  padding: 6px 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.cp-links a:hover,
.cp-links a.is-active {
  color: var(--cp-cobalt);
  background: var(--cp-soft);
}

.cp-login {
  flex: 0 0 auto;
  color: #071D3A;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cp-dir {
  padding: 20px 16px 48px;
}

.cp-dir h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.cp-dir p {
  max-width: 640px;
  margin: 0 0 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.cp-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.cp-dir-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  color: #071D3A;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.cp-dir-grid a span {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.cp-dir-grid a:hover {
  background: #f8fafc;
}

.cp-business-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cp-business-actions a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: #0060F0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cp-business-actions a.cp-quiet {
  background: #f3f4f6;
  color: #071D3A;
}

.cp-heading {
  font-size: 18px;
  font-weight: 600;
}

.cp-search {
  flex: 1 1 auto;
  min-width: 160px;
}

.cp-search #search.cp-search-box {
  margin: 0;
  height: auto;
  border: 0;
  background: transparent;
  overflow: visible;
}

.cp-search #search .cp-search-row {
  margin: 0;
  height: 36px;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex-wrap: nowrap;
}

.cp-search #search .form-control {
  height: 36px;
  border: none;
  box-shadow: none;
  font-size: 13px;
  background: transparent;
}

.cp-search #search .form-control:focus {
  box-shadow: none;
}

.cp-search #search .btn {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 0 12px;
}

.cp-layout {
  display: flex;
  flex: 0 0 auto;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  overflow: hidden;
}

.cp-layout button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #64748b;
}

.cp-layout button.is-active {
  background: #f3f4f6;
  color: #071D3A;
}

.cp-cart-label {
  display: none;
}

.cp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111827;
  font-size: 18px;
  cursor: pointer;
  appearance: none;
  text-decoration: none;
}

.cp-icon:hover,
.cp-icon:focus,
.cp-icon:focus-visible {
  background: transparent;
  box-shadow: none;
  outline: none;
  color: #111827;
}

.cp-search-screen {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: #fff;
}

.cp-search-screen[hidden] {
  display: none !important;
}

header.cp-top.is-search-open {
  z-index: 130;
}

.cp-search-close {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 22px;
  cursor: pointer;
}

.cp-search-screen-inner {
  width: min(560px, 100%);
  text-align: center;
}

.cp-search-screen-inner h2 {
  margin: 0 0 28px;
  color: #111827;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-search-screen-form #search.cp-search-box {
  display: block;
  height: auto;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.cp-search-screen-form .cp-search-row {
  display: flex;
  height: 48px;
  margin: 0;
  border: 1px solid #111827;
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}

.cp-search-screen-form #search .form-control {
  display: block !important;
  height: 48px !important;
  padding: 0 14px;
  border: 0;
  box-shadow: none;
  font-size: 16px;
}


.cp-contact-screen {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: #fff;
}

.cp-contact-screen[hidden] {
  display: none !important;
}

header.cp-top.is-contact-open {
  z-index: 130;
}

.cp-contact-screen-inner {
  width: min(420px, 100%);
  text-align: center;
}

.cp-contact-screen-inner h2 {
  margin: 0 0 28px;
  color: #111827;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-contact-action {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "ico title"
    "ico note";
  column-gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  text-decoration: none;
}

.cp-contact-action:hover,
.cp-contact-action:active {
  background: #f8fafc;
  border-color: #dbe3ee;
}

.cp-contact-action i {
  grid-area: ico;
  color: #0060F0;
  font-size: 20px;
  text-align: center;
}

.cp-contact-action span {
  grid-area: title;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
}

.cp-contact-action small {
  grid-area: note;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.cp-search-screen-form #search .btn {
  width: 48px !important;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #111827;
  color: #fff;
  font-size: 16px;
}

/* Search suggestions (typeahead) */
.cp-search-box {
  position: relative;
}

.cp-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  max-height: min(360px, 55vh);
  overflow: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  text-align: left;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.cp-search-suggest[hidden] {
  display: none !important;
}

.cp-search-suggest a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  color: #0f172a;
  text-decoration: none;
}

.cp-search-suggest a.is-active,
.cp-search-suggest a:hover {
  background: #f1f5f9;
}

.cp-search-suggest a.is-query {
  grid-template-columns: 40px minmax(0, 1fr);
}

.cp-search-suggest-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

.cp-search-suggest-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 15px;
}

.cp-search-suggest-text {
  min-width: 0;
}

.cp-search-suggest-text b {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-search-suggest-text mark {
  padding: 0;
  background: #dbeafe;
  color: inherit;
  font-weight: 800;
}

.cp-search-suggest-text span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-search-suggest-empty {
  padding: 12px 14px;
  color: #64748b;
  font-size: 13px;
}

.cp-search-screen-form .cp-search-suggest {
  left: 0;
  right: 0;
}

@media (max-width: 900px) {
  .cp-search-screen-form .cp-search-suggest {
    max-height: min(50vh, 320px);
  }
}

.cp-user-name--lab {
  display: none;
}

.cp-addr-pin {
  display: none;
}

.cp-head-filter,
.cp-head-contact {
  display: none;
}

.cp-profile-wrap {
  position: relative;
}

.cp-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #071D3A;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
}

.cp-profile:hover,
.cp-profile[aria-expanded="true"] {
  background: #f8fafc;
}

.cp-cart .dropdown {
  display: block;
}

a.cp-cart-btn {
  text-decoration: none;
  color: inherit;
}

.cp-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #071D3A;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}

.cp-cart-btn.dropdown-toggle::after {
  display: none;
}

.cp-cart-ico {
  display: none;
}

.cp-cart-count {
  color: #64748b;
  font-weight: 500;
}

.cp-cart .dropdown-menu {
  min-width: min(420px, calc(100vw - 24px));
}


main:not(:has(.cp-nav)) {
  display: block;
}

main {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 57px);
  background: #fff;
}

main > :not(.cp-nav) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

/* Cabinet: do not inherit catalog left-rail grid; keep content centered */
body.ac-body main {
  display: block;
  min-height: calc(100vh - 57px);
  background: #fff;
}

body.ac-body main > .container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

body.ac-body main > :not(.cp-nav) {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  max-width: none;
  justify-self: auto;
}

.cp-nav {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 57px;
  display: flex;
  flex-direction: column;
  width: 228px;
  height: calc(100vh - 57px);
  max-height: calc(100vh - 57px);
  background: #fff;
  border-right: 1px solid #E5EAF0;
  overflow: hidden;
}

.cp-nav-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 0;
}

.cp-nav-link,
.cp-nav-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 14px;
  color: #071D3A;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
}

.cp-nav-link:hover,
.cp-nav-side-link:hover {
  background: #f8fafc;
  color: #071D3A;
}

.cp-nav-link.has-children::after {
  content: ">";
  color: #94a3b8;
  font-weight: 400;
}

.cp-nav-link.is-active {
  background: var(--cp-soft);
  color: var(--cp-cobalt);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--cp-cobalt);
}

.cp-nav-link--child {
  padding-left: 26px;
  color: #64748b;
  font-weight: 400;
}

.cp-nav-side {
  margin-top: auto;
  padding: 8px 0 12px;
  border-top: 1px solid #E5EAF0;
}

.cp-nav-side-link {
  color: #64748b;
}

#product-category.container,
#product-search.container,
#cp-catalog.container {
  max-width: none !important;
  width: 100% !important;
  padding: 0;
  justify-self: stretch;
}

#cp-catalog .cp-catalog-h1 {
  margin: 0 0 12px;
  padding: 8px 16px 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.cp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 2px;
}

.cp-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-tool,
.cp-filter-reset {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #071D3A;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cp-tool:hover,
.cp-filter-reset:hover {
  color: #2563eb;
}

.cp-tool-sep {
  color: #94a3b8;
  font-size: 13px;
}

.cp-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cp-sort select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cp-found {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
}

.cp-filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 8px 16px 0;
  padding: 12px;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  background: #fff;
}

.cp-filter-panel[hidden] {
  display: none !important;
}

.cp-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.cp-filter-field select,
.cp-filter-apply {
  height: 34px;
  border: 1px solid #E5EAF0;
  border-radius: 8px;
  background: #fff;
  color: #071D3A;
  font-size: 13px;
}

.cp-filter-field select {
  min-width: 180px;
  padding: 0 8px;
}

.cp-filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: #071D3A;
  font-size: 13px;
}

.cp-filter-apply {
  padding: 0 12px;
  font-weight: 600;
  cursor: pointer;
}

.cp-empty {
  margin: 24px 16px;
  color: #64748b;
}

.cp-pager {
  display: flex;
  justify-content: center;
  padding: 6px 16px 32px;
}

.cp-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-pager .page-item .page-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3a3a3a;
  padding: 4px 2px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: none;
}

.cp-pager .page-item.active .page-link {
  color: #111;
  background: transparent;
  border-bottom: 1px solid #111;
}

.cp-pager .page-item.disabled .page-link {
  color: #b0b6c0;
  background: transparent;
}

.cp-more-wrap {
  padding: 8px 16px 4px;
}

.cp-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #d7dbe3;
  border-radius: 2px;
  background: #fff;
  color: #1c1c1c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
}

.cp-more:hover {
  border-color: #071D3A;
}

.cp-more:disabled {
  color: #64748b;
  cursor: progress;
}

#menu.cp-nav {
  background-color: #fff;
  background-image: none;
  border: none;
  border-radius: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 899px) {
  header.cp-top {
    flex-wrap: nowrap;
    height: auto;
  }

  .cp-search {
    order: unset;
    flex-basis: auto;
  }

  main {
    display: block;
  }

  .cp-nav {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    max-height: 280px;
    border-right: none;
    border-bottom: 1px solid #E5EAF0;
  }
}

body:has(.cp-page) {
  overflow-x: clip;
}

body:has(.cp-page) main {
  display: block;
  overflow-x: clip;
  max-width: 100%;
}

/* Bootstrap .row negative gutters make the product page swipe sideways on phones. */
#product-info:has(.cp-page).container,
#product-info:has(.cp-page) #content {
  max-width: 100%;
  overflow-x: clip;
}

#product-info:has(.cp-page) > .row {
  --bs-gutter-x: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

#product-info:has(.cp-page) > .row > [class*="col"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100%;
}

body:has(.cp-page) .cp-nav,
body:has(.cp-page) .cp-heading,
body:has(.cp-page) .cp-layout,
#product-info:has(.cp-page) .breadcrumb,
#product-info:has(.cp-page) #content > .row.mb-3,
#product-info:has(.cp-page) #content > ul.nav,
#product-info:has(.cp-page) #content > .tab-content,
#product-info:has(.cp-page) #content > h3,
#product-info:has(.cp-page) #content > .row-cols-1 {
  display: none !important;
}

body:has(.cp-page) .cp-cart-ico {
  display: inline-flex;
  margin-right: 6px;
  color: #071D3A;
  font-size: 16px;
}

body:has(.cp-page) .cp-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0060F0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

#product-info:has(.cp-page).container {
  max-width: 1120px;
  width: auto;
  margin: 0 auto;
  padding: 8px 28px 48px;
}

.cp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.cp-back:hover {
  color: #071D3A;
}

.cp-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1fr);
  gap: 48px;
  align-items: start;
}

.cp-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.cp-hero-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

/* Desktop: 50% photo | 50% text; side padding + center in each half */
@media (min-width: 900px) {
  #product-info:has(.cp-page).container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 0 56px;
    box-sizing: border-box;
  }

  .cp-page {
    --cp-half-pad: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "back detail"
      "photo detail";
    align-items: start;
    margin: 0;
    width: 100%;
    column-gap: 0;
    box-sizing: border-box;
  }

  .cp-back {
    grid-area: back;
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    justify-self: start;
    width: max-content;
    max-width: calc(100% - (var(--cp-half-pad) * 2));
    margin: 16px var(--cp-half-pad) 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5eaf0;
    color: #334155;
  }

  .cp-page-grid {
    display: contents;
  }

  .cp-gallery {
    /* width only — height follows via aspect-ratio (100% in a var resolves
       against height when used in height:, which broke the square) */
    grid-area: photo;
    position: sticky;
    top: 72px;
    justify-self: center;
    align-self: start;
    width: min(695px, calc(100% - (var(--cp-half-pad) * 2)));
    max-width: 695px;
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin: 0 var(--cp-half-pad);
    background: #f8fafc;
    overflow: hidden;
    box-sizing: border-box;
  }

  .cp-hero {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
  }

  .cp-hero-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  /* Hide / wishlist sit on the photo, not under «Назад» */
  .cp-hero .cp-hide.cp-hide--hero,
  .cp-hero .cp-hide {
    top: 12px;
    left: 12px;
    z-index: 3;
  }

  .cp-wish--hero {
    top: 12px;
    right: 12px;
    z-index: 3;
  }

  .cp-detail {
    grid-area: detail;
    justify-self: center;
    align-self: start;
    width: calc(100% - (var(--cp-half-pad) * 2));
    max-width: 520px;
    margin: 0 var(--cp-half-pad);
    padding: 28px 0 48px;
    box-sizing: border-box;
  }
}

@media (min-width: 1280px) {
  .cp-page {
    --cp-half-pad: 48px;
  }

  .cp-gallery {
    width: min(695px, calc(100% - (var(--cp-half-pad) * 2)));
    max-width: 695px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cp-detail {
    max-width: 560px;
    padding: 36px 0 56px;
  }
}

@media (max-width: 899px) {
  .cp-back {
    display: none !important;
  }

  #product-info:has(.cp-page).container {
    padding: 0 0 32px;
  }

  .cp-page {
    margin-top: 0;
  }

  .cp-page-grid {
    gap: 16px;
  }

  .cp-gallery,
  .cp-hero {
    margin-top: 0;
  }

  .cp-hero {
    min-height: 0;
    padding-top: 0;
  }

  .cp-detail {
    padding: 0 14px;
  }

  .cp-detail-title {
    padding: 0 4px;
    font-size: 17px;
  }

  .cp-page .cp-detail-offers {
    gap: 6px;
  }

  .cp-buy-total {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .cp-specs,
  .cp-tabs,
  .cp-tab-panel {
    padding-left: 2px;
    padding-right: 2px;
  }
}

.cp-hero-volume {
  margin: 8px 0 16px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.cp-thumbs {
  display: none !important;
}

.cp-hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #E5EAF0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  color: #071D3A;
  font-size: 14px;
  cursor: pointer;
  transform: translateY(-50%);
}

.cp-gallery--multi .cp-hero-nav {
  display: inline-flex;
}

.cp-hero-nav--prev { left: 8px; }
.cp-hero-nav--next { right: 8px; }

.cp-hero-nav:hover,
.cp-hero-nav:active {
  background: #fff;
}

.cp-hero-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  pointer-events: none;
  min-height: 28px;
}

.cp-hero-country {
  position: static;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 55%;
  padding: 6px 10px;
  border: 1px solid #E5EAF0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  color: #071D3A;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-hero-sku {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  display: block;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* country stays bottom-left; sku is centered independently */
.cp-hero-meta {
  pointer-events: none;
}
.cp-hero-meta .cp-hero-sku {
  /* positioned vs .cp-hero, not the meta flex row */
}

.cp-wish--hero {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  margin: 0;
}

.cp-wish--hero button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  color: #64748b;
  font-size: 16px;
}

.cp-wish--hero button:hover {
  color: #e11d48;
}

.cp-thumb {
  width: 74px;
  height: 74px;
  padding: 4px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.cp-thumb.is-active {
  border-color: #0060F0;
  box-shadow: 0 0 0 1px #0060F0;
}

.cp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cp-detail-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 28px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 14px;
}

.cp-detail-dot {
  width: 1px;
  height: 14px;
  background: #E5EAF0;
}

.cp-wish {
  margin: 0 0 0 auto;
}

.cp-wish button {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cp-detail-title,
.cp-detail-brand,
.cp-detail-name {
  margin: 0;
  color: #071D3A;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cp-detail-title {
  font-size: 22px;
  text-align: center;
}

.cp-detail-sku {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.cp-detail-title + .cp-detail-sku + .cp-detail-offers,
.cp-detail-title + .cp-detail-sku + .cp-detail-out {
  margin-top: 14px;
}


.cp-detail-brand {
  font-size: 22px;
}

.cp-detail-name {
  margin-top: 2px;
  font-size: 22px;
}

.cp-detail-lead {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.cp-detail-volume {
  margin: 8px 0 0;
  color: #071D3A;
  font-size: 15px;
}

.cp-detail-out {
  margin: 20px 0 0;
  color: #64748b;
  font-weight: 700;
}

.cp-buy {
  margin-top: 12px;
  border-top: 1px solid #E5EAF0;
}

.cp-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cp-buy-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cp-buy-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cp-buy-price {
  color: #071D3A;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cp-buy-meta {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.2;
}

.cp-buy-ctl {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.cp-buy-group {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.cp-buy-minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  border: none;
  border-right: 1px solid #E5EAF0;
  background: transparent;
  color: #071D3A;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.cp-buy .cp-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 34px;
  padding: 0 4px;
  border: none;
  color: #071D3A;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.cp-buy-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  margin: 0;
  border: none;
  border-left: 1px solid #E5EAF0;
  border-radius: 0;
  background: #0060F0;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.cp-buy-total {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f0ff;
  color: #0060F0;
  text-decoration: none;
}

.cp-buy-total[hidden] {
  display: none !important;
}

.cp-buy-total-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

.cp-buy-total-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cp-buy-total-text strong {
  font-size: 14px;
}

.cp-buy-total-note {
  color: #8b7cf6;
  font-size: 13px;
}

.cp-buy-total-sum {
  margin-left: auto;
  color: #071D3A;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cp-buy-total-go {
  color: #0060F0;
  font-size: 22px;
  line-height: 1;
}

.cp-tabs {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  border-bottom: 1px solid #E5EAF0;
}

.cp-tab {
  margin: 0;
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cp-tab.is-active {
  color: #071D3A;
  border-bottom-color: #071D3A;
}

.cp-tab-panel {
  padding-top: 16px;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.cp-tab-panel[hidden] {
  display: none !important;
}

.cp-muted {
  margin: 0;
  color: #94a3b8;
}

.cp-specs {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.cp-specs div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.cp-specs dt {
  color: #64748b;
  font-weight: 500;
}

.cp-specs dd {
  margin: 0;
  color: #071D3A;
}

@media (max-width: 800px) {
  .cp-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cp-hero {
    min-height: 280px;
  }

  .cp-detail-title,
  .cp-detail-brand,
  .cp-detail-name {
    font-size: 18px;
  }

  .cp-tabs {
    gap: 14px;
    overflow-x: auto;
  }
}

/* Header: dropdown, search, login, cart badge */
.cp-links {
  flex: 0 0 auto;
  overflow: visible;
}

.cp-links .cp-drop {
  position: relative;
}

/* Product «О товаре»: description + calm wholesale details */
.cp-about-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.cp-about-opt {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #E8EEF4;
  display: grid;
  gap: 8px;
}

.cp-about-opt-line,
.cp-about-opt-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.cp-about-opt-line strong {
  font-weight: 600;
  color: #071D3A;
}

.cp-about-opt-sub {
  padding-left: 1.6em;
  color: #64748b;
}

.cp-about-opt-ico {
  display: inline-block;
  width: 1.35em;
  margin-right: 0.15em;
  font-style: normal;
}

.cp-about-opt a {
  color: #071D3A;
  text-decoration: none;
  border-bottom: 1px solid #CBD5E1;
}

.cp-about-opt a:hover {
  border-bottom-color: #071D3A;
}

/* Desktop: компактное меню «Каталог» — только верхние разделы (без всех подкатегорий). */
.cp-links .cp-drop > a i {
  margin-left: 4px;
  font-size: 10px;
  color: #94a3b8;
}

.cp-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 240px;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.cp-drop:hover .cp-drop-menu,
.cp-drop:focus-within .cp-drop-menu {
  display: block;
}

.cp-links .cp-drop-menu a {
  display: block;
  white-space: normal;
}

header.cp-top .cp-search {
  flex: 1 1 auto;
  max-width: 460px;
  margin: 0 auto;
}

.cp-login i {
  margin-right: 6px;
  color: #475569;
}

.cp-cart-ico {
  display: inline-flex;
  margin-right: 6px;
  color: #071D3A;
  font-size: 15px;
}

.cp-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0060F0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Countries page */
.cty {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 56px;
}

.cty h1,
.cty h2 {
  margin: 0;
  color: #071D3A;
  letter-spacing: -0.02em;
}

.cty-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 13px;
}

.cty-crumbs a {
  color: #64748b;
  text-decoration: none;
}

.cty-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: #0060F0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cty-btn:hover {
  background: #0052D6;
  color: #fff;
}

.cty-hero {
  display: block;
  margin-bottom: 8px;
}

.cty-hero-copy {
  align-self: center;
  padding: 8px 0;
}

.cty-hero-copy h1 {
  max-width: 520px;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 750;
}

.cty-hero-copy p {
  max-width: 460px;
  margin: 14px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.5;
}

.cty-promo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 190px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, #fff1f6, #ffe4ee);
  overflow: hidden;
  color: #071D3A;
  text-decoration: none;
}

.cty-promo-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cty-promo-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 280px;
}

.cty-promo-name {
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: #1e1b4b;
}

.cty-promo-sub {
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

.cty-card-box {
  display: none;
}

.cty-map-full {
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
}

.cty-map-full .cty-map {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.cty-map-full .cty-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.cty-map-full .cty-legend {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px 8px;
}

.cty-rest {
  padding-top: 28px;
}

.cty-map {
  position: relative;
}

.cty-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.cty-c {
  stroke: #fff;
  stroke-width: 0.6;
  fill: #E5EAF0;
  transition: opacity 0.12s;
}

.cty-map path.cty-c,
.cty-map a.cty-c path {
  stroke: #fff;
  stroke-width: 0.6;
}

path.cty-l0 { fill: #E5EAF0; }
a.cty-l1 path { fill: #D6E6FF; }
a.cty-l2 path { fill: #7DD3FC; }
a.cty-l3 path { fill: #5b7cfa; }
a.cty-l4 path { fill: #071D3A; }

a.cty-c:hover path,
a.cty-c:focus path {
  stroke: #0060F0;
  stroke-width: 1.4;
  outline: none;
}

.cty-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  color: #071D3A;
  text-decoration: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.cty-pin img,
.cty-tip img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.cty-pin span,
.cty-tip span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cty-pin b,
.cty-tip b {
  font-size: 12px;
  font-weight: 650;
}

.cty-pin small,
.cty-tip small {
  color: #64748b;
  font-size: 11px;
}

.cty-tip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: #071D3A;
  border-radius: 8px;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}

.cty-tip[hidden] {
  display: none;
}

.cty-tip small {
  color: #cbd5e1;
}

.cty-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 12px;
}

.cty-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cty-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cty-legend i.cty-l4 { background: #071D3A; }
.cty-legend i.cty-l3 { background: #5b7cfa; }
.cty-legend i.cty-l2 { background: #7DD3FC; }
.cty-legend i.cty-l1 { background: #D6E6FF; }
.cty-legend i.cty-l0 { background: #E5EAF0; }

.cty-all {
  margin-top: 36px;
}

.cty-all-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cty-all-head h2,
.cty-sec-head h2,
.cty-brands h2 {
  font-size: 24px;
  font-weight: 700;
}

.cty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cty-search {
  position: relative;
  display: block;
  margin: 0;
}

.cty-search i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}

.cty-search input,
.cty-controls select {
  height: 40px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
}

.cty-search input {
  width: 260px;
  padding: 0 12px 0 34px;
}

.cty-controls select {
  padding: 0 12px;
}

.cty-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.cty-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #fff;
  color: #071D3A;
  text-decoration: none;
}

.cty-card[hidden] {
  display: none;
}

.cty-card:hover {
  border-color: #0060F0;
  box-shadow: 0 6px 16px rgba(109, 74, 255, 0.12);
}

.cty-card img {
  flex: 0 0 auto;
  width: 28px;
  height: 21px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.cty-noflag {
  flex: 0 0 auto;
  width: 28px;
  height: 21px;
  border-radius: 3px;
  background: #E5EAF0;
}

.cty-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.cty-card-text b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}

.cty-card-text small {
  color: #64748b;
  font-size: 12px;
}

.cty-empty {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
}

.cty-sec {
  margin-top: 40px;
}

.cty-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cty-sec-head a {
  color: #0060F0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cty-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.cty-products > div {
  min-width: 0;
}

.cty-brands {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
  margin-top: 44px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(120deg, #fff1f6, #ffe9f1);
}

.cty-brands-copy p {
  margin: 12px 0 18px;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.cty-brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
}

.cty-brand-wall a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  color: #071D3A;
  text-align: center;
  text-decoration: none;
}

.cty-brand-wall a:hover {
  border-color: #0060F0;
}

.cty-brand-wall b {
  font-size: 14px;
  font-weight: 700;
}

.cty-brand-wall small {
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .cty-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  header.cp-top .cp-search {
    order: unset;
    flex-basis: auto;
    max-width: none;
  }

  .cty-hero,
  .cty-brands {
    grid-template-columns: minmax(0, 1fr);
  }

  .cty-hero-copy h1 {
    font-size: 30px;
  }

  .cty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cty-pin {
    display: none;
  }

  .cty-search input {
    width: 100%;
  }

  .cty-controls {
    width: 100%;
  }

  .cty-search {
    flex: 1 1 auto;
  }
}

@media (max-width: 899px) {
  header.cp-top .cp-links {
    order: 4;
    flex: 1 1 100%;
    min-width: 0;
    overflow-x: auto;
  }

  header.cp-top .cp-login {
    margin-left: auto;
  }

  .cp-drop-menu {
    display: none !important;
  }

  .cp-links .cp-drop > a i {
    display: none;
  }
}

/* Home page (B2B landing) */
.hm {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 64px;
  color: #071D3A;
}

.hm h1,
.hm h2,
.hm h3 {
  margin: 0;
  color: #071D3A;
  letter-spacing: -0.02em;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hm-btn--primary {
  background: #0060F0;
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 74, 255, 0.28);
}

.hm-btn--primary:hover {
  background: #0052D6;
  color: #fff;
}

.hm-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: #071D3A;
}

.hm-btn--ghost:hover {
  border-color: #0060F0;
  color: #0060F0;
}

.hm-btn--light {
  background: #fff;
  color: #071D3A;
}

.hm-btn--light:hover {
  background: #E8F1FF;
  color: #071D3A;
}

.hm-btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hm-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hm-btn:focus-visible,
.hm a:focus-visible {
  outline: 3px solid rgba(109, 74, 255, 0.45);
  outline-offset: 2px;
}

.hm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 40px 44px;
  border-radius: 28px;
  background: linear-gradient(120deg, #f5f2ff 0%, #ffffff 62%);
  border: 1px solid #E8F1FF;
}

.hm-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #E8F1FF;
  color: #0047C2;
  font-size: 13px;
  font-weight: 650;
}

.hm-hero-copy h1 {
  max-width: 560px;
  margin-top: 16px;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 780;
}

.hm-hero-copy p {
  max-width: 520px;
  margin: 18px 0 26px;
  color: #475569;
  font-size: 17px;
  line-height: 1.55;
}

.hm-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 14px;
}

.hm-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hm-checks i {
  color: #16a34a;
}

.hm-hero-art {
  position: relative;
}

.hm-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hm-tile {
  aspect-ratio: 1 / 1;
  padding: 10px;
  border: 1px solid #E8F1FF;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(76, 52, 201, 0.08);
}

.hm-tile:nth-child(even) {
  transform: translateY(14px);
}

.hm-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hm-chip {
  position: absolute;
  left: 50%;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #071D3A;
  color: #e2e8f0;
  font-size: 14px;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.hm-chip b {
  color: #fff;
}

.hm-chip i {
  color: #a5b4fc;
}

.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.hm-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #E5EAF0;
  border-radius: 16px;
  background: #fff;
}

.hm-stat i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E8F1FF;
  color: #0060F0;
  font-size: 18px;
}

.hm-stat span {
  display: flex;
  flex-direction: column;
  color: #475569;
  font-size: 13px;
  line-height: 1.3;
}

.hm-stat b {
  color: #071D3A;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.hm-sec {
  margin-top: 64px;
}

.hm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.hm-head h2 {
  font-size: 28px;
  font-weight: 720;
}

.hm-head a {
  color: #0060F0;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.hm-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hm-cat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E5EAF0;
  border-radius: 18px;
  background: #fff;
  color: #071D3A;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hm-cat:hover {
  border-color: #0060F0;
  box-shadow: 0 12px 26px rgba(109, 74, 255, 0.14);
}

.hm-cat-img {
  display: block;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: linear-gradient(180deg, #faf9ff, #fff);
}

.hm-cat-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hm-cat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 16px;
  border-top: 1px solid #f1f5f9;
}

.hm-cat-text b {
  font-size: 15px;
  font-weight: 680;
  line-height: 1.25;
}

.hm-cat-text small {
  color: #64748b;
  font-size: 13px;
}

.hm-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hm-why-item {
  padding: 24px;
  border: 1px solid #E5EAF0;
  border-radius: 18px;
  background: #fff;
}

.hm-why-item > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #E8F1FF;
  color: #0060F0;
  font-size: 20px;
}

.hm-why-item h3 {
  font-size: 17px;
  font-weight: 700;
}

.hm-why-item p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.hm-why-item p a {
  color: #0060F0;
  font-weight: 600;
  text-decoration: none;
}

.hm-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hm-products > div {
  min-width: 0;
}

.hm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-steps li {
  padding: 26px;
  border-radius: 18px;
  background: #f8f7ff;
  border: 1px solid #E8F1FF;
}

.hm-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #0060F0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.hm-steps h3 {
  font-size: 18px;
  font-weight: 700;
}

.hm-steps p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.hm-countries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hm-countries a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
  color: #071D3A;
  text-decoration: none;
}

.hm-countries a:hover,
.hm-brands a:hover {
  border-color: #0060F0;
}

.hm-countries img {
  width: 28px;
  height: 21px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.hm-countries span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.hm-countries b {
  font-size: 15px;
  font-weight: 650;
}

.hm-countries small,
.hm-brands small {
  color: #64748b;
  font-size: 12px;
}

.hm-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hm-brands a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
  color: #071D3A;
  text-align: center;
  text-decoration: none;
}

.hm-brands b {
  font-size: 15px;
  font-weight: 700;
}

.hm-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 72px;
  padding: 44px;
  border-radius: 28px;
  background: linear-gradient(120deg, #071D3A, #0060F0);
  color: #fff;
}

.hm-final h2 {
  max-width: 560px;
  color: #fff;
  font-size: 30px;
  font-weight: 750;
}

.hm-final p {
  max-width: 520px;
  margin: 10px 0 0;
  color: #e0dcff;
  font-size: 16px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .hm-btn,
  .hm-cat {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .hm-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 28px 52px;
  }

  .hm-hero-copy h1 {
    font-size: 38px;
  }

  .hm-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hm-why,
  .hm-stats,
  .hm-countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hm-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hm {
    padding: 12px 14px 48px;
  }

  .hm-hero {
    padding: 24px 18px 48px;
    border-radius: 22px;
  }

  .hm-hero-copy h1 {
    font-size: 30px;
  }

  .hm-hero-copy p {
    font-size: 15px;
  }

  .hm-cta .hm-btn {
    flex: 1 1 100%;
  }

  .hm-sec {
    margin-top: 48px;
  }

  .hm-head h2 {
    font-size: 23px;
  }

  .hm-cats,
  .hm-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-why,
  .hm-countries {
    grid-template-columns: minmax(0, 1fr);
  }

  .hm-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-stat {
    padding: 14px;
  }

  .hm-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hm-final {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }

  .hm-final h2 {
    font-size: 24px;
  }
}

/* New arrivals page */
.nv {
  padding: 22px 20px 56px;
}

.nv h1 {
  margin: 0;
  color: #071D3A;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.nv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.nv-head .nv-tools {
  margin-left: auto;
  flex-shrink: 0;
}

.nv-head .nv-banner {
  width: 100%;
}

@media (max-width: 640px) {
  .nv-head {
    align-items: center;
    flex-wrap: wrap;
  }

  .nv-head .nv-head-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nv-head .nv-head-copy h1 {
    margin: 0;
  }

  /* Sort stays on the same row as «Новинки», right-aligned */
  .nv-head .nv-tools {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .nv-head .nv-sort select {
    max-width: min(52vw, 200px);
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .nv-head .nv-banner {
    flex: 1 0 100%;
    width: 100%;
  }
}

.cp-sheet.nv > .nv-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 8px;
}

.cp-sheet.nv > .nv-head .nv-found {
  margin: 0;
  justify-self: start;
}

.cp-sheet.nv > .nv-head h1 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.cp-sheet.nv > .nv-head .nv-tools {
  margin-left: 0;
  justify-self: end;
}

@media (max-width: 899px) {
  .cp-sheet.nv > .nv-head {
    grid-template-columns: 1fr auto;
  }

  .cp-sheet.nv > .nv-head h1 {
    grid-column: 1 / -1;
    font-size: 22px;
  }
}

.nv-head-copy p {
  max-width: 560px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.nv-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #E8F1FF;
  color: #0047C2;
  font-size: 14px;
  font-weight: 600;
}

.nv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}

.nv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nv-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nv-pills a b {
  color: #64748b;
  font-weight: 600;
}

.cp-sheet.nv > .nv-head .nv-pills {
  justify-self: start;
  flex-wrap: wrap;
}

.nv-pills a.is-active {
  background: #071D3A;
  color: #fff;
}

.nv-pills a.is-active b {
  color: #cbd5e1;
}

.nv-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nv-found {
  margin: 0 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.nv-sort select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
}

.nv #product-list.row {
  padding-top: 12px !important;
}

.nv-empty {
  padding: 48px 16px;
  text-align: center;
  color: #64748b;
}

.nv-reset-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: #0060F0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Sidebar filters */
.nv-filters {
  padding: 14px 14px 18px !important;
}

.nv-side-title {
  margin: 4px 0 10px;
  color: #071D3A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nv-filters .nv-side-title:not(:first-child) {
  margin-top: 22px;
}

.nv-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #071D3A;
  font-size: 14px;
  text-decoration: none;
}

.nv-cats a:hover {
  background: #f8fafc;
}

.nv-cats a.is-active {
  background: #E8F1FF;
  color: #0047C2;
  font-weight: 650;
}

.nv-cats small {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.nv-cats--child {
  margin: 0 0 8px;
  padding: 0 0 0 8px;
}

.nv-cats--child a {
  padding: 6px 10px;
  color: #334155;
  font-size: 13px;
}

.nv-field {
  display: block;
  margin: 0 0 12px;
}

.nv-field span {
  display: block;
  margin-bottom: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.nv-field select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
}

.nv-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin: 0;
  color: #071D3A;
  font-size: 14px;
  cursor: pointer;
}

.nv-check input {
  width: 18px;
  height: 18px;
  accent-color: #0060F0;
}

.nv-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 14px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nv-reset:hover {
  border-color: #0060F0;
  color: #0060F0;
}

/* Product card additions */
.cp-newtag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #0060F0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cp-newtag--old {
  background: rgba(15, 23, 42, 0.78);
}

.cp-origin {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.cp-origin img {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

@media (max-width: 899px) {
  .nv {
    padding: 16px 0 40px;
  }

  .nv-head,
  .nv-toolbar,
  .nv-empty {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nv #product-list.row {
    width: 100%;
    padding-top: 4px !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .nv h1 {
    font-size: 26px;
  }

  .nv-found {
    display: none;
  }

  .nv-side {
    max-height: none;
  }
}

@media (min-width: 960px) {
  .nv #product-list.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .nv #product-list.row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Login / register: 20% side inset on desktop (beats main > :not(.cp-nav) max-width: none). */
.lg {
  display: block;
  margin: 0 auto;
  padding: 28px 20px 56px;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  main > .lg,
  main > #account-register.container {
    width: 100%;
    max-width: none;
    padding-left: 20%;
    padding-right: 20%;
    box-sizing: border-box;
  }
}

.lg h1,
.lg h2 {
  margin: 0;
  letter-spacing: -0.02em;
}

.lg-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(145deg, #071D3A 0%, #0060F0 55%, #0060F0 100%);
  color: #fff;
  overflow: hidden;
}

.lg-eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.lg-promo h1 {
  max-width: 480px;
  margin-top: 16px;
  color: #fff;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 780;
}

.lg-promo-copy p {
  max-width: 460px;
  margin: 14px 0 0;
  color: #e3defe;
  font-size: 16px;
  line-height: 1.55;
}

.lg-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lg-points i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 16px;
}

.lg-points span {
  display: flex;
  flex-direction: column;
  color: #d9d3ff;
  font-size: 13px;
  line-height: 1.4;
}

.lg-points b {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.lg-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.lg-tile {
  aspect-ratio: 1 / 1;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 10, 70, 0.28);
}

.lg-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lg-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #e3defe;
  font-size: 14px;
}

.lg-strip b {
  color: #fff;
  font-size: 16px;
}

.lg-card {
  align-self: center;
  padding: 32px;
  border: 1px solid #E5EAF0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.lg-tabs {
  display: flex;
  margin: -8px 0 22px;
  border-bottom: 1px solid #E5EAF0;
}

.lg-tabs a,
.lg-tabs span {
  flex: 1 1 0;
  padding: 12px 8px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.lg-tabs a.is-active,
.lg-tabs span.is-active {
  border-bottom-color: #0060F0;
  color: #071D3A;
}

.lg-card h2 {
  margin: 0 0 18px;
  color: #071D3A;
  font-size: 26px;
  font-weight: 750;
  text-align: center;
}

.lg-lead {
  margin: 8px 0 20px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.lg-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.lg-alert[hidden] {
  display: none;
}

.lg-alert--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.lg-alert--ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.lg-field {
  display: block;
  margin: 0 0 14px;
}

.lg-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.lg-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5dae3;
  border-radius: 12px;
  background: #fff;
}

.lg-input:focus-within {
  border-color: #0060F0;
  box-shadow: 0 0 0 3px rgba(109, 74, 255, 0.18);
}

.lg-input > i {
  color: #94a3b8;
}

.lg-input input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071D3A;
  font-size: 15px;
}

.lg-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.lg-eye:hover {
  background: #f1f5f9;
}

.lg-row {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 16px;
}

.lg-row a {
  color: #0060F0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lg-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #0060F0;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(109, 74, 255, 0.28);
}

.lg-submit:hover {
  background: #0052D6;
}

.lg-submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

.lg-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #94a3b8;
  font-size: 13px;
}

.lg-or::before,
.lg-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #E5EAF0;
}

.lg-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #071D3A;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.lg-tg i {
  color: #229ed9;
  font-size: 20px;
}

.lg-tg:hover {
  border-color: #229ed9;
  background: #f4fbff;
}

.lg-tg:disabled {
  opacity: 0.65;
  cursor: progress;
}

.lg-hint {
  margin: 10px 2px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.lg-signup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f5f2ff;
}

.lg-signup div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-signup b {
  color: #071D3A;
  font-size: 15px;
}

.lg-signup span {
  color: #64748b;
  font-size: 13px;
}

.lg-signup-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #0060F0;
  border-radius: 10px;
  background: #fff;
  color: #0060F0;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.lg-signup-btn:hover {
  background: #0060F0;
  color: #fff;
}

.lg-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #64748b;
  font-size: 13px;
}

.lg-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-perks i {
  color: #0060F0;
}

.lg a:focus-visible,
.lg button:focus-visible {
  outline: 3px solid rgba(109, 74, 255, 0.45);
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .lg-card {
    order: 0;
  }
}

@media (max-width: 640px) {
  .lg {
    padding: 12px 14px 40px;
    gap: 16px;
  }

  .lg-promo {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .lg-promo h1 {
    font-size: 28px;
  }

  .lg-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .lg-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .lg-signup {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .lg-signup-btn {
    justify-content: center;
  }
}

.cp-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cp-logout:hover {
  background: #f1f5f9;
  color: #071D3A;
}

@media (max-width: 480px) {
  .cp-logout span {
    display: none;
  }

  .cp-logout {
    padding: 0 8px;
  }
}

/* ===== Customer cabinet ===== */
.ac-body main > .container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 28px 48px;
  box-sizing: border-box;
}

.ac-body .breadcrumb {
  display: none;
}

.ac-body main > .container > .row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin: 0;
  --bs-gutter-x: 0;
}

.ac-body main > .container > .row > * {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}

.ac-body main > #checkout-cart > .row,
.ac-body main > #checkout-checkout > .row {
  display: block;
  grid-template-columns: none;
}

.ac-body main > #checkout-cart > .row > *,
.ac-body main > #checkout-checkout > .row > * {
  width: 100%;
  max-width: 960px;
}

main:has(#checkout-cart) .cp-nav,
main:has(#checkout-checkout) .cp-nav {
  display: none;
}

main:has(#checkout-cart),
main:has(#checkout-checkout) {
  display: block;
}

.ac-side {
  position: sticky;
  top: 80px;
  z-index: 30;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 16px 0 0;
  border: 0;
  border-right: 1px solid #E5EAF0;
  border-radius: 0;
  background: transparent;
}

.ac-side-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid #E5EAF0;
}

.ac-side-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-side-name {
  color: #071D3A;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ac-side-point {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.ac-side-addrs-flyout.cp-user-menu {
  top: 0;
  left: calc(100% + 12px);
  right: auto;
  width: 320px;
  min-width: 280px;
  max-height: min(70vh, 420px);
  overflow: auto;
}

.ac-side-point-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  color: #071D3A;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.ac-side-point-now > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-side-point-now > i {
  color: #94a3b8;
  font-size: 11px;
}

.ac-side-point-now[aria-expanded="true"] {
  border-color: #071D3A;
}

.ac-side-point-now[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.ac-side-point-menu {
  left: 0;
  right: 0;
  min-width: 0;
  z-index: 40;
}

.ac-side-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ac-side-point-btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  background: #fff;
  color: #071D3A;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.ac-side-point-btn.is-on {
  border-color: #071D3A;
  background: #071D3A;
  color: #fff;
}

.ac-side-point-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.ac-side-point-cta,
.ac-side-point-more {
  color: #0060F0;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.ac-side-point-cta:hover,
.ac-side-point-more:hover {
  text-decoration: underline;
}

.ac-nav-link.is-locked {
  opacity: 0.42;
  filter: grayscale(0.4);
  pointer-events: auto;
  cursor: not-allowed;
}

.ac-nav-link.is-locked:hover {
  background: transparent;
  color: #334155;
}

.ac-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-side-foot {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 10px;
  border-top: 1px solid #E5EAF0;
}

.ac-nav-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 10px 8px;
  border-radius: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.ac-nav-link i {
  width: 16px;
  margin-top: 2px;
  color: #94a3b8;
  text-align: center;
}

.ac-nav-link span {
  flex: 1 1 auto;
}

.ac-nav-link em {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 18px;
  text-align: center;
}

.ac-nav-link:hover {
  background: #f8fafc;
  color: #071D3A;
}

.ac-nav-link.is-active {
  background: transparent;
  color: #071D3A;
  font-weight: 650;
  box-shadow: inset 3px 0 0 #0060F0;
}

.ac-nav-link.is-active i {
  color: #0060F0;
}

.ac-main {
  min-width: 0;
}

.ac-main h1,
.ac-main h2 {
  margin: 0;
  color: #071D3A;
  letter-spacing: -0.02em;
}

.ac-title,
.ac-pagehead {
  margin-bottom: 20px;
}

.ac-pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ac-title-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ac-title-point {
  margin-top: 0;
  min-width: 220px;
}

.ac-title-point .ac-side-point-menu {
  right: 0;
  left: auto;
}

.ac-title h1,
.ac-pagehead h1,
.ac-hello h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 680;
}

.ac-title p,
.ac-pagehead p,
.ac-hello p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.ac-textlink {
  color: #0047C2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ac-textlink:hover {
  color: #071D3A;
  text-decoration: underline;
}

.ac-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.ac-alert--ok {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ac-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 28px;
  padding: 14px 0;
  border-top: 1px solid #E5EAF0;
  border-bottom: 1px solid #E5EAF0;
}

.ac-metrics > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  padding: 0 20px;
  border-right: 1px solid #E5EAF0;
}

.ac-metrics > div:first-child {
  padding-left: 0;
}

.ac-metrics > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.ac-metrics dt {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.ac-metrics dd {
  margin: 0;
  color: #071D3A;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.ac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0 40px;
  align-items: start;
}

.ac-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ac-col--side {
  padding-left: 32px;
  border-left: 1px solid #E5EAF0;
}

.ac-sec + .ac-sec {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E5EAF0;
}

.ac-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ac-sec-head h2,
.ac-card-head h2 {
  font-size: 15px;
  font-weight: 680;
}

.ac-sec-head h2 small,
.ac-card-head h2 small {
  margin-left: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.ac-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ac-card-head a {
  color: #0047C2;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ac-sec-meta {
  margin: 0 0 6px;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

.ac-empty-line {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.ac-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ac-status,
.ac-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 650;
}

.ac-st-1 { background: #eff6ff; color: #1d4ed8; }
.ac-st-2 { background: #fffbeb; color: #b45309; }
.ac-st-3 { background: #f5f3ff; color: #6d28d9; }
.ac-st-5 { background: #f0fdf4; color: #166534; }
.ac-st-7,
.ac-st-8,
.ac-st-10 { background: #fef2f2; color: #b91c1c; }
.ac-chip--main { background: #f8fafc; color: #334155; }

.ac-last-top,
.ac-order-head,
.ac-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ac-last-id,
.ac-order-id {
  margin-right: 10px;
  color: #071D3A;
  font-size: 15px;
}

.ac-last-date,
.ac-order-date {
  margin-right: 10px;
  color: #64748b;
  font-size: 13px;
}

.ac-last-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ac-last-sum b {
  color: #071D3A;
  font-size: 16px;
}

.ac-last-sum small {
  color: #64748b;
  font-size: 12px;
}

.ac-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.ac-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid #E5EAF0;
  border-radius: 6px;
  background: #fff;
}

.ac-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ac-thumb--more {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.ac-row-actions,
.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.ac-actions--end {
  justify-content: flex-end;
  margin-top: 16px;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.ac-btn--sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.ac-btn--block {
  width: auto;
  margin-top: 0;
}

.ac-btn--primary {
  background: #0060F0;
  color: #fff;
}

.ac-btn--primary:hover {
  background: #0052D6;
  color: #fff;
}

.ac-btn--ghost {
  border-color: #d5dae3;
  background: #fff;
  color: #071D3A;
}

.ac-btn--ghost:hover {
  border-color: #94a3b8;
  color: #071D3A;
}

.ac-btn--soft {
  border-color: #d5dae3;
  background: #fff;
  color: #071D3A;
}

.ac-btn--soft:hover {
  border-color: #94a3b8;
}

.ac-btn--danger {
  border-color: transparent;
  background: transparent;
  color: #b91c1c;
}

.ac-btn--danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.ac-empty {
  display: block;
  padding: 8px 0;
  color: #64748b;
  text-align: left;
}

.ac-empty > i {
  display: none;
}

.ac-empty p {
  max-width: none;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.ac-empty--slim {
  padding: 0;
}

.ac-favs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.ac-fav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #071D3A;
  text-decoration: none;
}

.ac-fav:hover .ac-fav-name {
  color: #0047C2;
}

.ac-fav-img {
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid #E5EAF0;
  border-radius: 6px;
  background: #fff;
}

.ac-fav-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ac-fav-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.3;
}

.ac-fav b {
  font-size: 13px;
}

.ac-manager {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ac-manager > div {
  display: flex;
  flex-direction: column;
}

.ac-manager small {
  color: #64748b;
  font-size: 13px;
}

.ac-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.ac-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ac-contacts a {
  color: #071D3A;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ac-contacts a:hover {
  color: #0047C2;
}

.ac-company-name {
  display: block;
  margin-bottom: 8px;
  color: #071D3A;
  font-size: 15px;
}

.ac-dl {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 14px;
}

.ac-dl dt {
  color: #64748b;
  font-weight: 500;
}

.ac-dl dd {
  margin: 0;
  color: #071D3A;
}

.ac-person {
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
}

.ac-address {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.ac-address small {
  display: block;
  margin-top: 2px;
  color: #64748b;
}

/* Orders */
.ac-orders {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-order {
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid #E5EAF0;
  border-radius: 0;
  background: transparent;
}

.ac-order:first-child {
  padding-top: 4px;
}

.ac-pager {
  margin-top: 16px;
}

/* Addresses */
.ac-addresses {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ac-addr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #E5EAF0;
  border-radius: 0;
  background: transparent;
}

.ac-addr > i {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 14px;
}

.ac-addr-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ac-addr-body p {
  margin: 4px 0 0;
  color: #071D3A;
  font-size: 14px;
  line-height: 1.45;
}

.ac-addr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Favourites */
.ac-main #product-list.row {
  padding: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
  .ac-main #product-list.row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1500px) {
  .ac-main #product-list.row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cp-card {
  position: relative;
}

.cp-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cp-fav:hover {
  color: #e11d48;
}

.cp-fav.is-on {
  color: #e11d48;
}


.cp-hide {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.cp-hide:hover {
  color: #0f172a;
  border: 0 !important;
  background: transparent !important;
}

.cp-hide.cp-hide--hero,
.cp-hero .cp-hide {
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  border: 0 !important;
  border-radius: 0;
  outline: none;
  box-shadow: none !important;
  background: transparent !important;
  color: #64748b;
  font-size: 18px;
  -webkit-appearance: none;
  appearance: none;
}

.cp-hide.cp-hide--hero:hover,
.cp-hero .cp-hide:hover {
  color: #0f172a;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cp-hide.cp-hide--hero:focus,
.cp-hide.cp-hide--hero:focus-visible,
.cp-hero .cp-hide:focus,
.cp-hero .cp-hide:focus-visible {
  outline: none;
  box-shadow: none !important;
}

.hid-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
}

.hid-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fff;
}

.hid-media {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.hid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hid-body {
  min-width: 0;
}

.hid-body a {
  color: inherit;
  text-decoration: none;
}

.hid-body a:hover b {
  color: #2563eb;
}

.hid-show {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hid-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .hid-show {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (min-width: 900px) {
  .cp-hide {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

.cp-hide-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 29, 58, 0.45);
}

.cp-hide-modal[hidden] {
  display: none;
}

.cp-hide-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 29, 58, 0.25);
  text-align: center;
}

.cp-hide-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 22px;
}

.cp-hide-modal-card h2 {
  margin: 0 0 10px;
  color: #071D3A;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.cp-hide-modal-card p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.cp-hide-modal-card p b {
  color: #071D3A;
  font-weight: 700;
}

.cp-hide-modal-note {
  margin-bottom: 18px !important;
  color: #334155 !important;
  font-weight: 600;
}

.cp-hide-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.cp-hide-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: #0060F0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cp-hide-modal-btn--ghost {
  background: #f1f5f9;
  color: #071D3A;
}

.cp-hide-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 12px 12px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.cp-hide-ack input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #0060F0;
  cursor: pointer;
}

.cp-hide-modal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}



/* Forms */
.ac-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ac-field {
  display: block;
  margin: 0;
}

.ac-field--wide {
  grid-column: 1 / -1;
}

.ac-field > span {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.ac-field > span i {
  color: #e11d48;
  font-style: normal;
}

.ac-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d5dae3;
  border-radius: 6px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
}

.ac-field input:focus {
  border-color: #0060F0;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(109, 74, 255, 0.12);
}

.ac-field input.is-invalid,
.ac-field textarea.is-invalid {
  border-color: #e11d48;
}

.ac-field textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid #d5dae3;
  border-radius: 6px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
}

.ac-field textarea:focus {
  border-color: #0060F0;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(109, 74, 255, 0.12);
}

.ac-field .invalid-feedback {
  display: none;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
}

.ac-field .invalid-feedback.d-block {
  display: block;
}

.ac-tg .cp-tg-panel,
.ac-tg .ac-sec {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}

/* Default account pages inside the cabinet (order details, address form, returns...) */
.ac-body #content > h1 {
  font-size: 24px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.ac-body #content .btn-primary {
  border-color: #0060F0;
  background: #0060F0;
  border-radius: 6px;
}

.ac-body #content .btn-light {
  border: 1px solid #d5dae3;
  background: #fff;
  border-radius: 6px;
}

.ac-body #content .form-control,
.ac-body #content .form-select {
  min-height: 40px;
  border-color: #d5dae3;
  border-radius: 6px;
}

.ac-body #content .table {
  border-color: #E5EAF0;
}

.ac-body #content .table a {
  color: #0047C2;
}

@media (max-width: 1100px) {
  .ac-pagehead,
  .ac-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ac-pagehead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .ac-col--side {
    margin-top: 24px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #E5EAF0;
    padding-top: 20px;
  }
}

@media (max-width: 900px) {
  .ac-body main > .container {
    padding: 12px 14px 36px;
  }

  .ac-body main > .container > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ac-side {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0 0 8px;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid #E5EAF0;
    border-radius: 0;
  }

  .ac-side-head {
    display: flex;
    flex: 1 1 100%;
    order: -1;
    padding: 0 0 8px;
    border-bottom: 0;
  }

  .ac-side-addrs-flyout.cp-user-menu {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    width: auto;
    min-width: 0;
  }

  .ac-nav,
  .ac-side-foot {
    flex-direction: row;
    gap: 4px;
    padding: 0;
    border: 0;
  }

  .ac-nav-link {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 8px;
    white-space: nowrap;
    box-shadow: none;
  }

  .ac-nav-link.is-active {
    box-shadow: none;
    background: #f8fafc;
  }

  .ac-nav-link span {
    flex: 0 0 auto;
  }

  .ac-metrics {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 0;
  }

  .ac-metrics > div {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #E5EAF0;
  }

  .ac-metrics > div:last-child {
    border-bottom: 0;
  }

  .ac-title h1,
  .ac-pagehead h1,
  .ac-hello h1 {
    font-size: 22px;
  }

  .ac-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ac-addr {
    flex-wrap: wrap;
  }

  .ac-addr-actions {
    width: 100%;
  }
}

/* ===== Mobile version ===== */
.cp-burger {
  display: none;
}

.cp-tool i {
  display: none;
}

.cp-layout--bar {
  display: inline-flex;
}

.cp-toolbar .cp-found {
  order: 2;
}

.cp-toolbar-left {
  order: 1;
}

.cp-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.22s;
}

.cp-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cp-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}

.cp-drawer.is-open .cp-drawer-backdrop {
  opacity: 1;
}

.cp-drawer-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100dvh;
  padding: 14px 12px calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  box-shadow: none;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  -webkit-overflow-scrolling: touch;
}

.cp-drawer.is-open .cp-drawer-panel {
  transform: none;
}

.cp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 10px 12px;
}

.cp-drawer-head b {
  color: #071D3A;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #071D3A;
  font-size: 18px;
  cursor: pointer;
}

.cp-drawer-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: #071D3A;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.cp-drawer-panel a:hover,
.cp-drawer-panel a:active {
  background: #f1f5f9;
}

.cp-drawer-panel a i {
  width: 20px;
  color: #94a3b8;
  text-align: center;
}

.cp-drawer-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #071D3A;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.cp-drawer-toggle:hover,
.cp-drawer-toggle:active {
  background: #E8F1FF;
  color: #0060F0;
}

.cp-drawer-toggle > i:first-child {
  width: 20px;
  color: #94a3b8;
  text-align: center;
}

.cp-drawer-toggle span {
  flex: 1;
}

.cp-drawer-chevron {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
  transition: transform 0.18s ease;
}

.cp-drawer-toggle.is-open .cp-drawer-chevron {
  transform: rotate(180deg);
}

.cp-drawer-sub {
  display: flex;
  flex-direction: column;
  margin: 0 0 6px 20px;
  padding-left: 10px;
  border-left: 2px solid #E5EAF0;
}

.cp-drawer-sub[hidden] {
  display: none !important;
}

.cp-drawer-panel .cp-drawer-sub a {
  min-height: 42px;
  color: #475569;
  font-size: 15px;
  font-weight: 550;
}

.cp-drawer-panel .cp-drawer-sub a.cp-drawer-parent {
  color: #071D3A;
  font-weight: 700;
}

.cp-drawer-sub2 {
  display: flex;
  flex-direction: column;
  margin: 0 0 8px 12px;
  padding-left: 10px;
  border-left: 2px solid #E8F1FF;
}

.cp-drawer-panel .cp-drawer-sub2 a {
  min-height: 38px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.cp-drop-menu a.cp-drop-child {
  padding-left: 22px;
  color: #64748b;
  font-weight: 500;
}

.cp-drawer-account {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #E5EAF0;
}

.cp-drawer-kicker {
  margin: 4px 4px 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-drawer-addr {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #071D3A;
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.cp-drawer-addr.is-on {
  background: #E8F1FF;
  color: #0060F0;
}

/* Mobile drawer: contact links */
.cp-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #E5EAF0;
}

.cp-drawer-manager {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 4px 4px;
}

.cp-drawer-manager-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-drawer-manager-name {
  color: #071D3A;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.cp-drawer-manager-phone {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cp-drawer-manager-phone:hover {
  color: #071D3A;
}

.cp-drawer-manager-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.cp-drawer-manager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}

.cp-drawer-manager-link.is-tg {
  background: #eff6ff;
  color: #2563eb;
}

.cp-drawer-manager-link.is-wa {
  background: #ecfdf5;
  color: #059669;
}

.cp-drawer-manager-link.is-max {
  background: #f5f3ff;
  color: #7c3aed;
}


body.cp-lock {
  overflow: hidden;
}

.nv-side-head {
  display: none;
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: -14px -14px 12px;
  padding: 12px 56px;
  border-bottom: 1px solid #eceef1;
  background: #fff;
}

.nv-side-head h2 {
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .cp-nav.nv-side.is-open {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 200;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0;
    overflow: auto;
    background: #fff;
    border: 0;
  }

  .cp-nav.nv-side.is-open .nv-side-head {
    display: flex;
  }
}

@media (min-width: 900px) {
  .cp-drawer {
    display: none;
  }
}

@media (max-width: 899px) {
  .cp-drawer-backdrop {
    display: none;
  }

  .cp-drawer-panel {
    width: 100vw;
    min-height: 100dvh;
  }
}

@media (max-width: 899px) {
  header.cp-top {
    position: sticky;
    display: grid;
    grid-template-columns: 44px 1fr 44px 44px;
    grid-template-areas:
      "burger . search cart"
      "addr addr addr addr";
    align-items: center;
    gap: 2px 4px;
    min-height: 0;
    padding: 4px 12px 10px;
    border-bottom: 1px solid #eef2f6;
  }

  header.cp-top.is-search {
    grid-template-areas:
      "burger . search cart"
      "addr addr addr addr"
      "field field field field";
  }

  .cp-burger {
    grid-area: burger;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -6px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #071D3A;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
  }

  .cp-brand {
    grid-area: 1 / 1 / 2 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    pointer-events: none;
    text-align: center;
    z-index: 1;
  }

  header.cp-top .cp-mark {
    grid-area: unset;
    pointer-events: auto;
    max-width: calc(100% - 160px);
    overflow: hidden;
    text-overflow: ellipsis;
    color: #071D3A;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .cp-top-left {
    grid-area: addr;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-top: 4px;
    z-index: 2;
  }

  header.cp-top .cp-user {
    position: relative;
    flex: 0 0 auto;
    width: calc(100% - 100px);
    max-width: calc(100% - 100px);
    margin: 0 auto;
  }

  header.cp-top .cp-head-filter,
  header.cp-top .cp-head-contact {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #eef2f7;
    color: #071D3A;
    font-size: 16px;
    cursor: pointer;
    transform: translateY(-50%);
  }

  header.cp-top .cp-head-filter {
    left: 3px;
    right: auto;
  }

  header.cp-top .cp-head-contact {
    right: 3px;
    left: auto;
  }

  header.cp-top .cp-layout.cp-layout--bar {
    grid-area: layout;
    position: static;
    z-index: 4;
    display: inline-flex;
    flex: 0 0 auto;
    align-self: center;
    width: auto;
    height: 36px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transform: none;
  }

  header.cp-top .cp-layout.cp-layout--bar button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    font-size: 14px;
  }

  header.cp-top .cp-layout.cp-layout--bar button.is-active {
    background: #0060F0;
    color: #fff;
    border-color: #0060F0;
  }

  header.cp-top .cp-mark {
    max-width: calc(100% - 260px);
  }

  header.cp-top .cp-head-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
  }

  header.cp-top .cp-head-filter:hover,
  header.cp-top .cp-head-filter:active,
  header.cp-top .cp-head-contact:hover,
  header.cp-top .cp-head-contact:has([aria-expanded="true"]) {
    background: #e8edf3;
  }

  header.cp-top .cp-addr-cta {
    flex: 0 0 auto;
    width: calc(100% - 100px);
    max-width: calc(100% - 100px);
    margin: 0 auto;
  }

  header.cp-top .cp-user-btn,
  header.cp-top .cp-addr-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 36px;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #071D3A;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
  }

  header.cp-top .cp-user-btn:hover,
  header.cp-top .cp-user-btn[aria-expanded="true"],
  header.cp-top .cp-addr-cta:hover {
    border: 0;
    background: #e8edf3;
  }

  header.cp-top .cp-addr-pin {
    display: inline-flex;
    flex: 0 0 auto;
    color: #64748b;
    font-size: 14px;
    font-style: normal;
  }

  header.cp-top .cp-user-name {
    flex: 0 1 auto;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #071D3A;
    font-weight: 600;
    font-style: normal;
    text-align: center;
  }

  header.cp-top .cp-user-btn > i.fa-chevron-down,
  header.cp-top .cp-addr-cta > i.fa-chevron-down {
    position: absolute;
    right: 14px;
    margin-left: 0;
    color: #94a3b8;
    font-size: 11px;
    font-style: normal;
    transform: none;
  }

  header.cp-top .cp-user-menu {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }

  header.cp-top .cp-links,
  header.cp-top .cp-login,
  header.cp-top .cp-logout {
    display: none;
  }

  header.cp-top .cp-top-right {
    display: contents;
  }

  header.cp-top .cp-icon,
  header.cp-top .cp-profile-wrap {
    display: none;
  }

  header.cp-top .cp-icon.cp-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: 44px;
    height: 44px;
  }

  header.cp-top .cp-user-name--lab {
    display: none;
  }

  header.cp-top .cp-head-tools {
    grid-area: cart;
    justify-self: end;
    gap: 0;
  }

  header.cp-top .cp-cart {
    grid-area: cart;
    justify-self: end;
  }

  header.cp-top .cp-search {
    grid-area: search;
    order: 0;
    flex: none;
    width: 44px;
    max-width: 44px;
    min-width: 44px;
    margin: 0;
  }

  header.cp-top.is-search .cp-search {
    grid-area: field;
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .cp-search #search {
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
  }

  header.cp-top.is-search .cp-search #search {
    height: 44px;
    border: 1px solid #e2e8f0;
    background: #fff;
  }

  .cp-search #search .form-control {
    display: none;
    height: 44px;
    padding-left: 12px;
    font-size: 16px;
  }

  header.cp-top.is-search .cp-search #search .form-control {
    display: block;
  }

  .cp-search #search .btn {
    width: 44px;
    padding: 0;
    font-size: 18px;
    color: #071D3A;
  }

  .cp-cart-btn {
    position: relative;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -4px;
    padding: 0;
  }

  .cp-cart-label {
    display: none;
  }

  .cp-cart-ico {
    margin: 0;
    font-size: 20px;
  }

  .cp-cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 18px;
  }

  .cp-nav {
    display: none;
  }

  main:not(:has(.cp-nav)) {
    display: block;
  }

  .cp-toolbar {
    gap: 10px;
    padding: 6px 14px 12px;
  }

  .cp-toolbar .cp-found {
    order: 1;
    flex: 1 1 auto;
    color: #64748b;
    font-size: 14px;
  }

  .cp-found-prefix {
    display: none;
  }

  .cp-toolbar-left {
    order: 2;
    gap: 8px;
  }

  .cp-tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #071D3A;
  }

  .cp-tool i {
    display: inline-block;
    font-size: 16px;
  }

  .cp-tool > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cp-tool-sep {
    display: none;
  }

  /* superseded: header.cp-top .cp-layout--bar rules above keep toggle on row 1 */
  .cp-layout--bar {
    display: none;
  }

  header.cp-top .cp-layout.cp-layout--bar {
    display: inline-flex;
  }

  #product-list.row {
    gap: 10px;
    padding: 4px 12px 28px;
  }

  .cp-card {
    border-color: #E5EAF0;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .cp-body {
    padding: 4px 12px 8px;
  }

  .cp-body h3 {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
  }

  .cp-volume {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 13px;
  }

  .cp-stack {
    gap: 8px;
    padding: 0 10px 12px;
  }

  .cp-band {
    min-height: 56px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
  }

  .cp-band--piece {
    background: #f1f7ff;
    box-shadow: inset 3px 0 0 #93c5fd;
  }

  .cp-band--pack {
    background: #f1faf4;
    box-shadow: inset 3px 0 0 #86efac;
  }

  .cp-band-title {
    font-size: 13px;
    font-weight: 600;
  }

  .cp-band-price {
    font-size: 15px;
    font-weight: 750;
  }

  .cp-band-controls {
    width: clamp(64px, 32%, 92px);
    background: rgba(255, 255, 255, 0.7);
  }

  .cp-band:not(.is-empty) .cp-band-controls {
    width: 100%;
    max-width: none;
  }

  .cp-band:not(.is-empty) .cp-step {
    font-size: 26px;
    min-width: 48px;
    color: #0060F0;
  }

  .cp-band:not(.is-empty) .cp-mid {
    min-width: 68px;
  }

  .cp-band:not(.is-empty) .cp-qty {
    font-size: 18px;
  }

  .cp-band:not(.is-empty) .cp-sum {
    font-size: 11px;
  }

  .cp-plus {
    width: 100%;
    min-height: 48px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: #0060F0;
    font-size: 26px;
  }

  .cp-plus:active {
    background: #f0f9ff;
    color: #0060F0;
  }

  .cp-step {
    color: #0060F0;
  }

  .cp-fav {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #94a3b8;
  }

  .cp-fav.is-on {
    color: #e11d48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-drawer,
  .cp-drawer-backdrop,
  .cp-drawer-panel {
    transition: none;
  }
}

/* ===== Desktop header ===== */
.cp-user {
  position: relative;
  flex: 0 0 auto;
}

.cp-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #071D3A;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.cp-user-btn:hover,
.cp-user-btn[aria-expanded="true"] {
  border-color: #E5EAF0;
  background: #f8fafc;
}

.cp-user-ava {
  display: none;
}

.cp-user-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-user-btn > i {
  color: #94a3b8;
  font-size: 11px;
  transition: transform 0.15s;
}

.cp-user-btn[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.cp-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 268px;
  padding: 8px;
  border: 1px solid #E5EAF0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.cp-user-menu[hidden] {
  display: none;
}

.cp-user-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cp-user-menu a.cp-user-head {
  align-items: flex-start;
  min-height: 0;
  gap: 2px;
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  border-bottom: 1px solid #f1f5f9;
  font-weight: inherit;
}

.cp-user-head b {
  color: #071D3A;
  font-size: 15px;
}

.cp-user-head small {
  color: #64748b;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.cp-user-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cp-user-menu a i {
  width: 18px;
  color: #94a3b8;
  text-align: center;
}

.cp-user-menu a:hover {
  background: #f8fafc;
}

.cp-user-menu .cp-user-out {
  margin-top: 6px;
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 10px 10px;
  color: #b91c1c;
}

.cp-user-menu .cp-user-out i {
  color: #ef4444;
}

.cp-user-menu .cp-user-out:hover {
  background: #fef2f2;
}

@media (min-width: 900px) {
  header.cp-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 0 28px;
    border-bottom: 1px solid #E5EAF0;
    background: #fff;
  }

  header.cp-top .cp-top-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    z-index: 2;
  }

  header.cp-top .cp-brand {
    flex: 0 0 auto;
  }

  header.cp-top .cp-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #071D3A;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: none;
  }

  header.cp-top .cp-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 1 1 0;
    min-width: 0;
    z-index: 2;
  }

  header.cp-top .cp-links {
    gap: 0;
    flex: 0 0 auto;
    overflow: visible;
  }

  header.cp-top .cp-links > a,
  header.cp-top .cp-links .cp-drop > a,
  header.cp-top .cp-user-btn,
  header.cp-top .cp-addr-cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
  }

  header.cp-top .cp-user-btn:hover,
  header.cp-top .cp-user-btn[aria-expanded="true"],
  header.cp-top .cp-addr-cta:hover,
  header.cp-top .cp-links > a:hover,
  header.cp-top .cp-links .cp-drop > a:hover {
    background: transparent;
    color: #111827;
  }

  header.cp-top .cp-user-name--now {
    display: inline;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-weight: 500;
  }

  header.cp-top .cp-user-name--lab {
    display: none;
  }

  header.cp-top .cp-user-btn > i,
  header.cp-top .cp-addr-cta i,
  header.cp-top .cp-links .cp-drop > a i {
    margin-left: 6px;
    color: #111827;
    font-size: 10px;
    transform: none;
  }

  header.cp-top .cp-search {
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    min-width: 44px;
    margin: 0;
  }

  header.cp-top .cp-search #search {
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  header.cp-top .cp-search #search:focus-within {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  header.cp-top .cp-search #search .form-control {
    display: none;
  }

  header.cp-top.is-search .cp-search {
    position: relative;
    flex: 1 1 220px;
    width: auto;
    max-width: 280px;
    min-width: 180px;
  }

  header.cp-top.is-search .cp-search #search {
    border: 1px solid #E5EAF0;
    border-radius: 10px;
    background: #fff;
  }

  header.cp-top.is-search .cp-search #search .form-control {
    display: block;
    height: 42px;
    font-size: 14px;
  }

  header.cp-top .cp-search #search .btn {
    width: 44px;
    padding: 0;
    color: #111827;
    font-size: 18px;
  }

  header.cp-top .cp-cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  header.cp-top .cp-cart-label {
    display: none;
  }

  header.cp-top .cp-cart-ico {
    display: inline-flex;
    margin: 0;
    font-size: 18px;
    color: #111827;
  }

  header.cp-top .cp-cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
  }
}

@media (max-width: 899px) {
  header.cp-top .cp-user {
    display: block;
  }

  header.cp-top .cp-user-menu {
    z-index: 90;
    width: 100%;
  }
}

/* ===== Cabinet contrast fixes ===== */
.ac-body #content a.ac-btn--primary {
  text-decoration: none;
  color: #fff;
}

header.cp-top .cp-cart,
header.cp-top #header-cart {
  margin: 0;
}

/* ===== Visual inventory ===== */
.inv {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.inv-loading,
.inv-muted {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.inv-error {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}

.inv-notice {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.inv-notice[hidden] {
  display: none;
}

.inv-place {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.inv-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.inv-hero-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #E8F1FF;
  color: #0060F0;
  font-size: 24px;
}

.inv-hero-body h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 720;
}

.inv-hero-body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.inv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inv-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #E5EAF0;
}

.inv-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0060F0, #a78bfa);
  transition: width 0.25s ease;
}

.inv-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inv-h {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
}

.inv-h-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-h-main small {
  color: #64748b;
  font-size: 12px;
}

.inv-h-actions {
  display: flex;
  gap: 8px;
}

.inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inv-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.inv-chip--ok { background: #dcfce7; color: #166534; }
.inv-chip--low { background: #fef3c7; color: #b45309; }
.inv-chip--none { background: #fee2e2; color: #b91c1c; }

/* wizard */
.inv-wizard {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.inv-stats {
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 18px;
  background: #fff;
}

.inv-stats-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
}

.inv-stats-top b {
  color: #071D3A;
  font-size: 20px;
}

.inv-stats-right {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.inv-stats-right b {
  display: block;
  font-size: 16px;
}

.inv-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #E5EAF0;
  border-radius: 22px;
  background: #fff;
}

.inv-card--attn {
  border-color: #f59e0b;
}

.inv-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 18px;
  background: #f8fafc;
  color: #cbd5e1;
  font-size: 56px;
}

.inv-photo--attn {
  box-shadow: 0 0 0 3px #fde68a;
}

.inv-photo.is-broken > img {
  opacity: 0.25;
}

.inv-photo-retry {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font: 600 14px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.inv-photo-wait {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font: 600 13px/1.35 system-ui, sans-serif;
  text-align: center;
}

.inv-act:disabled,
.inv-nav-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.inv-photo-btn {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.inv-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.inv-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
}

.inv-dot.is-on {
  background: #0060F0;
}

.inv-info {
  margin-top: 14px;
  text-align: center;
}

.inv-title {
  margin: 0;
  color: #071D3A;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
}

.inv-brand {
  font-weight: 800;
}

.inv-volume-line {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.inv-detail {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.inv-volume {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 10px auto 0;
  padding: 10px 14px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
}

.inv-volume b {
  color: #78350f;
  font-size: 20px;
}

.inv-volume small {
  font-size: 11px;
}

.inv-metas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.inv-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.inv-meta > i {
  color: #0060F0;
}

.inv-meta div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.inv-meta span {
  color: #64748b;
  font-size: 11px;
}

.inv-meta b {
  color: #071D3A;
  font-size: 13px;
}

.inv-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 14px;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 22%);
}

.inv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.inv-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #071D3A;
  cursor: pointer;
}

.inv-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.inv-nav-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.inv-nav-hint {
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.inv-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inv-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 84px;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: 18px;
  cursor: pointer;
}

.inv-act i {
  font-size: 22px;
}

.inv-act strong {
  font-size: 16px;
}

.inv-act small {
  font-size: 11px;
  opacity: 0.8;
}

.inv-act--none { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.inv-act--low { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.inv-act--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.inv-act:active { transform: scale(0.98); }

/* restock */
.inv-restock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}

.inv-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  background: #f0fdf4;
}

.inv-banner--warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.inv-banner-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.inv-banner--warn .inv-banner-ico {
  background: #f59e0b;
}

.inv-banner p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
}

.inv-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inv-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
}

.inv-stat b {
  font-size: 22px;
}

.inv-stat--ok { background: #f0fdf4; color: #166534; }
.inv-stat--low { background: #fffbeb; color: #b45309; }
.inv-stat--none { background: #fef2f2; color: #b91c1c; }

.inv-ordered {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #E8F1FF;
  color: #0047C2;
  font-size: 13px;
}

.inv-section {
  border: 1px solid #E5EAF0;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.inv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.inv-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.inv-section-title {
  margin-right: 8px;
  font-size: 16px;
  font-weight: 720;
}

.inv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.inv-badge--low { background: #fef3c7; color: #b45309; }
.inv-badge--none { background: #fee2e2; color: #b91c1c; }

.inv-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 0 16px 0 0;
  border-bottom: 1px solid #f1f5f9;
  min-height: 96px;
}

.inv-row:last-child {
  border-bottom: 0;
}

.inv-row--attn {
  background: #fffbeb;
}

.inv-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 96px;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 10px;
  border: 0;
  border-right: 1px solid #E5EAF0;
  border-radius: 0;
  background: #fff;
  cursor: zoom-in;
}

.inv-thumb--empty {
  cursor: default;
  background: #f8fafc;
}

.inv-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.inv-row-info {
  min-width: 0;
  align-self: center;
  padding: 12px 0;
}

.inv-row-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.inv-row-info small {
  color: #64748b;
  font-size: 12px;
}

.inv-out {
  color: #b91c1c;
}

.inv-cells {
  display: flex;
  align-self: center;
  gap: 16px;
  padding: 12px 0;
}

.inv-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 108px;
}

.inv-cell > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.inv-cell em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.inv-na {
  height: 36px;
  color: #cbd5e1;
  font-style: normal;
  line-height: 36px;
}

.inv-step {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.inv-step button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #0047C2;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.inv-step button:disabled {
  color: #cbd5e1;
  cursor: default;
}

.inv-step input[data-inv-val] {
  min-width: 36px;
  max-width: 52px;
  height: 36px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.inv-step input[data-inv-val]:focus {
  outline: none;
  color: #071D3A;
  background: #f8fafc;
}

.inv-step input[data-inv-val].is-on {
  color: #071D3A;
}

.inv-step input[data-inv-val]:disabled {
  color: #cbd5e1;
}

.inv-footer--restock {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px 0 12px;
}

.inv-sum {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.inv-sum strong {
  color: #071D3A;
  font-size: 18px;
}

.inv-wide {
  width: 100%;
}

.inv-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.inv-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #0060F0;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.inv-zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.78);
  cursor: zoom-out;
}

.inv-zoom img {
  max-width: min(92vw, 720px);
  max-height: 86vh;
  border-radius: 18px;
  background: #fff;
}

.inv-zoom button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.inv-fill {
  width: min(92vw, 380px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.inv-fill::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.inv-fill-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.inv-fill-sheet [data-step] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-fill-sheet [data-step] .inv-link {
  align-self: center;
  margin-top: 4px;
  padding: 10px 8px;
}

.inv-fill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inv-fill-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  cursor: pointer;
}

.inv-fill-btns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}

.inv-fill-btns button {
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.inv-fill-btns button:hover {
  border-color: #0060F0;
  color: #0047C2;
}

.inv-fill-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

.inv-fill-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d5dae3;
  border-radius: 12px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .inv-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .inv-hero-actions {
    grid-column: 1 / -1;
  }

  .inv-hero-actions .ac-btn {
    flex: 1 1 140px;
  }

  .inv-h {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .inv-chips {
    grid-column: 1 / -1;
    order: 3;
  }

  .inv-row {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 84px;
  }

  .inv-thumb {
    width: 84px;
    padding: 8px;
  }

  .inv-cells {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 0 0 12px;
  }

  .inv-cell {
    flex: 1 1 0;
  }

  .inv-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.ac-inv-last {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.ac-inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

/* ===== Visual inventory: flatten to B2B density ===== */
.inv-hero,
.inv-h,
.inv-stats,
.inv-card,
.inv-section,
.inv-banner,
.inv-fill {
  border-radius: 8px;
}

.inv-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #E5EAF0;
  border-radius: 0;
  background: transparent;
}

.inv-hero-ico {
  display: none;
}

.inv-hero-body h2 {
  font-size: 16px;
  font-weight: 680;
}

.inv-hero-actions .ac-btn {
  min-height: 36px;
  border-radius: 6px;
}

.inv-h {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #E5EAF0;
  border-radius: 0;
}

.inv-chip {
  border-radius: 4px;
}

.inv-card,
.inv-stats {
  border-color: #E5EAF0;
  border-radius: 8px;
  padding: 14px;
}

.inv-act {
  min-height: 72px;
  border-radius: 8px;
}

.inv-nav-btn {
  border-radius: 6px;
}

.inv-section {
  border-color: #E5EAF0;
  border-radius: 8px;
}

.inv-banner {
  border-radius: 8px;
  padding: 12px 14px;
}

.inv-stat {
  border-radius: 8px;
}

.inv-thumb {
  border-radius: 0;
}

.inv-step {
  border-radius: 6px;
}

.inv-wide {
  border-radius: 6px;
}

.inv-fill {
  border-radius: 10px;
}

.inv-fill-btns button,
.inv-fill-field input,
.inv-fill-head button {
  border-radius: 6px;
}

.ac-body #content a.ac-btn--primary {
  text-decoration: none;
  color: #fff;
}

/* Cart and checkout — same density as cabinet */
.ac-alert--err {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.ac-sec-meta--warn {
  color: #b91c1c;
}

.ac-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 8px 48px;
  align-items: start;
}

.ac-cart-rows {
  display: flex;
  flex-direction: column;
}

.ac-cart-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 72px 120px auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #E5EAF0;
}

.ac-cart-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ac-cart-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #E5EAF0;
  border-radius: 6px;
  background: #fff;
}

.ac-cart-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ac-cart-info {
  min-width: 0;
}

.ac-cart-name {
  display: block;
  color: #071D3A;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.ac-cart-name:hover {
  color: #0047C2;
}

.ac-cart-info .ac-sec-meta {
  margin: 4px 0 0;
  font-size: 13px;
}

.ac-cart-qty {
  margin: 0;
}

.ac-cart-qty-input {
  width: 64px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d5dae3;
  border-radius: 6px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
  text-align: center;
}

.ac-cart-qty-input:focus {
  border-color: #0060F0;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(109, 74, 255, 0.12);
}

.ac-cart-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ac-cart-price b {
  color: #071D3A;
  font-size: 15px;
  font-weight: 650;
}

.ac-cart-price small {
  color: #64748b;
  font-size: 12px;
}

.ac-cart-remove {
  margin: 0;
}

.ac-cart-totals {
  margin: 0;
  padding-top: 4px;
}

.ac-cart-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: #64748b;
  font-size: 13px;
}

.ac-cart-totals dt,
.ac-cart-totals dd {
  margin: 0;
}

.ac-cart-totals dd {
  color: #071D3A;
  font-weight: 600;
}

.ac-cart-totals .is-sum {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #E5EAF0;
  color: #071D3A;
  font-size: 14px;
}

.ac-cart-totals .is-sum dd {
  font-size: 16px;
  font-weight: 680;
}

.ac-mini-cart {
  min-width: 320px;
  max-width: 380px;
  padding: 12px 14px !important;
  border: 1px solid #E5EAF0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.ac-mini-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eef1f4;
}

.ac-mini-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ac-mini-thumb {
  display: flex;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1px solid #E5EAF0;
  border-radius: 6px;
}

.ac-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ac-mini-info a,
.ac-mini-info span {
  display: block;
  color: #071D3A;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.ac-mini-info small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.ac-mini-row b {
  color: #071D3A;
  font-size: 13px;
}

.ac-mini-row form {
  margin: 0;
}

.ac-mini-foot {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #E5EAF0;
}

.ac-mini-foot p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 13px;
}

.ac-check {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px 40px;
  align-items: start;
}

#checkout-checkout fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

#checkout-checkout legend {
  float: none;
  margin: 0 0 12px;
  padding: 0;
  color: #071D3A;
  font-size: 16px;
  font-weight: 650;
}

.cp-check-addr {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #f8fafc;
}

.cp-check-addr b {
  display: block;
  color: #071D3A;
  font-size: 15px;
  font-weight: 700;
}

.cp-check-addr p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

#checkout-checkout .form-control,
#checkout-checkout .form-select {
  min-height: 40px;
  border-color: #d5dae3;
  border-radius: 6px;
  font-size: 14px;
}

#checkout-checkout .btn-primary {
  background: #0060F0;
  border-color: #0060F0;
}

.ac-confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid #eef1f4;
  font-size: 14px;
}

.ac-confirm-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ac-confirm-row a {
  color: #071D3A;
  font-weight: 600;
  text-decoration: none;
}

.ac-confirm-row small {
  display: block;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 899px) {
  .ac-cart,
  .ac-check {
    grid-template-columns: 1fr;
  }

  .ac-cart-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb info price"
      "thumb qty remove";
  }

  .ac-cart-thumb { grid-area: thumb; width: 56px; height: 56px; }
  .ac-cart-info { grid-area: info; }
  .ac-cart-qty { grid-area: qty; }
  .ac-cart-price { grid-area: price; }
  .ac-cart-remove { grid-area: remove; }
}

/* Same 4-up stretched cards on every catalog tab. */
#product-list > .col {
  display: flex !important;
}

#product-list .cp-card {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto;
}

#product-list .cp-media {
  width: 100%;
}

#product-list .cp-media img {
  object-fit: contain;
  padding: 8px;
}

#product-list .cp-origin {
  display: none !important;
}

#product-list .cp-brand,
#product-list .cp-name {
  display: inline;
}

#product-list .cp-brand::after {
  content: " ";
}

#product-list .cp-body h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
  max-height: 2.5em;
}

#product-list .cp-volume {
  min-height: 1.3em;
}

#product-list .cp-stack {
  margin-top: auto;
}

#product-list .cp-band {
  min-height: 56px;
}

@media (min-width: 960px) {
  #product-list.row,
  .nv #product-list.row,
  .ac-main #product-list.row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100%;
  }
}

body.cp-infinite-on .cp-pager {
  display: none !important;
}

.nv:has(.cp-cat-stage) {
  padding: 0 20px 0 0;
}

.cp-cat-stage {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: calc(100vh - 57px);
}

.cp-cat-rail {
  align-self: stretch;
  min-height: 100%;
  background: #111;
  pointer-events: none;
  z-index: 2;
}

.cp-cat-rail-in {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.cp-cat-rail span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

body:has(.cp-cat-stage) .cp-foot {
  margin-top: 0;
}

@media (min-width: 900px) {
  .cp-nav {
    top: 0;
    height: 100vh;
    max-height: 100vh;
  }
}

.cp-cat-body {
  min-width: 0;
  padding: 16px 0 40px 12px;
}

@media (max-width: 899px) {
  .nv:has(.cp-cat-stage) {
    padding: 0;
  }

  .cp-cat-stage {
    grid-template-columns: 14px minmax(0, 1fr);
    min-height: calc(100vh - 96px);
  }

  .cp-cat-body {
    padding: 0 8px 28px 4px;
  }

  .nv:has(.cp-cat-stage) #product-list.row {
    padding-top: 0 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: 20px !important;
  }

  .cp-cat-rail-in {
    top: 100px;
    height: calc(100vh - 100px);
    height: calc(100dvh - 100px);
  }

  .cp-cat-rail span {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

.cp-stream-break {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.cp-stream-break span {
  display: none;
}

.cp-stream-break::before,
.cp-stream-break::after {
  display: none;
}

.cp-infinite-top {
  height: 1px;
}

.cp-foot {
  margin-top: 48px;
  background: #fff;
  color: #64748b;
  border-top: 1px solid #E5EAF0;
  font-family: Inter, system-ui, sans-serif;
}

.cp-foot-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.cp-foot-brand a {
  color: #071D3A;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cp-foot-brand p {
  max-width: 280px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.cp-foot nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-foot nav b {
  margin-bottom: 4px;
  color: #071D3A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-foot nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.cp-foot nav a:hover {
  color: #0060F0;
}

.cp-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 22px;
  border-top: 1px solid #E5EAF0;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 899px) {
  .cp-foot-inner {
    grid-template-columns: 1fr 1fr;
    padding: 32px 16px 20px;
  }
}

@media (max-width: 560px) {
  .cp-foot-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cp-user-addrs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 8px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.cp-user-addrs > b {
  margin: 0 0 4px 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-user-addr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #071D3A;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.cp-user-addr b {
  font-weight: 700;
}

.cp-user-addr small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.cp-user-addr.is-on small {
  color: rgba(255, 255, 255, 0.78);
}

.cp-user-addr.is-on {
  background: #071D3A;
  color: #fff;
}

.cp-user-addr-empty {
  padding: 6px 10px;
  color: #64748b;
  font-size: 13px;
}

.cp-tg-promo {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.cp-tg-promo[hidden] {
  display: none !important;
}

.cp-tg-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 29, 58, 0.48);
}

.cp-tg-promo-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 28px 24px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 29, 58, 0.28);
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
}

.cp-tg-promo-x {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 15px;
  cursor: pointer;
}

.cp-tg-promo-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #e8f6fd;
  color: #229ed9;
  font-size: 28px;
}

.cp-tg-promo-card h2 {
  margin: 0 0 10px;
  color: #071d3a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cp-tg-promo-card p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.cp-tg-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #229ed9;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.cp-tg-promo-btn:hover,
.cp-tg-promo-btn:active {
  background: #1b8fc7;
  color: #fff;
}

.cp-tg-promo-later {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cp-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 29, 58, 0.45);
}

.cp-gate[hidden] {
  display: none;
}

.cp-gate-card {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 29, 58, 0.25);
}

.cp-gate-card h2 {
  margin: 0 0 8px;
  color: #071D3A;
  font-size: 22px;
  font-weight: 800;
}

[data-cp-gate-panel="pick"] {
  text-align: center;
}

[data-cp-gate-panel="pick"] h2 {
  margin: 0 0 20px;
  text-align: center;
}

.cp-gate-card p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.cp-gate-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}

.cp-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #0060F0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cp-gate-btn--ghost {
  margin-top: 8px;
  background: #f1f5f9;
  color: #071D3A;
}

.cp-gate-form,
#cp-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#cp-gate-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

#cp-gate-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #E5EAF0;
  border-radius: 10px;
  font-size: 14px;
}

.cp-gate-err {
  color: #b91c1c;
  font-size: 13px;
}

.cp-gate-row .cp-gate-btn + .cp-gate-btn {
  margin-top: 8px;
}

.ac-matrix-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.ac-matrix-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #E5EAF0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.ac-matrix-tabs a b {
  color: #64748b;
  font-weight: 600;
}

.ac-matrix-tabs a.is-active {
  border-color: #0060F0;
  background: #E8F1FF;
  color: #071D3A;
}

.ac-matrix-tabs a.is-active b {
  color: #0060F0;
}

/* ===== Filter tab + full-screen filter panel ===== */
main > button.cp-ftab--float {
  position: fixed;
  top: 50%;
  right: 0;
  left: auto;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: none;
  padding: 12px 6px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: #eef0f3;
  box-shadow: -1px 0 8px rgba(15, 23, 42, 0.08);
  color: #111;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.cp-ftab i {
  font-size: 14px;
}

.cp-ftab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.cp-ftab-dot {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0060F0;
}

@media (max-width: 899px) {
  main > button.cp-ftab--float {
    display: none !important;
  }

  button.cp-ftab.cp-ftab--side {
    display: none !important;
  }
}

button.cp-ftab.cp-ftab--side {
  position: relative !important;
  display: none;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  width: calc(100% - 20px) !important;
  max-width: none !important;
  height: auto !important;
  min-height: 40px;
  margin: 4px 10px 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 10px !important;
  background: #f4f7fb !important;
  box-shadow: none !important;
  color: #071D3A !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  writing-mode: horizontal-tb !important;
  cursor: pointer;
  transform: none !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
}

button.cp-ftab.cp-ftab--side i {
  font-size: 14px;
  transform: none !important;
}

button.cp-ftab.cp-ftab--side span {
  writing-mode: horizontal-tb !important;
  transform: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}

button.cp-ftab.cp-ftab--side .cp-ftab-dot {
  position: static !important;
  margin-left: 2px;
  top: auto !important;
  left: auto !important;
}

@media (min-width: 900px) {
  main > button.cp-ftab--float {
    display: none !important;
  }

  button.cp-ftab.cp-ftab--side {
    display: inline-flex !important;
  }
}


main > .cp-fpanel {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  width: auto;
  max-width: none;
  background: rgba(7, 29, 58, 0.35);
}

.cp-fpanel[hidden] {
  display: none !important;
}

.cp-fform {
  display: flex;
  flex-direction: column;
  width: 40%;
  max-width: none;
  min-width: 320px;
  height: 100%;
  margin: 0;
  background: #fff;
  box-shadow: 12px 0 40px rgba(7, 29, 58, 0.18);
  transform: translateX(0);
  animation: cp-fslide-in 0.22s ease;
}

@keyframes cp-fslide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@media (max-width: 899px) {
  main > .cp-fpanel {
    background: #fff;
  }

  .cp-fform {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-shadow: none;
  }
}

.cp-fhead {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 56px;
  border-bottom: 1px solid #eceef1;
  text-align: center;
}

.cp-fhead h2 {
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cp-fclose {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
}

.cp-fbody {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}

.cp-fswitch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  max-width: none;
  margin: 0 auto;
  padding: 16px 0;
  border-bottom: 1px solid #eceef1;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.cp-fbody > .cp-fswitch {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.cp-fswitch input,
.cp-fopts input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cp-fswitch i {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: background 0.15s;
}

.cp-fswitch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: transform 0.15s;
}

.cp-fswitch input:checked + i {
  background: #111;
}

.cp-fswitch input:checked + i::after {
  transform: translateX(20px);
}

.cp-fsec {
  padding: 16px 0;
  border-bottom: 1px solid #eceef1;
  text-align: center;
}

.cp-fsec-title {
  margin: 0 0 12px;
  color: #111;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.cp-facc {
  border-bottom: 1px solid #eceef1;
}

.cp-facc summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
  padding: 16px 0;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.cp-facc summary::-webkit-details-marker {
  display: none;
}

.cp-facc summary b {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  font-weight: 400;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-facc summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0 0;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  transition: transform 0.15s;
}

.cp-facc[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.cp-fopts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 0 16px;
}

.cp-fopts--list {
  max-height: 320px;
  overflow-y: auto;
}

.cp-fopts label {
  position: relative;
  cursor: pointer;
}

.cp-fopts label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f1f2f4;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.cp-fopts label small {
  color: #9ca3af;
  font-size: 11px;
}

.cp-fopts input:checked + span {
  border-color: #111;
  background: #fff;
}

.cp-fopts input:checked + span small {
  color: #6b7280;
}

.cp-fopts label.is-off {
  cursor: default;
  pointer-events: none;
}

.cp-fopts label.is-off span {
  color: #c4c7cc;
  background: #f7f8f9;
  border-color: transparent;
}

.cp-fopts label.is-off span small {
  color: #d1d5db;
}

.cp-fopts label.is-off input:checked + span {
  color: #c4c7cc;
  border-color: #e5e7eb;
  background: #f7f8f9;
}

.cp-ffoot {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #eceef1;
  background: #fff;
}

.cp-freset,
.cp-fgo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.cp-freset {
  flex: 1 1 0;
  border: 1px solid #111;
  background: #fff;
  color: #111;
}

.cp-freset.is-off {
  border-color: #d1d5db;
  color: #9ca3af;
  pointer-events: none;
}

.cp-fgo {
  flex: 2 1 0;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}

/* ===== Search results page ===== */
.cp-sp {
  padding-top: 28px;
}

.nv.cp-sp h1.cp-sp-title {
  margin: 0 0 22px;
  color: #111;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cp-sp-form {
  max-width: 880px;
  margin: 0 0 28px;
}

.cp-sp-label {
  display: block;
  margin: 0 0 14px;
  color: #111;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cp-sp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.cp-sp-input {
  display: flex;
  min-width: 0;
  border: 1px solid #111;
  background: #fff;
}

.cp-sp-input input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 15px;
  outline: none;
}

.cp-sp-arrow {
  flex: 0 0 52px;
  height: 46px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.cp-sp-row select {
  height: 48px;
  padding: 0 12px;
  border: 1px solid #111;
  border-radius: 0;
  background-color: #fff;
  color: #111;
  font-size: 14px;
}

.cp-sp-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0 20px;
}

.cp-sp-checks label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-size: 13px;
  cursor: pointer;
}

.cp-sp-checks input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #111;
}

.cp-sp-checks input:disabled + span {
  opacity: 0.45;
}

.cp-sp-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.cp-sp-found,
.cp-sp-empty {
  margin: 0 0 16px;
  color: #111;
  font-size: 13px;
}

.cp-sp-found {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-sp-empty {
  color: #6b7280;
}

@media (max-width: 899px) {
  .cp-sp-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-sp-go {
    width: 100%;
  }

  .nv.cp-sp h1.cp-sp-title {
    font-size: 20px;
  }
}

#product-search.container.cp-sp {
  padding: 28px 24px 56px;
}

@media (max-width: 899px) {
  #product-search.container.cp-sp {
    padding: 20px 14px 40px;
  }
}

.ac-side-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 2px 2px 0;
}

.ac-side-who b {
  overflow: hidden;
  color: #071D3A;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-side-who small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Visual inventory: dashboard entry screen ===== */
.invd {
  display: block;
}

.invd-strip,
.invd-desk,
.invd-side {
  display: none;
}

.invd-card {
  padding: 20px;
  border: 1px solid #e8eef9;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.invd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.invd-pill--done {
  background: #e8f7ee;
  color: #15803d;
}

.invd-pill--run {
  background: #e0e9ff;
  color: #1d4ed8;
}

.invd-head h2 {
  margin: 12px 0 4px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.invd-head p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.invd-ring {
  position: relative;
  display: flex;
  flex: 0 0 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(#2563eb calc(var(--p, 0) * 1%), #e0e7ff 0);
}

.invd-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.invd-ring b,
.invd-ring small {
  position: relative;
  z-index: 1;
  display: block;
}

.invd-ring b {
  color: #2563eb;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.invd-ring small {
  color: #64748b;
  font-size: 11px;
}

.invd-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 12px;
}

.invd-big b {
  color: #2563eb;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
}

.invd-big span {
  color: #94a3b8;
  font-size: 28px;
  font-weight: 700;
}

.invd-big em {
  padding: 4px 10px;
  border-radius: 8px;
  background: #eef2f7;
  color: #64748b;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.invd-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.invd-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e6ecf7;
  border-radius: 14px;
  background: #f8faff;
}

.invd-chip b {
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}

.invd-chip span {
  color: #64748b;
  font-size: 13px;
}

.invd-chip--ok i {
  color: #2563eb;
}

.invd-chip--low i {
  color: #f59e0b;
}

.invd-chip--none i {
  color: #ef4444;
}

.invd-chip--skip i {
  color: #94a3b8;
}

.invd-bar {
  height: 10px;
  margin: 16px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0e7ff;
}

.invd-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
}

.invd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invd-foot-ok {
  color: #16a34a;
  font-weight: 700;
}

.invd-foot-run {
  color: #64748b;
  font-weight: 600;
}

.invd-open {
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
}

.invd-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.invd-cta,
.invd-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 22px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.invd-cta {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
  color: #fff;
}

.invd-row {
  border: 1px solid #e6ecf7;
  background: #fff;
  color: #0f172a;
}

.invd-cta-ico,
.invd-row-ico {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
}

.invd-cta-ico {
  background: rgba(255, 255, 255, 0.2);
}

.invd-row-ico {
  background: #eef4ff;
  color: #2563eb;
}

.invd-cta-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.invd-cta-text b {
  font-size: 18px;
  font-weight: 800;
}

.invd-cta-text small {
  font-size: 14px;
  opacity: 0.8;
}

.invd-row .invd-cta-text small {
  color: #64748b;
  opacity: 1;
}

.invd-cta > i:last-child,
.invd-row > i:last-child {
  opacity: 0.6;
}

.invd-history {
  margin-top: 4px;
}

.invd-history[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .invd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
  }

  .invd-card,
  .invd-mobile {
    display: none;
  }

  .invd-strip {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 18px 22px;
    border: 1px solid #e6ecf7;
    border-radius: 18px;
    background: #fff;
  }

  .invd-strip-big small {
    display: block;
    color: #64748b;
    font-size: 13px;
  }

  .invd-strip .invd-big {
    margin: 0 0 2px;
  }

  .invd-strip .invd-big b {
    font-size: 44px;
  }

  .invd-strip .invd-big span {
    font-size: 22px;
  }

  .invd-strip-bar {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .invd-strip-bar .invd-bar {
    flex: 1 1 auto;
    margin: 0;
  }

  .invd-strip-bar b {
    color: #475569;
    font-size: 13px;
  }

  .invd-strip-stats {
    display: flex;
    gap: 6px;
  }

  .invd-strip-stats .invd-chip {
    padding: 4px 14px;
    border: 0;
    border-left: 1px solid #e6ecf7;
    border-radius: 0;
    background: transparent;
  }

  .invd-strip-stats .invd-chip:first-child {
    border-left: 0;
  }

  .invd-desk {
    display: block;
    margin-top: 18px;
  }

  .invd-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .invd-tabbar {
    display: flex;
    overflow: hidden;
    border: 1px solid #e6ecf7;
    border-radius: 12px;
    background: #fff;
  }

  .invd-tabbar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 0;
    border-left: 1px solid #eef2f7;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .invd-tabbar button:first-child {
    border-left: 0;
  }

  .invd-tabbar button.is-on {
    background: #eaf1ff;
    color: #1d4ed8;
  }

  .invd-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .invd-dot--low {
    background: #f59e0b;
  }

  .invd-dot--none {
    background: #ef4444;
  }

  .invd-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e6ecf7;
    border-radius: 12px;
    background: #fff;
    color: #94a3b8;
  }

  .invd-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
  }

  .invd-table {
    padding: 18px;
    border: 1px solid #e6ecf7;
    border-radius: 18px;
    background: #fff;
  }

  .invd-table-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
  }

  .invd-table-head p {
    margin: 2px 0 12px;
    color: #64748b;
    font-size: 13px;
  }

  .invd-thead,
  .invd-tr {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(80px, 1fr) minmax(90px, 1fr) minmax(110px, 1.2fr);
    align-items: center;
    gap: 12px;
  }

  .invd-thead {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
  }

  .invd-tr {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .invd-rows {
    max-height: 640px;
    overflow-y: auto;
  }

  .invd-td--prod {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .invd-td--prod img,
  .invd-noimg {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
  }

  .invd-td--prod b {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
  }

  .invd-td--prod small {
    color: #94a3b8;
    font-size: 12px;
  }

  .invd-td--sku,
  .invd-td--date {
    color: #64748b;
    font-size: 13px;
  }

  .invd-st {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
  }

  .invd-st--ok {
    background: #e8f7ee;
    color: #15803d;
  }

  .invd-st--low {
    background: #fff4dc;
    color: #b45309;
  }

  .invd-st--none {
    background: #fee7e7;
    color: #b91c1c;
  }

  .invd-side {
    position: sticky;
    top: 16px;
    display: block;
  }

  .invd-panel {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #e6ecf7;
    border-radius: 18px;
    background: #fff;
  }

  .invd-panel h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
  }

  .invd-act {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid #e6ecf7;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .invd-act span {
    flex: 1 1 auto;
  }

  .invd-act > i:last-child {
    color: #94a3b8;
    font-size: 12px;
  }

  .invd-act--primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
  }

  .invd-act--primary > i:last-child {
    color: #fff;
  }

  .invd-sum {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .invd-sum li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
  }

  .invd-sum li b {
    margin-left: auto;
    color: #0f172a;
  }

  .invd-c-ok {
    color: #16a34a;
  }

  .invd-c-low {
    color: #f59e0b;
  }

  .invd-c-none {
    color: #ef4444;
  }

  .invd-c-skip {
    color: #94a3b8;
  }
}

.cp-gate-now {
  margin: -4px 0 14px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.cp-gate-now b {
  color: #071D3A;
  font-weight: 800;
}

[data-cp-gate-panel="pick"] .cp-gate-btn {
  justify-content: flex-start;
  gap: 14px;
  height: 56px;
  padding: 0 14px;
  border: 0;
  text-align: left;
}

[data-cp-gate-panel="pick"] .cp-gate-btn::before {
  content: "\f3c5";
  flex: 0 0 auto;
  color: #94a3b8;
  font-family: "Font Awesome 6 Free";
  font-size: 20px;
  font-weight: 900;
}

.cp-gate-btn.is-current {
  background: #e8effd;
  color: #071D3A;
}

.cp-gate-btn.is-current::before {
  color: #3b82f6;
}

.cp-gate-btn.is-current::after {
  content: "Текущая";
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 32px;
  margin-left: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #dbe6fb;
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
}

/* ===== Mobile profile hub: buttons instead of a horizontal strip ===== */
.ac-hub-back {
  display: none;
}

@media (max-width: 900px) {
  .ac-hubside {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 0;
    overflow: visible;
    border: 0;
  }

  .ac-hubside .ac-hub-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 2px;
    color: #2563eb;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .ac-hubside:not(.is-hub) .ac-side-head,
  .ac-hubside:not(.is-hub) .ac-nav,
  .ac-hubside:not(.is-hub) .ac-side-foot {
    display: none;
  }

  /* На мобиле: менеджер только на хабе «Точки», не внутри разделов (заказы, инвентаризация…) */
  .ac-hubside:not(.is-hub) .ac-side-manager {
    display: none;
  }

  .ac-hubside.is-hub .ac-side-manager {
    display: block;
    order: 2;
    margin-top: 4px;
  }

  .ac-hubside.is-hub .ac-hub-back {
    display: none;
  }

  .ac-hubside.is-hub .ac-side-head {
    flex: 0 0 auto;
    order: 0;
    padding: 4px 2px 6px;
  }

  .ac-hubside.is-hub .ac-side-who b {
    font-size: 18px;
  }

  .ac-hubside.is-hub .ac-nav,
  .ac-hubside.is-hub .ac-side-foot {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 0;
  }

  .ac-hubside.is-hub .ac-nav-link {
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 0 16px;
    border: 1px solid #e6ecf7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    white-space: normal;
  }

  .ac-hubside.is-hub .ac-nav-link i {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 17px;
  }

  .ac-hubside.is-hub .ac-nav-link::after {
    content: "\f054";
    color: #94a3b8;
    font-family: "Font Awesome 6 Free";
    font-size: 13px;
    font-weight: 900;
  }

  .ac-hubside.is-hub .ac-nav-link.is-active {
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  }

  .ac-hubside.is-hub .ac-side-foot .ac-nav-link {
    border-color: #fbd5d5;
    background: #fff8f8;
    box-shadow: none;
    color: #b91c1c;
  }

  .ac-hubside.is-hub .ac-side-foot .ac-nav-link i {
    background: #fee7e7;
    color: #ef4444;
  }

  .ac-hubside.is-hub .ac-side-foot .ac-nav-link::after {
    content: none;
  }

  .ac-hubside.is-hub .ac-nav-link span {
    flex: 1 1 auto;
  }

  body:has(.ac-hubside.is-hub) .ac-main {
    display: none;
  }
}

/* ===== Inventory on phone: title in the back row, wizard fits the screen ===== */
.ac-hub-row {
  display: contents;
}

.ac-hub-title {
  display: none;
}

@media (max-width: 900px) {
  .ac-hubside .ac-hub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .ac-hubside.is-hub .ac-hub-row {
    display: none;
  }

  .ac-hubside .ac-hub-title {
    display: block;
    min-width: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
  }

  .inv-pagetitle {
    display: none;
  }

  .inv-wizard {
    display: flex;
    flex-direction: column;
    max-width: none;
    min-height: calc(100vh - 220px);
    min-height: calc(100dvh - 220px);
  }

  .inv-wizard .inv-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .inv-wizard .inv-photo {
    flex: 1 1 160px;
    width: 100%;
    max-width: none;
    min-height: 160px;
    aspect-ratio: auto;
  }

  .inv-wizard .inv-photo-btn img {
    max-height: 100%;
  }

  .inv-wizard .inv-info {
    flex: 0 0 auto;
  }

  .inv-wizard .inv-metas {
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
  }

  .inv-wizard .inv-footer {
    position: static;
    flex: 0 0 auto;
    margin-top: 12px;
    padding: 0 0 8px;
    background: none;
  }

  .inv-wizard .inv-nav {
    margin-bottom: 10px;
  }

  .inv-wizard .inv-act {
    min-height: 64px;
    padding: 8px 6px;
  }

  .inv-wizard .inv-act small {
    display: none;
  }

  .inv-wizard .inv-stats {
    padding: 10px 14px;
  }

  .inv-wizard .inv-card {
    margin-top: 10px;
    padding: 12px;
  }

  .inv-wizard .inv-photo {
    flex-basis: 120px;
    min-height: 120px;
  }

  .inv-wizard .inv-info {
    margin-top: 8px;
  }

  .inv-wizard .inv-metas {
    gap: 8px;
    margin-top: 10px;
  }

  .inv-wizard .inv-meta {
    padding: 8px 10px;
  }

  .inv-wizard .inv-footer {
    margin-top: 10px;
  }
}

/* Wizard photo: plain image, no button or tinted box around it */
.inv-card .inv-photo {
  border-radius: 0;
  background: transparent;
}

.inv-card .inv-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Wizard progress bar lives on its own, right under the page header row */
.inv-wizard .inv-bar--top {
  height: 6px;
  margin: 0 0 10px;
}

/* Wizard photo sits on its own above the info card; image can never spill out */
.inv-wizard > .inv-photo {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
}

.inv-wizard > .inv-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .inv-wizard > .inv-photo {
    flex: 1 1 140px;
    width: 100%;
    max-width: none;
    min-height: 140px;
    aspect-ratio: auto;
  }

  .inv-wizard .inv-card {
    flex: 0 0 auto;
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .inv-wizard .inv-stats {
    padding: 0 2px;
    border: 0;
    background: transparent;
  }

  .inv-wizard .inv-stats-top b {
    font-size: 16px;
  }

  .inv-wizard .inv-bar--top {
    margin-bottom: 6px;
  }

  .inv-wizard .inv-card {
    margin-top: 8px;
    padding: 8px 10px;
  }

  .inv-wizard .inv-info {
    margin-top: 0;
  }

  .inv-wizard .inv-title {
    font-size: 17px;
  }

  .inv-wizard .inv-meta {
    padding: 6px 8px;
  }

  .inv-wizard .inv-nav-btn {
    width: 40px;
    height: 40px;
  }

  .inv-wizard .inv-nav {
    margin-bottom: 8px;
  }

  .inv-wizard .inv-act {
    min-height: 56px;
  }
}

/* Wizard: photo, then name / volume / country, nothing else */
.inv-wizard .inv-card:not(.inv-card--attn) {
  border: 0;
  background: transparent;
  padding: 0;
}

.inv-wizard .inv-info {
  margin-top: 4px;
}

/* Wizard: progress bar above the arrows, "N из M" between them */
.inv-wizard .inv-bar--foot {
  height: 6px;
  margin: 0 0 10px;
}

.inv-wizard .inv-nav-hint {
  color: #64748b;
  font-size: 16px;
}

.inv-wizard .inv-nav-hint b {
  color: #071D3A;
  font-size: 20px;
}

/* Wizard: country badge in the photo's top-left corner */
.inv-country {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 12px;
  border: 1px solid #e5eaf0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

/* Wizard photo box: no tint behind the picture */
.inv-wizard > .inv-photo,
.inv-wizard .inv-photo {
  border-radius: 0;
  background: transparent;
}

/* Desktop inventory: status row above the summary strip */
.invd-headrow {
  display: none;
}

@media (min-width: 900px) {
  .invd-headrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
  }

  .invd-headmeta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #475569;
    font-size: 14px;
  }

  .invd-headmeta i {
    margin-right: 6px;
    color: #64748b;
  }
}

/* ===== Desktop visual inventory polish ===== */
/* Keep mobile inventory untouched: all rules below are min-width 901px only. */
.inv-back,
.inv-dmeta,
.inv-keys,
.inv-kbd {
  display: none;
}

@media (min-width: 901px) {
  .inv-pagetitle {
    display: block;
  }

  .inv-back {
    display: none;
  }

  /* slightly larger thumbs to match web reference */
  .invd-td--prod img,
  .invd-noimg {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  /* wizard: big photo left, info + controls right */
  .inv-wizard {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
      "photo card"
      "photo foot";
    grid-template-rows: 1fr auto;
    column-gap: 36px;
    max-width: 1000px;
    margin: 0;
    padding: 24px;
    border: 1px solid #e6ecf7;
    border-radius: 22px;
    background: #fff;
  }

  .inv-wizard > .inv-photo {
    grid-area: photo;
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 1 / 1;
  }

  .inv-wizard .inv-card {
    grid-area: card;
    align-self: center;
    margin: 0;
  }

  .inv-wizard .inv-info {
    margin: 0;
    text-align: left;
  }

  .inv-wizard .inv-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .inv-dmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .inv-dmeta span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #f8fafc;
  }

  .inv-dmeta small {
    color: #64748b;
    font-size: 12px;
  }

  .inv-dmeta b {
    color: #071D3A;
    font-size: 16px;
  }

  .inv-wizard .inv-volume {
    align-items: flex-start;
    margin: 14px 0 0;
  }

  .inv-wizard .inv-footer {
    grid-area: foot;
    position: static;
    margin: 0;
    padding: 0;
    background: none;
  }

  .inv-wizard .inv-act {
    position: relative;
    min-height: 96px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
  }

  .inv-wizard .inv-act:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .inv-kbd {
    position: absolute;
    top: 6px;
    right: 8px;
    display: block;
    min-width: 18px;
    padding: 1px 5px;
    border: 1px solid currentColor;
    border-radius: 5px;
    font: 600 11px/1.3 inherit;
    opacity: 0.55;
  }

  .inv-keys {
    display: block;
    margin: 12px 0 0;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
  }

  .inv-keys kbd {
    display: inline-block;
    min-width: 20px;
    margin: 0 2px;
    padding: 1px 5px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    color: #475569;
    font: 600 11px/1.4 inherit;
    text-align: center;
  }
}

/* ===== Orders desk (no composition column) ===== */
.ord {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ord-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ord-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ord-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.ord-create:hover {
  background: #1d4ed8;
}

.ord-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ord-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ord-tab.is-on {
  background: #eaf1ff;
  color: #1d4ed8;
}

.ord-tab-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}

.ord-tab.is-on .ord-tab-n {
  background: #2563eb;
  color: #fff;
}

.ord-tab-n--new { background: #dbeafe; color: #1d4ed8; }
.ord-tab-n--progress { background: #ede9fe; color: #6d28d9; }
.ord-tab-n--shipping { background: #ffedd5; color: #c2410c; }
.ord-tab-n--done { background: #dcfce7; color: #166534; }
.ord-tab-n--cancelled { background: #e2e8f0; color: #64748b; }

.ord-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ord-search,
.ord-date {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e6ecf7;
  border-radius: 12px;
  background: #fff;
  color: #94a3b8;
}

.ord-search {
  flex: 1 1 260px;
  min-width: 200px;
}

.ord-search input,
.ord-date input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-size: 14px;
}

.ord-date input {
  flex: 0 1 auto;
  max-width: 140px;
}

.ord-date span {
  color: #cbd5e1;
}

.ord-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #e6ecf7;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ord-bar .ord-sort {
  margin-left: 0;
}

.ord-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #94a3b8;
  font-size: 13px;
}

.ord-sort a {
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
}

.ord-sort a.is-on {
  color: #1d4ed8;
}

.ord-row-hit {
  display: none;
}

.ord-table {
  position: relative;
  z-index: 1;
  border: 1px solid #e6ecf7;
  border-radius: 18px;
  background: #fff;
  /* visible: меню «⋯» не должно обрезаться у последней строки */
  overflow: visible;
}

.ord-thead,
.ord-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.25fr) minmax(100px, 0.95fr) minmax(90px, 0.85fr) minmax(110px, 0.95fr) minmax(90px, 0.8fr) minmax(88px, 0.75fr) minmax(120px, 1.1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.ord-channel {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ord-channel--online {
  background: #eaf1ff;
  color: #1d4ed8;
}

.ord-channel--offline {
  background: #f1f5f9;
  color: #475569;
}

.ord-thead {
  border-bottom: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.ord-row {
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.ord-row:last-child {
  border-bottom: 0;
}

.ord-row:has(.ord-menu[open]) {
  z-index: 6;
}

.ord-td--id a {
  color: #0f172a;
  text-decoration: none;
}

.ord-td--id b,
.ord-td--sum b,
.ord-td--due b,
.ord-td--who b {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.ord-td--due .ord-due {
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
}

.ord-td--due .ord-due-empty {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.ord-td--id small,
.ord-td--who small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.ord-td--date {
  color: #475569;
  font-size: 14px;
}

.ord-st {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ord-st--new { background: #eaf1ff; color: #1d4ed8; }
.ord-st--progress { background: #f3e8ff; color: #7c3aed; }
.ord-st--assembled { background: #e0e7ff; color: #3730a3; }
.ord-st--ship { background: #ffedd5; color: #c2410c; }
.ord-st--done { background: #dcfce7; color: #166534; }
.ord-st--failed { background: #fee2e2; color: #b91c1c; }
.ord-st--cancel { background: #f1f5f9; color: #64748b; }
.ord-st--default { background: #eef2f7; color: #475569; }

.ord-menu {
  position: relative;
}

.ord-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #64748b;
  cursor: pointer;
  list-style: none;
}

.ord-menu summary::-webkit-details-marker { display: none; }

.ord-menu summary:hover,
.ord-menu[open] summary {
  background: #f1f5f9;
  color: #0f172a;
}

.ord-menu-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  min-width: 160px;
  padding: 6px;
  border: 1px solid #e6ecf7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

/* У последней строки меню вверх — не уходит под «Показать: …» */
.ord-row:last-child .ord-menu-list {
  top: auto;
  bottom: calc(100% + 4px);
}

.ord-menu-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ord-menu-list a:hover {
  background: #f8fafc;
}

.ord-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ord-limit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.ord-limit a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.ord-limit a.is-on {
  color: #1d4ed8;
}

.ord-limit small {
  margin-left: 6px;
  color: #94a3b8;
}

@media (max-width: 899px) {
  .ord-thead {
    display: none;
  }

  .ord-table {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ord-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "id st"
      "date channel"
      "sum due";
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e6ecf7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .ord-row:last-child {
    border-bottom: 1px solid #e6ecf7;
  }

  .ord-row-hit {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
  }

  .ord-td--id > a {
    position: relative;
    z-index: 2;
  }

  .ord-td--who,
  .ord-td--act {
    display: none !important;
  }

  .ord-td--id { grid-area: id; min-width: 0; }
  .ord-td--st {
    grid-area: st;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .ord-td--date {
    grid-area: date;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
  }
  .ord-td--channel {
    grid-area: channel;
    justify-self: end;
  }
  .ord-td--sum {
    grid-area: sum;
    justify-self: start;
    text-align: left;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
  }

  .ord-td--due {
    grid-area: due;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
  }

  .ord-td--due::before {
    content: attr(data-label);
    color: #94a3b8;
    font-weight: 650;
  }

  .ord-td--due .ord-due {
    font-size: 13px;
  }

  .ord-td--due .ord-due-empty {
    display: none;
  }

  .ord-td--due:has(.ord-due-empty) {
    display: none;
  }

  .ord-td--id b { font-size: 14px; line-height: 1.2; }
  .ord-td--sum b { font-size: 13px; font-weight: 750; white-space: nowrap; }
  .ord-st { min-height: 22px; padding: 0 8px; font-size: 11px; }

  .ord-td--date::before,
  .ord-td--sum::before,
  .ord-td--st::before {
    content: none !important;
  }

  .ord-sort {
    margin-left: 0;
    width: 100%;
  }

  .ord-date {
    width: 100%;
  }
}

/* Login/register shared: select + switch */
.lg-input--select {
  padding-right: 10px;
}

.lg-input select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
}

.lg-field-err:empty {
  display: none;
}

.lg-field-err {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
}

.lg-field textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  resize: vertical;
}

.lg-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.lg-switch span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
}

.lg-switch span a {
  color: #2563eb;
}

.lg-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lg-switch > i {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.lg-switch > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}

.lg-switch input:checked + i {
  background: #2563eb;
}

.lg-switch input:checked + i::after {
  transform: translateX(18px);
}

.lg-card--reg .lg-submit {
  margin-top: 8px;
}

.lg-perks {
  justify-content: center;
}


/* Age-restricted products (energy drinks) */
html:not(.cp-age-ok):not(.cp-logged) .cp-card--age .cp-media img,
html:not(.cp-age-ok):not(.cp-logged) .cp-page--age .cp-hero-img,
html:not(.cp-age-ok):not(.cp-logged) .cp-page--age .cp-thumbs img {
  filter: blur(18px);
  transform: scale(1.06);
  user-select: none;
}

html:not(.cp-age-ok):not(.cp-logged) .cp-card--age .cp-media {
  position: relative;
  overflow: hidden;
}

.cp-age-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(7, 29, 58, 0.78);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

html:not(.cp-age-ok):not(.cp-logged) .cp-card--age .cp-age-badge,
html:not(.cp-age-ok):not(.cp-logged) .cp-gallery--age .cp-age-badge {
  display: inline-flex;
}

html:not(.cp-age-ok):not(.cp-logged) .cp-gallery--age {
  position: relative;
}

html:not(.cp-age-ok):not(.cp-logged) .cp-gallery--age .cp-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

html.cp-age-ok .cp-age-badge,
html.cp-logged .cp-age-badge {
  display: none !important;
}

.cp-age-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 29, 58, 0.5);
}

.cp-age-modal[hidden] {
  display: none;
}

.cp-age-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 29, 58, 0.28);
  text-align: center;
}

.cp-age-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: #eff6ff;
  color: #0060F0;
  font-size: 22px;
  font-weight: 800;
}

.cp-age-modal-card h2 {
  margin: 0 0 10px;
  color: #071D3A;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.cp-age-modal-card p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.cp-age-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: #0060F0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cp-age-modal-btn--ghost {
  background: #f1f5f9;
  color: #071D3A;
}

.cp-age-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
}


/* ===== Account order detail ===== */
#account-order.container {
  width: 100%;
  max-width: 100% !important;
  overflow-x: clip;
  box-sizing: border-box;
}

.ord {
  max-width: 100%;
  overflow-x: clip;
}

.ord-info {
  --ord-pack: #15803d;
  --ord-piece: #0369a1;
  max-width: 100%;
  width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.ord-info-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ord-info-back:hover {
  color: #0f172a;
}

.ord-info-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.ord-info-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.ord-info-date {
  display: inline;
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.ord-info-title .ord-st {
  flex-shrink: 0;
  margin-top: 2px;
}

.ord-info-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 0 0 2px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ord-info-chips::-webkit-scrollbar {
  display: none;
}

.ord-info-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.ord-info-chip span {
  color: #94a3b8;
  font-weight: 600;
}

.ord-info-chip b {
  font-weight: 700;
}

.ord-info-group {
  margin-top: 10px;
}

.ord-info-group-h {
  display: block;
  margin: 0 0 2px;
  padding: 12px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.ord-info-group--pack .ord-info-group-h {
  color: var(--ord-pack);
  border-bottom-color: #bbf7d0;
}

.ord-info-group--piece .ord-info-group-h {
  color: var(--ord-piece);
  border-bottom-color: #bae6fd;
}

.ord-info-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ord-info-search {
  position: relative;
  margin: 0 0 14px;
}

.ord-info-search > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.ord-info-search-input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 40px;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  color: #0f172a;
  -webkit-appearance: none;
  appearance: none;
}

.ord-info-search-input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.ord-info-search-input::-webkit-search-cancel-button {
  display: none;
}

.ord-info-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
}

.ord-info-search-empty {
  margin: 0 0 14px;
  color: #64748b;
  text-align: center;
  font-weight: 600;
}

.ord-info-search-clear[hidden],
.ord-info-search-empty[hidden],
.ord-info-group[hidden],
.ord-info-item[hidden] {
  display: none !important;
}

.ord-info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.ord-info-group .ord-info-item:last-child {
  border-bottom: 0;
}

/* Высота строки = правый стек (сумма / цена / ×кол-во); фото и название не раздувают ряд */
.ord-info-item-thumb {
  display: block;
  box-sizing: border-box;
  height: 0;
  min-height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background: #e2e8f0;
}

.ord-info-item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ord-info-item-thumb--empty {
  border: 1px dashed #cbd5e1;
  min-width: 48px;
}

.ord-info-item-main {
  height: 0;
  min-height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.ord-info-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

a.ord-info-item-name:hover {
  color: #1d4ed8;
}

.ord-info-item-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  white-space: nowrap;
  min-width: 76px;
  line-height: 1.2;
}

.ord-info-item-sum {
  display: block;
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.ord-info-group--pack .ord-info-item-sum {
  color: var(--ord-pack);
}

.ord-info-group--piece .ord-info-item-sum {
  color: var(--ord-piece);
}

.ord-info-item-unit {
  display: block;
  margin: 1px 0 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.ord-info-item-qty {
  display: block;
  margin: 1px 0 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.ord-info-item .ord-pick-badge {
  margin-top: 2px;
  flex-shrink: 0;
}

.ord-info-totals {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.ord-info-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.ord-info-total b {
  color: #0f172a;
  font-weight: 700;
}

.ord-info-total.is-grand {
  margin-top: 2px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.ord-info-total.is-grand b {
  font-size: 17px;
  font-weight: 800;
}

.ord-info-total--pay b {
  color: #047857;
}
.ord-info-total--due b {
  color: #b91c1c;
}

.ord-pay {
  display: inline-block;
  font-weight: 700;
}
.ord-pay--paid { color: #047857; }
.ord-pay--part { color: #c2410c; }
.ord-pay--unpaid { color: #b91c1c; }


.ord-info-pays {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.ord-info-pays h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}
.ord-info-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ord-info-pay-list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.ord-info-pay-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.ord-info-pay-main b {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}
.ord-info-pay-main span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}
.ord-info-pay-list small {
  color: #94a3b8;
  font-size: 12px;
}

.ord-info-comment-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.ord-info-comment-block h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.ord-info-comment {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.ord-hist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ord-hist-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 10px 0;
  border-top: 1px solid #f1f5f9;
}

.ord-hist-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.ord-hist-date {
  color: #94a3b8;
  font-size: 13px;
}

.ord-hist-status {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.ord-hist-comment {
  grid-column: 2;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.ord-info-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.ord-hist-pager {
  margin-top: 10px;
}

@media (max-width: 899px) {
  .ord-hist-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ord-hist-comment {
    grid-column: 1;
  }
}


/* ===== Account / common success ===== */
.lg--success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 40px 20px 64px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 96, 240, 0.08), transparent 60%),
    #f8fafc;
}

.lg-card--success {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 40px 32px 36px;
  text-align: center;
}

.lg-success-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #E8F1FF;
  color: #0060F0;
  font-size: 28px;
  box-shadow: 0 0 0 10px rgba(0, 96, 240, 0.06);
}

.lg-success-title {
  margin: 0 0 14px;
  color: #071D3A;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lg-success-msg {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.lg-success-msg p {
  margin: 0 0 10px;
}

.lg-success-msg p:last-child {
  margin-bottom: 0;
}

.lg-success-msg a {
  color: #0060F0;
  font-weight: 650;
  text-decoration: none;
}

.lg-success-msg a:hover {
  text-decoration: underline;
}

.lg-success-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .lg--success {
    min-height: calc(100vh - 140px);
    padding: 28px 16px 48px;
  }

  .lg-card--success {
    padding: 32px 22px 28px;
    border-radius: 20px;
  }

  .lg-success-title {
    font-size: 24px;
  }
}


/* Catalog layout toggle + list (column) mode */
.cp-layout.cp-layout--bar {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.cp-layout.cp-layout--bar button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
}
.cp-layout.cp-layout--bar button.is-active {
  background: #0060F0;
  color: #fff;
}
.cp-card-sku {
  display: none;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
body.cp-list .cp-card-sku {
  display: block;
  font-weight: 600;
  color: #334155;
}
body.cp-list .cp-card-facts {
  margin-top: 4px;
  gap: 2px;
}
body.cp-list .cp-card-sku {
  order: -1;
}

body.cp-list #product-list.row {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px;
}
body.cp-list .cp-card {
  flex-direction: row;
  align-items: stretch;
  min-height: 112px;
  border-radius: 14px;
}
body.cp-list .cp-hide {
  top: 6px;
  left: 6px;
}
body.cp-list .cp-fav {
  top: 6px;
  right: auto;
  left: 70px;
}
body.cp-list .cp-media {
  flex: 0 0 104px;
  width: 104px;
  max-width: 104px;
  aspect-ratio: 1 / 1;
  border-right: 1px solid #eef2f7;
}
body.cp-list .cp-media img,
body.cp-list .cp-media-empty {
  padding: 6px;
}
body.cp-list .cp-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.cp-list .cp-body h3,
body.cp-list #product-list .cp-body h3 {
  font-size: 14px;
  min-height: 0;
  max-height: none;
  -webkit-line-clamp: 2;
}
body.cp-list .cp-stack {
  flex: 0 0 auto;
  width: min(220px, 42%);
  padding: 8px 10px;
  gap: 6px;
  justify-content: center;
}
body.cp-list .cp-band {
  min-height: 44px;
}
@media (max-width: 720px) {
  body.cp-list .cp-card {
    flex-wrap: wrap;
  }
  body.cp-list .cp-media {
    flex-basis: 88px;
    width: 88px;
    max-width: 88px;
  }
  body.cp-list .cp-body {
    flex: 1 1 calc(100% - 100px);
  }
  body.cp-list .cp-stack {
    width: 100%;
    flex-basis: 100%;
    padding: 0 10px 10px;
  }
  body.cp-list .cp-fav {
    left: auto;
    right: 8px;
  }
}


@media (min-width: 900px) {
  header.cp-top .cp-layout.cp-layout--bar {
    display: inline-flex;
    flex: 0 0 auto;
    order: 0;
    margin-right: 4px;
  }
}


/* Empty Bootstrap toast host sat over the cart icon and ate clicks. */
#alert.toast-container {
  pointer-events: none;
}
#alert.toast-container .toast {
  pointer-events: auto;
}



/* Force-hide removed catalog layout toggle */
header.cp-top .cp-layout.cp-layout--bar {
  display: none !important;
}

/* Cart rows — mockup: checkbox | thumb | info | stepper+price */
.ac-cart {
  display: block;
  grid-template-columns: none;
  background: #f3f5f8;
  border-radius: 16px;
  padding: 10px;
}

.ac-cart-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ac-cart-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 36px 12px 12px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ac-cart-row:first-child {
  padding-top: 12px;
  border-top: 0;
}

.ac-cart-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #0060F0;
  color: #fff;
  font-size: 12px;
}

.ac-cart-thumb {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 10px;
  background: #f8fafc;
}

.ac-cart-info {
  min-width: 0;
  align-self: center;
}

.ac-cart-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #071D3A;
}

.ac-cart-meta,
.ac-cart-country {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.3;
}

.ac-cart-country {
  margin-top: 2px;
}

.ac-cart-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 108px;
}

.ac-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.ac-cart-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #071D3A;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ac-cart-qty-input {
  width: 36px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #071D3A;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  -moz-appearance: textfield;
}

.ac-cart-qty-input::-webkit-outer-spin-button,
.ac-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ac-cart-qty--static {
  border: 0;
  justify-content: center;
  min-width: 36px;
  font-weight: 650;
}

.ac-cart-price {
  align-items: flex-end;
}

.ac-cart-price b {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.ac-cart-remove {
  position: absolute;
  top: 8px;
  right: 8px;
}

.ac-cart-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ac-cart-x:hover {
  background: #f1f5f9;
  color: #b91c1c;
}

.ac-cart-totals {
  margin: 12px 4px 0;
  padding: 12px 8px 4px;
  background: transparent;
}

@media (max-width: 899px) {
  .ac-cart {
    margin: 0 -4px;
    padding: 8px;
    border-radius: 0;
    background: #f3f5f8;
  }

  .ac-cart-row {
    grid-template-columns: 24px 56px minmax(0, 1fr) auto;
    grid-template-areas: none;
    gap: 10px;
    padding: 12px 32px 12px 10px;
  }

  .ac-cart-thumb,
  .ac-cart-info,
  .ac-cart-qty,
  .ac-cart-price,
  .ac-cart-remove {
    grid-area: auto;
  }

  .ac-cart-thumb { width: 56px; height: 56px; }
  .ac-cart-side { min-width: 96px; }
  .ac-cart-name { font-size: 14px; }
  .ac-cart-meta,
  .ac-cart-country { font-size: 12px; }
}


/* Cart denser: no checkboxes/X, less padding */
.ac-cart {
  padding: 0;
  background: #f3f5f8;
  border-radius: 0;
}
.ac-cart-rows {
  gap: 6px;
}
.ac-cart-row {
  grid-template-columns: 56px minmax(0, 1fr) auto !important;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 12px;
}
.ac-cart-check,
.ac-cart-remove {
  display: none !important;
}
.ac-cart-side {
  min-width: 96px;
}
@media (max-width: 899px) {
  .ac-cart {
    margin: 0 -12px;
    padding: 0;
    width: calc(100% + 24px);
    max-width: none;
    background: #f3f5f8;
  }
  .ac-cart-rows { gap: 6px; }
  .ac-cart-row {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    grid-template-areas: none !important;
    gap: 8px;
    padding: 10px !important;
    border-radius: 0;
  }
  .ac-cart-thumb { width: 52px; height: 52px; }
  .ac-cart-side { min-width: 88px; }
  body.ac-body #checkout-cart.container,
  body.ac-body #checkout-cart > .row > .col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.ac-body #checkout-cart .ac-title {
    padding-left: 12px;
    padding-right: 12px;
  }
  body.ac-body #checkout-cart .ac-cart-totals,
  body.ac-body #checkout-cart .ac-actions {
    padding-left: 12px;
    padding-right: 12px;
  }
}


/* Cart tune: side inset, no divider lines, larger thumbs */
.ac-cart {
  padding: 0 10px !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.ac-cart-rows {
  gap: 8px !important;
}
.ac-cart-row {
  grid-template-columns: 72px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  padding: 12px !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.ac-cart-row + .ac-cart-row {
  border-top: 0 !important;
}
.ac-cart-thumb {
  width: 72px !important;
  height: 72px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
}
@media (max-width: 899px) {
  .ac-cart {
    margin: 0 !important;
    padding: 0 10px !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
  }
  .ac-cart-rows { gap: 8px !important; }
  .ac-cart-row {
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }
  .ac-cart-thumb {
    width: 72px !important;
    height: 72px !important;
  }
  body.ac-body #checkout-cart.container,
  body.ac-body #checkout-cart > .row > .col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.ac-body #checkout-cart .ac-title,
  body.ac-body #checkout-cart .ac-cart-totals,
  body.ac-body #checkout-cart .ac-actions {
    padding-left: 10px;
    padding-right: 10px;
  }
  /* page bg so cards sit on soft gray without hairline separators */
  body.ac-body #checkout-cart {
    background: #f3f5f8;
  }
}


/* Cart page: centered column, no subtitle */
#checkout-cart .ac-main {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
#checkout-cart .ac-actions {
  justify-content: center;
  gap: 16px;
}
@media (max-width: 899px) {
  #checkout-cart .ac-main {
    max-width: 560px;
  }
  body.ac-body #checkout-cart .ac-title,
  body.ac-body #checkout-cart .ac-cart-totals,
  body.ac-body #checkout-cart .ac-actions {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ===== Desktop cart (two-column, sidebar) ===== */
#checkout-cart .ac-main {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
/* Title + clear live inside .ac-cart-main → right edge = panel / blue line */
#checkout-cart .ac-cart-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 14px;
  min-width: 0;
}
#checkout-cart .ac-cart-page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #071D3A;
  line-height: 1.15;
}

.ac-cart--desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  background: transparent !important;
  padding: 0 !important;
}

.ac-cart-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-cart-panel {
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 16px;
  border-top: 3px solid #20D48F;
  overflow: hidden;
}

.ac-cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.ac-cart-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #071D3A;
}

.ac-cart-panel-sub {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
}

.ac-cart-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0060F0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.ac-cart-panel-link:hover { color: #0047C2; }

.ac-cart--desk .ac-cart-rows {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.ac-cart--desk .ac-cart-row {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1.4fr) 110px 130px 120px !important;
  gap: 14px !important;
  align-items: center;
  padding: 14px 18px !important;
  border: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.ac-cart--desk .ac-cart-row:last-child {
  border-bottom: 0 !important;
}

.ac-cart--desk .ac-cart-thumb {
  width: 72px !important;
  height: 72px !important;
  border: 1px solid #E5EAF0 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

.ac-cart--desk .ac-cart-name {
  font-size: 14px;
  font-weight: 700;
}

.ac-cart--desk .ac-cart-meta,
.ac-cart--desk .ac-cart-country {
  margin: 2px 0 0;
  font-size: 12px;
}

.ac-cart-stock {
  margin: 4px 0 0;
  color: #059669;
  font-size: 12px;
  font-weight: 650;
}

.ac-cart-unit {
  color: #64748b;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.ac-cart--desk .ac-cart-qty {
  justify-self: end;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}

.ac-cart--desk .ac-cart-step {
  width: 34px;
  height: 34px;
}

.ac-cart--desk .ac-cart-qty-input {
  width: 44px;
  height: 34px;
  font-weight: 700;
  background: transparent;
}

.ac-cart--desk .ac-cart-price {
  align-items: flex-end;
}
.ac-cart--desk .ac-cart-price b {
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.ac-cart-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
  color: #64748b;
  font-size: 13px;
}
.ac-cart-panel-foot i { margin-right: 6px; color: #94a3b8; }
.ac-cart-panel-foot strong {
  color: #071D3A;
  font-size: 15px;
  font-weight: 750;
}

.ac-cart-paybar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #eef2f7;
  color: #071D3A;
  font-size: 14px;
  font-weight: 600;
}
.ac-cart-paybar b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ac-cart-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: #0060F0;
  color: #fff !important;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 96, 240, 0.22);
}
.ac-cart-checkout:hover {
  background: #0047C2;
  color: #fff !important;
}
.ac-cart-checkout--disabled {
  background: #94A3B8;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.72;
}
.ac-cart-pending-warn {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  color: #9A3412;
  font-size: 13px;
  line-height: 1.35;
}
.cp-band[data-cp-pending="1"] .cp-plus,
.cp-band[data-cp-pending="1"] .cp-qty-plus,
.cp-band[data-cp-pending="1"] button.cp-step[data-delta="1"] {
  opacity: 0.35;
  cursor: not-allowed;
}

.ac-cart-summary {
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}

.ac-cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #64748b;
  font-size: 13px;
}
.ac-cart-summary-row b {
  color: #071D3A;
  font-weight: 650;
}
.ac-cart-summary-row.is-sum {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  color: #071D3A;
  font-size: 15px;
  font-weight: 700;
}
.ac-cart-summary-row.is-sum b {
  font-size: 20px;
  font-weight: 800;
}
.ac-cart-free { color: #059669 !important; }

.ac-cart-aside-link {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.ac-cart-aside-link:hover { color: #0060F0; }

/* Hide old stacked totals/actions on desk layout */
.ac-cart--desk > .ac-cart-totals,
.ac-cart--desk + .ac-actions {
  display: none !important;
}

@media (max-width: 899px) {
  #checkout-cart .ac-cart-page-title {
    font-size: 22px;
  }
  #checkout-cart .ac-cart-head-row {
    margin: 4px 10px 12px;
  }
  .ac-cart--desk {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }
  .ac-cart-aside {
    position: static;
    order: 2;
    width: 100%;
    max-width: none;
  }
  .ac-cart-main { order: 1; width: 100%; }
  .ac-cart-panel {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ac-cart--desk .ac-cart-row {
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "thumb info price"
      "thumb qty qty";
    gap: 10px !important;
    padding: 12px !important;
  }
  .ac-cart--desk .ac-cart-thumb { grid-area: thumb; width: 64px !important; height: 64px !important; }
  .ac-cart--desk .ac-cart-info { grid-area: info; }
  .ac-cart--desk .ac-cart-unit { display: none; }
  .ac-cart--desk .ac-cart-qty { grid-area: qty; justify-self: start; }
  .ac-cart--desk .ac-cart-price { grid-area: price; }
  .ac-cart-paybar { display: none; }
  .ac-cart-checkout {
    position: sticky;
    bottom: 12px;
    z-index: 5;
  }
  body.ac-body #checkout-cart {
    background: #f3f5f8;
  }
}

@media (min-width: 900px) {
  body.ac-body #checkout-cart {
    background: transparent;
  }
  body.ac-body:has(#checkout-cart) main,
  body.ac-body:has(#checkout-cart) #checkout-cart {
    background: #f3f5f8;
  }
  body.ac-body:has(#checkout-cart) #checkout-cart.container {
    max-width: 1240px;
    padding-top: 18px;
    padding-bottom: 40px;
  }
  #checkout-cart .ac-main {
    max-width: none;
    width: 100%;
  }
  .ac-cart--desk {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
}

/* ===== Cart wider desktop (cartdesk3) ===== */
@media (min-width: 900px) {
  .ac-body main > #checkout-cart.container {
    max-width: 1520px !important;
    padding-left: 32px;
    padding-right: 32px;
  }
  .ac-body main > #checkout-cart > .row > *,
  .ac-body main > #checkout-cart > .row > .col,
  #checkout-cart .ac-main {
    max-width: none !important;
    width: 100% !important;
  }
  .ac-cart--desk {
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 28px !important;
  }
  .ac-cart--desk .ac-cart-row {
    grid-template-columns: 80px minmax(0, 1.6fr) 120px 140px 130px !important;
    gap: 16px !important;
    padding: 16px 22px !important;
  }
  .ac-cart--desk .ac-cart-thumb {
    width: 80px !important;
    height: 80px !important;
  }
}

/* ===== Cart white page bg ===== */
body.ac-body:has(#checkout-cart) main,
body.ac-body:has(#checkout-cart) #checkout-cart,
body.ac-body #checkout-cart,
body.ac-body #checkout-cart.container {
  background: #fff !important;
}
@media (max-width: 899px) {
  body.ac-body #checkout-cart,
  .ac-cart {
    background: #fff !important;
  }
}


/* ===== Cart hover trash remove ===== */
.ac-cart--desk .ac-cart-row {
  position: relative;
}
.ac-cart--desk .ac-cart-price {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
}
.ac-cart--desk .ac-cart-remove {
  display: block !important;
  position: static;
  top: auto;
  right: auto;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.ac-cart--desk .ac-cart-row:hover .ac-cart-remove,
.ac-cart--desk .ac-cart-row:focus-within .ac-cart-remove {
  opacity: 1;
  pointer-events: auto;
}
.ac-cart--desk .ac-cart-x {
  width: 32px;
  height: 32px;
  color: #94a3b8;
  font-size: 15px;
}
.ac-cart--desk .ac-cart-x:hover {
  background: #f1f5f9;
  color: #dc2626;
}
@media (max-width: 899px) {
  .ac-cart--desk .ac-cart-remove {
    opacity: 1;
    pointer-events: auto;
  }
  .ac-cart--desk .ac-cart-price {
    min-height: 0;
  }
}


/* ===== Cart minus gray at min ===== */
.ac-cart-qty.is-at-min .ac-cart-step[data-delta="-1"],
.ac-cart-step[data-delta="-1"]:disabled {
  color: #c5ccd6;
  cursor: default;
}
.ac-cart-qty.is-at-min .ac-cart-step[data-delta="-1"]:hover,
.ac-cart-step[data-delta="-1"]:disabled:hover {
  color: #c5ccd6;
  background: transparent;
}


/* ===== Cart no thumb border + foot positions ===== */
.ac-cart-thumb,
.ac-cart--desk .ac-cart-thumb {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.ac-cart-panel-foot {
  align-items: flex-start !important;
  padding: 16px 18px !important;
  background: #fff !important;
  border-top: 1px solid #f1f5f9 !important;
}
.ac-cart-panel-foot-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.ac-cart-panel-foot-main > i {
  margin: 3px 0 0 !important;
  color: #20D48F !important;
  font-size: 16px;
}
.ac-cart-panel-foot-title {
  color: #071D3A;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.ac-cart-panel-foot-sub {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}
.ac-cart-panel-foot strong {
  padding-top: 1px;
  font-size: 16px !important;
  font-weight: 750 !important;
  color: #071D3A !important;
  white-space: nowrap;
}


/* ===== Cart promo code aside ===== */
.ac-cart-summary {
  background: #f3f5f8 !important;
  border-color: transparent !important;
}
.ac-cart-summary-row.is-coupon b {
  color: #059669 !important;
}
.ac-cart-promo {
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}
.ac-cart-promo-title {
  margin: 0 0 10px;
  color: #071D3A;
  font-size: 14px;
  font-weight: 750;
}
.ac-cart-promo-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 12px;
  background: #f3f5f8;
  border: 1px solid #E5EAF0;
  overflow: hidden;
  box-sizing: border-box;
}
.ac-cart-promo-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #071D3A;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.ac-cart-promo-input::placeholder {
  color: #94a3b8;
}
.ac-cart-promo-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}
.ac-cart-promo-go i {
  display: block;
  line-height: 1;
  font-size: 14px;
}
.ac-cart-promo-go:hover { color: #0060F0; }
.ac-cart-promo-msg {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}
.ac-cart-promo-msg.is-err { color: #dc2626; }
.ac-cart-promo-msg.is-ok { color: #059669; }
.ac-cart-promo-clear {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.ac-cart-promo-clear:hover { color: #0060F0; }
.ac-cart-grand {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 0;
  color: #071D3A;
  font-size: 18px;
  font-weight: 800;
}
.ac-cart-grand b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
@media (max-width: 899px) {
  .ac-cart-grand { font-size: 16px; }
  .ac-cart-grand b { font-size: 18px; }
}


/* ===== Cart foot visible + paybar in panel ===== */
.ac-cart-panel-foot {
  display: flex !important;
}
.ac-cart-panel .ac-cart-paybar {
  margin: 0 12px 12px;
  border-radius: 10px;
}
@media (max-width: 899px) {
  .ac-cart-panel .ac-cart-paybar {
    display: flex !important;
    margin: 0;
    border-radius: 0;
  }
}

/* ===== Cart row padding top/bottom 0 ===== */
.ac-cart--desk .ac-cart-row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== Cart align unit/qty with total price ===== */
.ac-cart--desk .ac-cart-price {
  min-height: 0 !important;
  justify-content: center !important;
  gap: 0 !important;
}
.ac-cart--desk .ac-cart-remove {
  position: absolute !important;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
}
.ac-cart--desk .ac-cart-unit,
.ac-cart--desk .ac-cart-qty {
  align-self: center;
}
.ac-cart--desk .ac-cart-row {
  align-items: center !important;
}

/* ===== Cart unit/qty/price align to name ===== */
.ac-cart--desk .ac-cart-row {
  align-items: start !important;
}
.ac-cart--desk .ac-cart-unit,
.ac-cart--desk .ac-cart-qty,
.ac-cart--desk .ac-cart-price {
  align-self: start !important;
  margin-top: 4px;
}
.ac-cart--desk .ac-cart-thumb {
  align-self: start !important;
}

/* ===== Cart prices vertically centered to qty ===== */
.ac-cart--desk .ac-cart-unit {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end;
  height: 34px;
  margin-top: 4px;
  line-height: 1;
}
.ac-cart--desk .ac-cart-qty {
  height: 34px;
  margin-top: 4px;
  align-self: start !important;
}
.ac-cart--desk .ac-cart-price {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 34px;
  min-height: 34px !important;
  margin-top: 4px;
  gap: 0 !important;
}
.ac-cart--desk .ac-cart-price b {
  line-height: 1;
}
.ac-cart--desk .ac-cart-remove {
  top: calc(100% + 4px) !important;
}

/* ===== Mobile cart repair after desk tweaks ===== */
@media (max-width: 899px) {
  .ac-cart--desk {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important; /* was start → aside stuck at ~340px left */
    grid-template-columns: none !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .ac-cart--desk > .ac-cart-main,
  .ac-cart--desk > .ac-cart-aside {
    width: 100% !important;
    max-width: none !important;
    align-self: stretch !important;
    box-sizing: border-box;
  }
  .ac-cart--desk .ac-cart-row {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    grid-template-areas: "thumb info price" "thumb qty qty" !important;
    gap: 10px !important;
    align-items: start !important;
    padding: 12px !important;
  }
  .ac-cart--desk .ac-cart-thumb {
    grid-area: thumb;
    width: 64px !important;
    height: 64px !important;
    align-self: start !important;
    margin: 0 !important;
  }
  .ac-cart--desk .ac-cart-info {
    grid-area: info;
    min-width: 0;
  }
  .ac-cart--desk .ac-cart-unit {
    display: none !important;
  }
  .ac-cart--desk .ac-cart-qty {
    grid-area: qty;
    justify-self: start !important;
    align-self: start !important;
    height: auto !important;
    margin-top: 0 !important;
  }
  .ac-cart--desk .ac-cart-price {
    grid-area: price;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    gap: 6px !important;
    position: relative;
  }
  .ac-cart--desk .ac-cart-remove {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    right: auto !important;
  }
  .ac-cart-panel {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .ac-cart-panel-foot {
    display: flex !important;
    padding: 12px !important;
  }
  .ac-cart-panel .ac-cart-paybar {
    display: none !important;
  }
  .ac-cart-aside {
    position: static !important;
    order: 2;
    width: 100% !important;
    max-width: none !important;
    padding: 0 12px 20px;
    box-sizing: border-box;
  }
  .ac-cart-aside > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .ac-cart-checkout {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    width: 100%;
    box-sizing: border-box;
  }
  .ac-cart-grand {
    padding: 8px 2px 12px;
  }
  body.ac-body #checkout-cart,
  body.ac-body:has(#checkout-cart) main,
  body.ac-body:has(#checkout-cart) #checkout-cart {
    background: #fff !important;
  }
}


/* ===== Cart split pack / piece panels ===== */
.ac-cart-main {
  gap: 16px !important;
}
.ac-cart-main-foot {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #E5EAF0;
  border-radius: 16px;
  overflow: hidden;
}
.ac-cart-main-foot .ac-cart-panel-foot {
  border-top: 0 !important;
  display: flex !important;
}
.ac-cart-main-foot .ac-cart-paybar {
  margin: 0 12px 12px !important;
}
@media (max-width: 899px) {
  .ac-cart-main {
    gap: 10px !important;
  }
  .ac-cart-main-foot {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ac-cart-main-foot .ac-cart-paybar {
    display: none !important;
  }
}

/* ===== Cart panel accents: piece blue / pack green ===== */
.ac-cart-panel--piece {
  border-top-color: #bae6fd !important;
}
.ac-cart-panel--pack {
  border-top-color: #86efac !important;
}


/* ===== Cart order comment ===== */
.ac-cart-comment {
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}
.ac-cart-comment-title {
  margin: 0 0 10px;
  color: #071D3A;
  font-size: 14px;
  font-weight: 750;
}
.ac-cart-comment-input {
  display: block;
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #f3f5f8;
  color: #071D3A;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.ac-cart-comment-input::placeholder {
  color: #94a3b8;
}
.ac-cart-comment-input:focus {
  box-shadow: 0 0 0 2px rgba(0, 96, 240, 0.18);
}
.ac-cart-comment-msg {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}
.ac-cart-comment-msg.is-err { color: #dc2626; }
.ac-cart-comment-msg.is-ok { color: #059669; }

/* ===== Cart summary white bg ===== */
.ac-cart-summary {
  background: #fff !important;
  border: 1px solid #E5EAF0 !important;
}

/* ===== Cart field resets (keep after base rules) ===== */
.ac-cart-promo-input,
.ac-cart-comment-input,
.ac-cart-share-input {
  max-width: 100%;
}
.ac-cart-comment-input {
  background: #f3f5f8 !important;
  border: 1px solid #E5EAF0 !important;
}
.ac-cart-promo-input {
  background: transparent !important;
}
.ac-cart-share-input {
  background: transparent !important;
}
.ac-cart-share-copy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: auto;
  min-height: 44px;
  line-height: 1.1;
}

/* ===== Cart foot total not bold ===== */
.ac-cart-panel-foot-title,
.ac-cart-main-foot .ac-cart-panel-foot-title {
  font-weight: 500 !important;
}
.ac-cart-panel-foot strong,
.ac-cart-main-foot .ac-cart-panel-foot strong {
  font-weight: 500 !important;
}


/* ===== Cart share link ===== */
.ac-cart-share {
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}
.ac-cart-share-title {
  margin: 0 0 10px;
  color: #071D3A;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-cart-share-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f5f8;
  box-sizing: border-box;
}
.ac-cart-share-input {
  flex: 1;
  min-width: 0;
  height: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 12px;
  line-height: 1.25;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.ac-cart-share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: stretch;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #E5EAF0;
  background: #071D3A;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.1;
}
.ac-cart-share-copy:hover {
  background: #0060F0;
}
.ac-cart-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
#checkout-cart .ac-cart-transfer,
.ac-cart-transfer {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
#checkout-cart .ac-cart-transfer:hover,
.ac-cart-transfer:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#checkout-cart .ac-cart-clear,
.ac-cart-clear {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #64748b !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  flex-shrink: 0;
}
#checkout-cart .ac-cart-clear:hover,
#checkout-cart .ac-cart-clear:focus,
.ac-cart-clear:hover,
.ac-cart-clear:focus {
  color: #dc2626 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  outline: none;
}
#checkout-cart .ac-cart-clear:disabled,
.ac-cart-clear:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ac-cart-share-hint {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 500;
}
.ac-cart-share-msg {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}
.ac-cart-share-msg.is-ok { color: #059669; }
.ac-cart-share-msg.is-err { color: #dc2626; }

/* ===== Mobile cart aside fields repair ===== */
@media (max-width: 899px) {
  .ac-cart-promo,
  .ac-cart-comment,
  .ac-cart-share {
    padding: 12px 14px;
    overflow: hidden;
  }
  .ac-cart-promo-form {
    border-radius: 12px;
  }
  .ac-cart-promo-input {
    height: 44px;
    font-size: 16px; /* iOS: no focus zoom */
    line-height: 1.25;
  }
  .ac-cart-promo-go {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .ac-cart-comment-input {
    min-height: 96px;
    font-size: 16px;
    line-height: 1.4;
    resize: none;
  }
  .ac-cart-share-row {
    border-radius: 12px;
  }
  .ac-cart-share-input {
    font-size: 13px;
    min-height: 44px;
  }
  .ac-cart-share-copy {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    min-width: max-content;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }
}

/* ===== Cart checkout button no shadow ===== */
.ac-cart-checkout {
  box-shadow: none !important;
}


/* ===== Cart delivery status ===== */
.ac-cart-delivery-paid {
  color: #64748b !important;
  font-weight: 650;
  text-align: right;
  max-width: 58%;
  line-height: 1.25;
}
.ac-cart-delivery-hint {
  margin: -4px 0 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.ac-cart-summary-row--delivery {
  align-items: flex-start;
}


/* ===== Stepped checkout ===== */
.ac-check-back {
  display: inline-flex;
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.ac-check-back:hover { color: #0060F0; }
.ac-title--check h1 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ac-check-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid #E5EAF0;
}
.ac-check-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 8px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #94a3b8;
  text-align: left;
  cursor: pointer;
}
.ac-check-step.is-active {
  color: #071D3A;
  border-bottom-color: #0060F0;
}
.ac-check-step.is-done { color: #334155; }
.ac-check-step:disabled { cursor: default; opacity: 0.7; }
.ac-check-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2f7;
  color: inherit;
  font-size: 13px;
  font-weight: 750;
}
.ac-check-step.is-active .ac-check-step-num {
  background: #0060F0;
  color: #fff;
}
.ac-check-step-label {
  font-size: 13px;
  font-weight: 650;
}
.ac-check-panel-title {
  margin: 0 0 16px;
  color: #071D3A;
  font-size: 20px;
  font-weight: 800;
}
.ac-check-muted {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
}
.ac-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}
.ac-check-field label {
  display: block;
  margin: 0 0 6px;
  color: #071D3A;
  font-size: 13px;
  font-weight: 650;
}
.ac-check-field--full { grid-column: 1 / -1; }
.ac-check-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
.ac-btn--primary {
  background: #0060F0;
  color: #fff !important;
}
.ac-btn--primary:hover { background: #0047C2; }
.ac-btn--ghost {
  background: #fff;
  border-color: #E5EAF0;
  color: #071D3A;
}
.ac-check-order {
  position: sticky;
  top: 88px;
  padding: 16px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}
.ac-check-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ac-check-order-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #071D3A;
}
.ac-check-order-clear {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.ac-check-order-clear:hover { color: #0060F0; }
.ac-check-order-totals {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.ac-check-order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: #64748b;
  font-size: 13px;
}
.ac-check-order-total.is-sum {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  color: #071D3A;
  font-size: 15px;
  font-weight: 700;
}
.ac-check-order-total.is-sum b {
  font-size: 18px;
  font-weight: 800;
}
@media (max-width: 899px) {
  .ac-check-steps { grid-template-columns: 1fr; }
  .ac-check-grid { grid-template-columns: 1fr; }
  .ac-check-order { position: static; }
  .ac-check-step-label { font-size: 12px; }
}

#checkout-checkout .ac-check-panel fieldset > legend { display: none; }
#checkout-checkout .ac-check-field.required > label::after {
  content: " *";
  color: #e11d48;
}
#checkout-confirm-actions .ac-confirm { display: none; }

/* Checkout uses cart aside on the right */
#checkout-checkout .ac-check-side.ac-cart-aside {
  position: sticky;
  top: 88px;
}
#checkout-checkout .ac-check-order { display: none; }

/* ===== Checkout design v2 ===== */
@media (min-width: 900px) {
  body.ac-body main > #checkout-checkout.container {
    max-width: 1240px !important;
    padding: 18px 32px 56px !important;
    background: #fff !important;
  }
  .ac-body main > #checkout-checkout > .row > *,
  .ac-body main > #checkout-checkout > .row > .col,
  #checkout-checkout .ac-main {
    max-width: none !important;
    width: 100% !important;
  }
  #checkout-checkout .ac-check {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
  }
}
body.ac-body:has(#checkout-checkout) main,
body.ac-body:has(#checkout-checkout) #checkout-checkout {
  background: #fff !important;
}

#checkout-checkout .ac-check-back {
  margin: 0 0 8px;
}
#checkout-checkout .ac-title--check h1 {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #071D3A;
}

/* main card */
#checkout-checkout .ac-check-main {
  min-width: 0;
  padding: 22px 26px 26px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}

/* stepper */
#checkout-checkout .ac-check-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid #E5EAF0;
}
#checkout-checkout .ac-check-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0 0 -1px;
  padding: 0 4px 14px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
#checkout-checkout .ac-check-step:disabled { cursor: default; opacity: 1; }
#checkout-checkout .ac-check-step.is-active {
  color: #071D3A;
  border-bottom-color: #0060F0;
}
#checkout-checkout .ac-check-step.is-done { color: #334155; }
#checkout-checkout .ac-check-step.is-done .ac-check-step-num {
  background: #e8f0ff;
  color: #0060F0;
}
#checkout-checkout .ac-check-step-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 750;
  background: #eef2f7;
  color: #94a3b8;
}
#checkout-checkout .ac-check-step.is-active .ac-check-step-num {
  background: #0060F0;
  color: #fff;
}
#checkout-checkout .ac-check-step-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

/* panels */
#checkout-checkout .ac-check-panel-title {
  margin: 0 0 18px;
  color: #071D3A;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}
#checkout-checkout .ac-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
#checkout-checkout .ac-check-field label,
#checkout-checkout .form-label {
  display: block;
  margin: 0 0 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
#checkout-checkout .ac-check-field.required > label::after {
  content: " *";
  color: #e11d48;
}
#checkout-checkout .ac-check-field .form-control,
#checkout-checkout .form-control,
#checkout-checkout .form-select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #071D3A;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}
#checkout-checkout textarea.form-control {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}
#checkout-checkout .form-control::placeholder { color: #94a3b8; }
#checkout-checkout .form-control:focus,
#checkout-checkout .form-select:focus {
  border-color: #0060F0;
  box-shadow: 0 0 0 3px rgba(0, 96, 240, 0.12);
  outline: none;
}
#checkout-checkout .form-control.is-invalid {
  border-color: #dc2626;
  background-image: none;
}
#checkout-checkout .invalid-feedback {
  margin-top: 4px;
  color: #dc2626;
  font-size: 12px;
}
#checkout-checkout .ac-check-muted {
  margin: -6px 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

/* shipping method / payment blocks */
#checkout-checkout #checkout-shipping-method,
#checkout-checkout #checkout-payment-method,
#checkout-checkout #checkout-payment-address {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eef1f4;
}
#checkout-checkout #checkout-shipping-method legend,
#checkout-checkout #checkout-payment-method legend {
  display: block !important;
  margin: 0 0 12px;
  color: #071D3A;
  font-size: 15px;
  font-weight: 750;
}
#checkout-checkout .input-group {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
}
#checkout-checkout .input-group .input-group-text { display: none; }
#checkout-checkout .input-group .form-control { flex: 1 1 auto; min-width: 0; }
#checkout-checkout .input-group .btn,
#checkout-checkout .btn.btn-primary {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #0060F0;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}
#checkout-checkout .input-group .btn:hover,
#checkout-checkout .btn.btn-primary:hover { background: #0047C2; }

/* nav buttons */
#checkout-checkout .ac-check-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 0;
}
#checkout-checkout .ac-check-nav .ac-btn {
  min-width: 132px;
  min-height: 44px;
  border-radius: 10px;
  box-shadow: none;
}
#checkout-checkout .ac-check-nav .ac-btn--ghost {
  border: 1px solid #dbe2ea;
  background: #fff;
  color: #475569;
}
#checkout-checkout #checkout-confirm-actions { margin-top: 12px; }
#checkout-checkout #checkout-confirm-actions .ac-actions { margin: 0; }
#checkout-checkout #checkout-confirm-actions .ac-btn,
#checkout-checkout #checkout-confirm-actions .btn {
  min-height: 48px;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: none;
}

/* sidebar */
#checkout-checkout .ac-check-side.ac-cart-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

@media (max-width: 899px) {
  body.ac-body main > #checkout-checkout.container {
    padding: 14px 14px 40px !important;
    background: #fff !important;
  }
  #checkout-checkout .ac-title--check h1 { font-size: 24px; margin-bottom: 16px; }
  #checkout-checkout .ac-check { grid-template-columns: 1fr; gap: 16px; }
  #checkout-checkout .ac-check-main {
    padding: 16px 14px 18px;
    border-radius: 12px;
  }
  #checkout-checkout .ac-check-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
  #checkout-checkout .ac-check-step { flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 6px; }
  #checkout-checkout .ac-check-step-label { font-size: 11px; white-space: normal; }
  #checkout-checkout .ac-check-grid { grid-template-columns: 1fr; gap: 14px; }
  #checkout-checkout .input-group { flex-wrap: wrap; }
  #checkout-checkout .ac-check-nav .ac-btn { flex: 1; min-width: 0; }
  #checkout-checkout .ac-check-side.ac-cart-aside { position: static; }
}

/* ===== Checkout stepper v3 ===== */
#checkout-checkout .ac-check-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
#checkout-checkout .ac-check-step {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b3bbc7;
  font: inherit;
  text-align: left;
  cursor: default;
}
#checkout-checkout .ac-check-step:not(:disabled) { cursor: pointer; }
#checkout-checkout .ac-check-step-num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9dee6;
  border-radius: 50%;
  background: #fff;
  color: #b3bbc7;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
#checkout-checkout .ac-check-step-label {
  overflow: visible;
  white-space: nowrap;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}
#checkout-checkout .ac-check-step.is-active { color: #071D3A; border: 0; }
#checkout-checkout .ac-check-step.is-active .ac-check-step-num {
  border-color: #0060F0;
  background: #fff;
  color: #0060F0;
}
#checkout-checkout .ac-check-step.is-done { color: #475569; }
#checkout-checkout .ac-check-step.is-done .ac-check-step-num {
  border-color: #0060F0;
  background: #0060F0;
  color: #fff;
}
#checkout-checkout .ac-check-step-line {
  flex: 1 1 24px;
  min-width: 16px;
  height: 1px;
  background: #e2e6ec;
}
#checkout-checkout .ac-check-step-line.is-done { background: #0060F0; }

@media (max-width: 899px) {
  #checkout-checkout .ac-check-steps {
    gap: 10px;
    margin-bottom: 22px;
  }
  #checkout-checkout .ac-check-step { gap: 0; }
  #checkout-checkout .ac-check-step-label { display: none; }
  #checkout-checkout .ac-check-step.is-active { gap: 10px; flex: 1 1 auto; min-width: 0; }
  #checkout-checkout .ac-check-step.is-active .ac-check-step-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
  }
  #checkout-checkout .ac-check-step-num { width: 30px; height: 30px; font-size: 13px; }
  #checkout-checkout .ac-check-step-line { flex: 0 0 14px; min-width: 14px; }
}

/* ===== Checkout stepper outside ===== */
#checkout-checkout > .row .ac-main > .ac-check-steps,
#checkout-checkout .ac-main > .ac-check-steps {
  margin: 0 0 22px;
  padding: 0 2px;
}
@media (max-width: 899px) {
  #checkout-checkout .ac-main > .ac-check-steps { margin-bottom: 16px; }
}

/* ===== Shipping options inline ===== */
#checkout-checkout .ac-ship-methods { margin: 0; padding: 0; border: 0; }
#checkout-checkout .ac-ship-methods > legend {
  display: block !important;
  margin: 0 0 14px;
  color: #071D3A;
  font-size: 16px;
  font-weight: 750;
}
#checkout-checkout .ac-ship-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#checkout-checkout .ac-ship-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
#checkout-checkout .ac-ship-option.is-checked {
  border-color: #0060F0;
  background: #f5f9ff;
  box-shadow: 0 0 0 1px #0060F0;
}
#checkout-checkout .ac-ship-option input {
  margin-top: 3px;
  accent-color: #0060F0;
}
#checkout-checkout .ac-ship-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#checkout-checkout .ac-ship-option-name {
  color: #071D3A;
  font-size: 14px;
  font-weight: 700;
}
#checkout-checkout .ac-ship-option-text {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}
#checkout-checkout .ac-ship-loading,
#checkout-checkout .ac-ship-error {
  color: #64748b;
  font-size: 13px;
}
#checkout-checkout .ac-ship-error { color: #dc2626; }

/* ===== Payment options inline ===== */
#checkout-checkout .ac-pay-methods { margin: 0; padding: 0; border: 0; }
#checkout-checkout .ac-pay-methods > legend {
  display: block !important;
  margin: 0 0 14px;
  color: #071D3A;
  font-size: 16px;
  font-weight: 750;
}
#checkout-checkout .ac-pay-agree {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
}
#checkout-checkout #checkout-payment-method {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ===== Checkout success simple ===== */
.ac-success .ac-success-order {
  margin: 8px 0 0;
  color: #071D3A;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}
.ac-success .ac-success-order b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ac-success .ac-success-link {
  margin: 14px 0 22px;
  text-align: center;
}
.ac-success .ac-success-link a {
  color: #0060F0;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.ac-success .ac-success-link a:hover { text-decoration: underline; }
.ac-success .lg-success-msg { display: none; }

/* ===== Top nav Новинки link ===== */
.cp-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-links .cp-link-new {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #071D3A;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.cp-links .cp-link-new:hover,
.cp-links .cp-link-new.is-active {
  color: #0060F0;
  background: #f3f7ff;
}
@media (max-width: 899px) {
  .cp-links .cp-link-new { display: none; }
}

/* ---------- Visual inventory: employee link ---------- */
.inv-share {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #e6ecf7;
  border-radius: 18px;
  background: #fff;
}

.inv-share h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
}

.inv-share .inv-muted {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}

.inv-share-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--cp-text);
  font-size: 13px;
}

.inv-share-state b {
  color: var(--cp-ink);
}

.inv-share-url {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.inv-share-url input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: var(--cp-neutral);
  color: var(--cp-ink);
  font-size: 13px;
}

.inv-share-url .ac-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inv-share .inv-wide + .inv-share-actions,
.inv-share-url + .inv-share-actions {
  margin-top: 4px;
}

.inv-share-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.inv-link--danger {
  color: #dc2626;
}

.inv-share .inv-share-note {
  margin: 8px 0 0;
  font-size: 12px;
}

.inv-h-by {
  display: block;
  margin-top: 2px;
  color: var(--cp-primary) !important;
}

.inv-h-by a {
  color: inherit;
}

.inv-saved {
  margin: 10px 0 0;
  color: var(--cp-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.inv-saved i {
  margin-right: 4px;
  color: var(--cp-mint);
}

/* standalone page */
.inv-link-page {
  min-height: 100vh;
  background: var(--cp-bg);
}

.inv-link-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

.inv-link-head {
  margin-bottom: 14px;
}

.inv-link-brand {
  color: var(--cp-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.inv-link-head h1 {
  margin: 4px 0 2px;
  color: var(--cp-ink);
  font-size: 24px;
  font-weight: 800;
}

.inv-link-point {
  margin: 0;
  color: var(--cp-muted);
  font-size: 14px;
}

.inv-link-card {
  padding: 22px 18px;
  border: 1px solid #e6ecf7;
  border-radius: 20px;
  background: #fff;
}

.inv-link-card--ok,
.inv-link-card--off {
  text-align: center;
}

.inv-link-card h2 {
  margin: 10px 0 6px;
  color: var(--cp-ink);
  font-size: 20px;
  font-weight: 800;
}

.inv-link-card p {
  margin: 0;
  color: var(--cp-muted);
  line-height: 1.5;
}

.inv-link-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cp-soft);
  color: var(--cp-primary);
  font-size: 26px;
}

.inv-link-card--off .inv-link-ico {
  background: #f1f5f9;
  color: var(--cp-muted);
}

.inv-finish .inv-stat-row {
  margin: 14px 0;
}

.inv-finish > .inv-wide {
  margin-bottom: 6px;
}

.inv-who {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.inv-who h2 {
  margin: 0 0 4px;
  color: var(--cp-ink);
  font-size: 18px;
  font-weight: 800;
}

.inv-who .inv-muted {
  margin: 0 0 12px;
}

.inv-who-field {
  display: block;
  margin-bottom: 12px;
}

.inv-who-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--cp-slate);
  font-size: 13px;
  font-weight: 600;
}

.inv-who-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #fff;
  color: var(--cp-ink);
  font-size: 16px;
}

.inv-who-field input:focus {
  border-color: var(--cp-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 96, 240, .12);
}

.inv-who-field input.is-invalid {
  border-color: #dc2626;
}

.inv-who-field small {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: #dc2626;
  font-size: 12px;
}

.inv-who-field small:empty {
  display: none;
}

.inv-who-err {
  margin: 0 0 10px;
  color: #dc2626;
  font-size: 13px;
}

.inv-who .inv-wide {
  margin-bottom: 8px;
}

.inv-who .inv-link {
  display: block;
  margin: 4px auto 0;
}

/* ---------- Visual inventory: history only ---------- */
.invd-desk.invd-desk--history {
  display: block;
  margin-top: 14px;
}

.invd-desk--history .invd-table {
  padding: 16px;
  border: 1px solid #e6ecf7;
  border-radius: 18px;
  background: #fff;
}

.invd-desk--history .invd-table-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}

.invd-desk--history .invd-table-head p {
  margin: 2px 0 12px;
  color: #64748b;
  font-size: 13px;
}

/* ---------- Visual inventory: employee link above history ---------- */
.invd-desk--history .inv-share {
  margin: 0 0 14px;
}

.invd-desk--history .inv-share-url input {
  height: 44px;
}

@media (min-width: 768px) {
  .invd-desk--history .inv-share-url {
    max-width: 720px;
  }

  .invd-desk--history .inv-share > .inv-wide {
    width: auto;
    padding-left: 22px;
    padding-right: 22px;
  }

  .invd-desk--history .inv-share-actions {
    justify-content: flex-start;
    gap: 24px;
  }
}

/* ---------- Visual inventory: link panel header + inline actions ---------- */
.inv-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.inv-share-head h3 {
  margin: 0;
}

.inv-share-head .invd-pill {
  flex: 0 0 auto;
}

.inv-share-inline {
  display: none !important;
}

.inv-share-revoke {
  color: #dc2626 !important;
}

@media (min-width: 768px) {
  .invd-desk--history .inv-share-url {
    max-width: none;
    align-items: center;
  }

  .invd-desk--history .inv-share-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }

  .invd-desk--history .inv-share-actions {
    display: none;
  }
}

/* ---------- Visual inventory link page: full-height layout ---------- */
.inv-link-page .inv-link-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 14px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}

.inv-link-page .inv-link-head {
  flex: 0 0 auto;
  margin-bottom: 10px;
  text-align: center;
}

.inv-link-page .inv-link-head h1 {
  margin: 0;
  color: var(--cp-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inv-link-page .inv-link-point {
  margin-top: 4px;
  font-size: 14px;
  text-align: center;
}

.inv-link-page #inv-app.inv--link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* centred cards: intro, sent, link not active */
.inv-link-page .inv--link > .inv-link-card--ok,
.inv-link-page .inv--link > .inv-link-card--off,
.inv-link-page .inv--link > .inv-intro {
  margin-top: auto;
  margin-bottom: auto;
}

.inv-link-page .inv--link > .inv-loading {
  margin: auto 0;
  text-align: center;
}

/* intro */
body.inv-link-page[data-inv-screen="intro"] .inv-link-head {
  display: none;
}

.inv-intro {
  padding: 28px 18px;
  text-align: center;
}

.inv-intro-brand {
  display: block;
  color: var(--cp-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.inv-intro-title {
  margin: 14px 0 6px;
  color: var(--cp-ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.inv-intro-point {
  margin: 0;
  color: var(--cp-muted);
  font-size: 15px;
}

.inv-intro-count {
  margin: 18px 0 22px;
  color: var(--cp-muted);
  font-size: 13px;
}

.inv-intro-start {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* finish screen sits at the top and scrolls */
.inv-link-page .inv--link > .inv-finish {
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  /* like the manager on a phone: photo grows, Нет / Мало / Есть at the bottom */
  .inv-link-page .inv--link > .inv-wizard {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    max-width: none;
    min-height: 0;
  }

  .inv-link-page .inv--link .inv-wizard > .inv-photo {
    flex: 1 1 160px;
    min-height: 160px;
    max-height: 52vh;
  }

  .inv-link-page .inv--link .inv-wizard .inv-card {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .inv-link-page .inv--link .inv-wizard .inv-footer {
    margin-top: auto;
    padding-top: 10px;
  }

  .inv-link-page .inv-saved {
    margin-top: 8px;
    font-size: 11px;
  }
}

/* Visual inventory: link panel send buttons */
.inv-share-send {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.inv-share-send .ac-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inv-share-send .fa-telegram {
  color: #229ed9;
}

@media (max-width: 991.98px) {
  .inv-share-send .ac-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Visual inventory: per-point bot message text */
.inv-bottext {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: var(--cp-neutral);
}

.inv-bottext-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--cp-text);
  font-size: 12px;
  font-weight: 600;
}

.inv-bottext-head .inv-link {
  font-size: 13px;
}

.inv-bottext-preview {
  margin: 0;
  color: var(--cp-ink);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
}

.inv-bottext textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: var(--cp-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.inv-bottext textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.inv-bottext--edit .inv-muted {
  margin: 6px 0 10px;
  font-size: 12px;
}

.inv-bottext-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Point settings page (address form + access) */
.cp-ps {
  display: grid;
  gap: 20px;
  align-items: start;
}

.cp-ps--split {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
}

.cp-ps-card {
  padding: 24px 26px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(7, 29, 58, 0.04);
}

.cp-ps-form {
  display: grid;
  gap: 0;
}

.cp-ps-block + .cp-ps-block {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eef2f7;
}

.cp-ps-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cp-ps-block-head--text {
  align-items: flex-start;
}

.cp-ps-block-head h2 {
  margin: 0;
  color: var(--cp-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cp-ps-block-head p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.cp-ps-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f0ff;
  color: #0060F0;
  font-size: 15px;
  flex: 0 0 auto;
}

.cp-ps-fields {
  display: grid;
  gap: 14px;
}

.cp-ps-fields--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.cp-ps-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cp-ps-label-row em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.cp-ps-input-ico {
  position: relative;
  display: block;
}

.cp-ps-input-ico > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.cp-ps-input-ico input {
  padding-left: 34px !important;
}

.cp-ps-form .ac-field input,
.cp-ps-form .ac-field textarea {
  border-radius: 10px;
  border-color: #dbe3ef;
}

.cp-ps-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}

.cp-ps-access {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.cp-ps-access-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cp-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cp-ps-access-head p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

.cp-ps-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #0060F0;
  font-size: 12px;
  font-weight: 700;
}

.cp-ps-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-ps-person {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.cp-ps-person:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.cp-ps-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.cp-ps-avatar--blue { background: #e8f0ff; color: #0060F0; }
.cp-ps-avatar--violet { background: #f0e9ff; color: #7c3aed; }
.cp-ps-avatar--teal { background: #dff7f3; color: #0f766e; }
.cp-ps-avatar--amber { background: #fff4df; color: #b45309; }
.cp-ps-avatar--rose { background: #ffe8ef; color: #be123c; }

.cp-ps-person-main {
  min-width: 0;
}

.cp-ps-person-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cp-ps-person-name b {
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 700;
}

.cp-ps-you {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.cp-ps-person-main small {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cp-ps-since {
  color: #94a3b8 !important;
}

.cp-ps-revoke {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

.cp-ps-revoke:hover {
  text-decoration: underline;
}

.cp-ps-share {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.cp-ps-access .cp-pa-badge {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .cp-ps--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cp-ps-card {
    padding: 18px 16px;
  }

  .cp-ps-fields--2 {
    grid-template-columns: 1fr;
  }

  .cp-ps-actions {
    justify-content: stretch;
  }

  .cp-ps-actions .ac-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cp-ps-person {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .cp-ps-person .cp-pa-badge,
  .cp-ps-person .cp-ps-revoke {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

/* Shared points: access panel, invite codes, join forms */
.cp-pa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cp-pa-note,
.cp-pa-muted {
  color: var(--cp-text);
  font-size: 13px;
  line-height: 1.45;
}

.cp-pa-note {
  margin: 0 0 14px;
}

.cp-pa-muted {
  display: block;
  margin: 0;
}

.cp-pa-invites {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.cp-pa-invite {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  background: #f5f8ff;
}

.cp-pa-invite-main {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.cp-pa-label {
  color: var(--cp-text);
  font-size: 12px;
  font-weight: 600;
}

.cp-pa-code-row,
.cp-pa-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-pa-code {
  padding: 4px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe3ef;
  color: var(--cp-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .18em;
}

.cp-pa-link-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: var(--cp-ink);
  font-size: 13px;
}

.cp-pa-code-row .ac-btn,
.cp-pa-link-row .ac-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.cp-pa-sub {
  margin: 4px 0 8px;
  color: var(--cp-ink);
  font-size: 14px;
  font-weight: 700;
}

.cp-pa-people {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.cp-pa-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.cp-pa-person:last-child {
  border-bottom: 0;
}

.cp-pa-person b {
  color: var(--cp-ink);
  font-size: 14px;
}

.cp-pa-person small {
  display: block;
  color: var(--cp-text);
  font-size: 12px;
}

.cp-pa-badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e0e9ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
}

.cp-pa-badge--soft {
  background: #f1f5f9;
  color: #475569;
}

.cp-pa-leave {
  margin-top: 12px;
}

.cp-pa-err {
  margin: 10px 0 0;
  color: #dc2626;
  font-size: 13px;
}

.cp-pa-joinform {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-pa-joinform input,
.cp-gate-join input {
  flex: 1 1 180px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  color: var(--cp-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cp-pa-joinform .cp-pa-err {
  flex-basis: 100%;
  margin-top: 2px;
}

.cp-gate-join {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.cp-gate-join p {
  margin: 0 0 8px;
  color: var(--cp-text);
  font-size: 13px;
}

.cp-gate-join-row {
  display: flex;
  gap: 8px;
}

.cp-gate-join-row .cp-gate-btn {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.cp-chip-shared {
  background: #e0e9ff;
  color: #1d4ed8;
}

.cp-point-join-page {
  display: flex;
  justify-content: center;
  padding: 48px 12px 72px;
}

.cp-pj-card {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px;
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.cp-pj-ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #e0e9ff;
  color: #1d4ed8;
  font-size: 22px;
}

.cp-pj-card h1 {
  margin: 0 0 10px;
  color: var(--cp-ink);
  font-size: 20px;
  font-weight: 700;
}

.cp-pj-point {
  margin: 0 0 4px;
  color: var(--cp-ink);
  font-size: 18px;
  font-weight: 700;
}

.cp-pj-owner,
.cp-pj-muted,
.cp-pj-card > p {
  color: var(--cp-text);
  font-size: 14px;
}

.cp-pj-muted {
  margin-bottom: 20px;
  font-size: 13px;
}

.cp-pj-card .ac-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .cp-pa-invite {
    flex-direction: column;
  }

  .cp-pa-link-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cp-pa-code {
    font-size: 18px;
  }
}

/* Matrix quick fill */
.mxp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.mxp-total {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.mxp-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.mxp-open-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

html.mxp-lock,
html.mxp-lock body {
  overflow: hidden;
}

.mxp {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 29, 58, 0.55);
}

.mxp-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 16px;
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 29, 58, 0.25);
}

.mxp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mxp-top b {
  display: block;
  color: #071D3A;
  font-size: 18px;
}

.mxp-top small {
  color: #64748b;
  font-size: 13px;
}

.mxp-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #071D3A;
  font-size: 18px;
}

.mxp-bar {
  height: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.mxp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0060F0;
  transition: width 0.2s;
}

.mxp-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: min(42vh, 340px);
  height: min(42dvh, 340px);
  color: #cbd5e1;
  font-size: 56px;
}

.mxp-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mxp-state {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.mxp-state--add { background: #dcfce7; color: #166534; }
.mxp-state--skip { background: #fee2e2; color: #b91c1c; }

.mxp-info {
  margin-top: 10px;
}

.mxp-title {
  margin: 0;
  color: #071D3A;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.mxp-title span {
  color: #0060F0;
}

.mxp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
}

.mxp-meta span {
  display: flex;
  flex-direction: column;
}

.mxp-meta small {
  color: #94a3b8;
  font-size: 11px;
}

.mxp-meta b {
  color: #071D3A;
  font-size: 13px;
}

.mxp-out {
  margin: 8px 0 0;
  color: #b45309;
  font-size: 13px;
}

.mxp-link {
  display: inline-block;
  margin-top: 8px;
  color: #0060F0;
  font-size: 13px;
}

.mxp-foot {
  margin-top: 12px;
}

.mxp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
}

.mxp-nav b {
  color: #071D3A;
}

.mxp-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #071D3A;
}

.mxp-nav-btn:disabled {
  opacity: 0.35;
}

.mxp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mxp-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: 18px;
}

.mxp-act i {
  font-size: 22px;
}

.mxp-act strong {
  font-size: 16px;
}

.mxp-act--skip { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.mxp-act--add { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.mxp-act--skip.is-on { border-color: #b91c1c; }
.mxp-act--add.is-on { border-color: #166534; }
.mxp-act:active { transform: scale(0.98); }
.mxp-act:disabled { opacity: 0.4; }

.mxp-keys {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.mxp-keys kbd {
  padding: 1px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
}

.mxp-loading,
.mxp-muted {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.mxp-loading {
  padding: 40px 0;
  text-align: center;
}

.mxp-err {
  margin: 10px 0 0;
  color: #b91c1c;
  font-size: 13px;
}

.mxp-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  text-align: center;
}

.mxp-done-icon {
  color: #16a34a;
  font-size: 44px;
}

.mxp-done-title {
  margin: 0;
  color: #071D3A;
  font-size: 20px;
  font-weight: 700;
}

.mxp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.mxp-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 6px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
}

.mxp-stat b {
  color: #071D3A;
  font-size: 20px;
}

.mxp-stat--add { background: #f0fdf4; }
.mxp-stat--skip { background: #fef2f2; }

.mxp-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.mxp-reset {
  border: 0;
  background: none;
  color: #0060F0;
  font-size: 13px;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .mxp-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mxp-open {
    justify-content: center;
  }

  .mxp-keys {
    display: none;
  }
}

@media (max-width: 600px) {
  .mxp {
    padding: 0;
  }

  .mxp-box {
    max-width: none;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .mxp-photo {
    flex: 1 1 auto;
    height: auto;
    min-height: 160px;
  }
}

/* Matrix quick fill: swipe card */
.mxp-swipe {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  touch-action: pan-y;
  will-change: transform;
}

.mxp-stamp {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 4px 14px;
  border: 3px solid currentColor;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
}

.mxp-stamp--add { left: 14px; color: #16a34a; transform: rotate(-12deg); }
.mxp-stamp--skip { right: 14px; color: #dc2626; transform: rotate(12deg); }

.mxp-swipe-hint {
  display: none;
  justify-content: space-between;
  margin: 10px 2px 0;
  color: #94a3b8;
  font-size: 12px;
}

.mxp-swipe-hint span:first-child { color: #dc2626; }
.mxp-swipe-hint span:last-child { color: #16a34a; }

@media (max-width: 900px) {
  .mxp-swipe-hint {
    display: flex;
  }
}

@media (max-width: 600px) {
  .mxp-box {
    overflow-x: hidden;
  }

  .mxp-swipe {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* Matrix quick fill: mobile shows only photo + name, whole screen is the swipe area */
.mxp-top-nav {
  display: none;
}

@media (max-width: 900px) {
  .mxp {
    padding: 0;
  }

  .mxp-box {
    max-width: none;
    height: 100%;
    max-height: none;
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
    overflow: hidden;
    border-radius: 0;
  }

  .mxp-top {
    align-items: center;
    margin-bottom: 8px;
  }

  .mxp-top > div:first-child {
    display: none;
  }

  .mxp-top-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
  }

  .mxp-top-nav b {
    color: #071D3A;
  }

  .mxp-top-nav .mxp-close:disabled {
    opacity: 0.35;
  }

  .mxp-meta,
  .mxp-out,
  .mxp-link,
  .mxp-foot {
    display: none;
  }

  .mxp-swipe {
    flex: 1 1 auto;
    min-height: 0;
  }

  .mxp-photo {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .mxp-info {
    margin-top: 0;
    padding: 12px 6px 4px;
  }

  .mxp-title {
    font-size: 20px;
    text-align: center;
  }
}

.mxp-box,
.mxp-box * {
  box-sizing: border-box;
}

/* Matrix quick fill: arrows around the product name (mobile only) */
.mxp-name-nav {
  display: none;
}

@media (max-width: 900px) {
  .mxp-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mxp-name-row .mxp-title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mxp-name-nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #071D3A;
    font-size: 16px;
  }

  .mxp-name-nav:disabled {
    opacity: 0.3;
  }
}

/* «Добавить адрес» modal: create a point or join by code */
[data-cp-gate-panel="add"] .cp-gate-btn i {
  margin-right: 8px;
}

.cp-gate-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: #94a3b8;
  font-size: 13px;
}

.cp-gate-or::before,
.cp-gate-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #eef2f7;
}

.cp-gate-join--add {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 480px) {
  .cp-gate-join--add .cp-gate-join-row {
    flex-direction: column;
  }

  .cp-gate-join--add .cp-gate-join-row .cp-gate-btn {
    width: 100%;
  }
}

/* Profile → «Адреса» */
.ac-addr-pagehead .ac-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ac-addr-group {
  margin-bottom: 28px;
}

.ac-addr-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #071D3A;
  font-size: 18px;
  font-weight: 650;
}

.ac-addr-group-title span {
  min-width: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.ac-addr-del {
  padding: 0;
  border: 0;
  background: none;
  color: #dc2626;
  cursor: pointer;
}

.ac-addr-del:hover {
  color: #b91c1c;
}

.ac-addr--trash {
  border-style: dashed;
  background: #fafbfc;
}

.ac-addr--trash .ac-addr-body p {
  color: #64748b;
}

.ac-chip--trash {
  background: #fff7ed;
  color: #c2410c;
}

.ac-addr-join {
  margin-top: 8px;
}

.ac-alert--err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

#ac-del .cp-gate-btn {
  gap: 8px;
}

#ac-del .cp-gate-btn + .ac-del-hint {
  margin: 6px 2px 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

#ac-del .ac-del-now {
  background: #dc2626;
}

#ac-del .ac-del-now:hover {
  background: #b91c1c;
}

.ac-del-name {
  margin: -4px 0 16px;
  color: #071D3A;
  font-weight: 600;
}

@media (max-width: 700px) {
  .ac-addr-pagehead {
    flex-direction: column;
    align-items: stretch;
  }

  .ac-addr-pagehead .ac-btn {
    justify-content: center;
  }
}

/* Point settings: read-only until «Редактировать» */
.ac-form--locked .ac-field input,
.ac-form--locked .ac-field textarea {
  border-color: #eef2f7;
  background: #f7f9fc;
  color: #071D3A;
  cursor: default;
  box-shadow: none;
}

.ac-form--locked .ac-field input:focus,
.ac-form--locked .ac-field textarea:focus {
  border-color: #eef2f7;
  outline: none;
  box-shadow: none;
}

.ac-form--locked .ac-field textarea {
  resize: none;
}

.ac-form--locked .ac-field input::placeholder,
.ac-form--locked .ac-field textarea::placeholder {
  color: transparent;
}

.ac-form--locked .cp-ps-input-ico > i {
  color: #cbd5e1;
}

.ac-actions button.ac-textlink {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

/* Orders list: compact mobile header */
@media (max-width: 700px) {
  .ord {
    gap: 10px;
  }

  .ord-head {
    flex-wrap: nowrap;
  }

  .ord-head h1 {
    font-size: 22px;
  }

  .ord-create {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    gap: 6px;
  }

  .ord-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    margin-right: 0;
    padding-right: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ord-tabs::-webkit-scrollbar {
    display: none;
  }

  .ord-tab {
    flex: 0 0 auto;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .ord-tab-n {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
  }

  .ord-sort {
    gap: 12px;
    font-size: 12px;
  }

  .ord-sort > span {
    display: none;
  }
}

/* Inventory: no double-tap / focus zoom on iOS */
html:has(#inv-app),
html:has(#inv-app) body,
#inv-app,
#inv-app * {
  touch-action: manipulation;
}

@media (max-width: 900px) {
  #inv-app input,
  #inv-app textarea,
  #inv-app select {
    font-size: 16px !important;
  }
}

/* Matrix quick fill: start menu */
.mxp-menu-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #eaf1ff;
  color: #2563eb;
  font-size: 24px;
}

.mxp-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
}

.mxp-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: #071D3A;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.mxp-menu-btn:hover {
  border-color: #bfd3fb;
  background: #f8fbff;
}

.mxp-menu-btn span {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mxp-menu-btn b {
  font-size: 16px;
  font-weight: 700;
}

.mxp-menu-btn small {
  color: #64748b;
  font-size: 13px;
}

.mxp-menu-btn em {
  flex: 0 0 auto;
  min-width: 32px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.mxp-menu-btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.mxp-menu-btn--primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.mxp-menu-btn--primary small {
  color: rgba(255, 255, 255, 0.82);
}

.mxp-menu-btn--primary em {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.mxp-done-actions {
  flex-wrap: wrap;
}

/* Hidden products: card action instead of prices */
.cp-unhide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #bfd3fb;
  border-radius: 10px;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.cp-unhide:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.cp-unhide:disabled {
  opacity: 0.6;
  cursor: default;
}

.hid-cards .cp-media img {
  opacity: 0.75;
}

/* Top bar: «Точки» next to the delivery address */
.cp-link-points {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #071D3A;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.cp-link-points:hover {
  color: #0060F0;
  background: #f3f7ff;
}

@media (max-width: 899px) {
  .cp-link-points {
    display: none;
  }
}

/* Header: phone next to the burger, «Точки» icon next to the address (mobile) */
.cp-link-points i {
  display: none;
}

@media (max-width: 899px) {
  header.cp-top {
    grid-template-columns: 44px 44px 1fr 44px 44px;
    grid-template-areas:
      "burger contact . search cart"
      "addr addr addr addr addr";
  }

  header.cp-top.is-search {
    grid-template-areas:
      "burger contact . search cart"
      "addr addr addr addr addr"
      "field field field field field";
  }

  header.cp-top > .cp-head-contact {
    grid-area: contact;
    position: static;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: transparent;
    font-size: 18px;
    transform: none;
  }

  header.cp-top > .cp-head-contact .cp-head-contact-btn {
    height: 44px;
    font-size: 18px;
  }

  header.cp-top .cp-link-points {
    position: absolute;
    top: 50%;
    right: 3px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
    background: #eef2f7;
    color: #071D3A;
    font-size: 16px;
    transform: translateY(-50%);
  }

  header.cp-top .cp-link-points i {
    display: inline;
  }

  header.cp-top .cp-link-points span {
    display: none;
  }

  header.cp-top .cp-link-points:hover,
  header.cp-top .cp-link-points:active {
    background: #e8edf3;
    color: #071D3A;
  }
}

/* Matrix: lazy pages of cards */
.mx-more {
  display: flex;
  justify-content: center;
  margin: 20px 0 8px;
}

/* Cabinet mobile: side padding 10px (was stuck at 28px via body.ac-body) */
@media (max-width: 900px) {
  body.ac-body main > .container,
  .ac-body main > .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* cp-order-pick-status */
.ord-pick-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.ord-pick-badge--none {
  background: #fef2f2;
  color: #b91c1c;
}
.ord-pick-badge--partial {
  background: #fffbeb;
  color: #b45309;
}
.ord-pick-badge--ok {
  background: #ecfdf5;
  color: #15803d;
}
.ord-info-item--none {
  opacity: 0.92;
}
.ord-info-item--none .ord-info-item-name {
  color: #64748b;
}
.ord-info-item--none .ord-info-item-sum b {
  color: #b91c1c;
}

.ord-info-item-sum--none { color: #b91c1c !important; }
.ord-info-item-sum-note {
  display: block;
  margin-top: 2px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
}
.ord-pick-badge {
  display: inline-block !important;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}


/* Checkout payment / confirm reliability */
#checkout-checkout .ac-pay-hint {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
#checkout-checkout .ac-confirm-wait {
  margin-top: 8px;
}
#checkout-checkout .ac-confirm-wait .ac-ship-error {
  margin: 0 0 12px;
}
#checkout-checkout .ac-pay-confirm-lead {
  margin: 0 0 10px;
  color: #071D3A;
  font-size: 14px;
}
#checkout-checkout .ac-pay-confirm-box {
  background: #f8fafc;
}
#checkout-checkout .ac-btn--primary:disabled,
#checkout-checkout #button-confirm:disabled,
#checkout-checkout .ac-actions .ac-btn--primary[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.15);
}
#checkout-checkout [data-ac-pay-retry] {
  margin-left: 8px;
  vertical-align: middle;
}

/* TBD price label */
.cp-band-price--pending,
.cp-buy-total-sum.cp-band-price--pending,
.ac-cart-unit--pending,
.ac-cart-price--pending b {
  color: #64748b;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cp-band-price--pending {
  font-size: 13px;
}

/* gate wholesale upgrade */
.cp-gate-upgrade-hint {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

/* Double-click on +/− must not select the glyph or the counter text. */
.cp-stepper,
.cp-step,
.cp-plus,
.cp-band,
.cp-buy-row,
.cp-buy-plus,
.cp-buy-minus,
.inv-step {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cp-stepper input,
.cp-buy-row input,
.inv-step input {
  -webkit-user-select: text;
  user-select: text;
}

.ac-hub-row.is-empty {
  display: none !important;
}

.ord-info-total--part b {
  font-weight: 500;
}

.ord-info-item .ord-pick-badge {
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

.ord-info-item:has(.ord-pick-badge) {
  align-items: center;
}

.ord-info-item:has(.ord-pick-badge) .ord-info-item-main {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.ord-info-item:has(.ord-pick-badge) .ord-info-item-name {
  flex-shrink: 0;
}

.ord-info-item:has(.ord-pick-badge) .ord-info-item-thumb {
  width: 48px;
  height: 48px;
  min-height: 0;
}

.ord-info-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.ord-info-missing-btn {
  flex: 1 1 260px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.ord-info-missing-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.ord-info-missing-btn--primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.ord-info-missing-btn--primary:hover {
  background: #1f2937;
  color: #fff;
}

.ac-chip--debt {
  background: #fef2f2;
  color: #b91c1c;
}

.ac-debt-total {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
}

.ac-debt-total > i {
  font-size: 18px;
}

.ac-debt-total b {
  display: block;
  font-size: 15px;
}

.ac-debt-total small {
  display: block;
  margin-top: 2px;
  color: #b91c1c;
  font-size: 12px;
}

.ac-side-debt {
  display: block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.ac-side-debt:hover {
  color: #991b1b;
}

.ac-side-manager {
  margin: 10px 0 12px;
  padding: 2px 2px 0;
  border: 0;
  background: transparent;
}

.ac-side-manager-kicker {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ac-side-manager-name {
  display: block;
  overflow: hidden;
  color: #071D3A;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-side-manager-phone {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

a.ac-side-manager-phone:hover {
  color: #071D3A;
}

.ac-side-manager-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.ac-side-manager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}

.ac-side-manager-link.is-wa {
  background: #ecfdf5;
  color: #059669;
}

.ac-side-manager-link.is-wa:hover {
  background: #d1fae5;
  color: #047857;
}

.ac-side-manager-link.is-tg {
  background: #eff6ff;
  color: #2563eb;
}

.ac-side-manager-link.is-tg:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.ac-side-manager-link.is-max {
  background: #f5f3ff;
  color: #7c3aed;
}

.ac-side-manager-link.is-max:hover {
  background: #ede9fe;
  color: #5b21b6;
}

.ac-side-manager-link.is-phone {
  background: #f1f5f9;
  color: #334155;
}

.ac-side-manager-link.is-phone:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ac-addr-locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
}

/* ---------- Product page: space between title and price bands ---------- */
.cp-page .cp-detail-title + .cp-detail-offers,
.cp-page .cp-detail-sku + .cp-detail-offers {
  margin-top: 24px;
}
@media (max-width: 767px) {
  .cp-page .cp-detail-title + .cp-detail-offers,
  .cp-page .cp-detail-sku + .cp-detail-offers {
    margin-top: 18px;
  }
}

/* ---------- Contacts / About Us ---------- */
.cp-contact,
.cp-info {
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(255, 196, 120, 0.28), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(255, 120, 150, 0.12), transparent 55%),
    linear-gradient(180deg, #fffaf4 0%, #fff 42%, #faf7f2 100%);
  padding: 28px 16px 64px;
}
.cp-contact-inner,
.cp-info-inner {
  max-width: 920px;
  margin: 0 auto;
}
.cp-contact-eyebrow,
.cp-info-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a16207;
  font-weight: 700;
}
.cp-contact h1,
.cp-info h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  color: #1c1917;
  font-weight: 800;
}
.cp-contact-lead {
  margin: 0 0 28px;
  color: #57534e;
  font-size: 16px;
  max-width: 52ch;
}
.cp-contact-lead a,
.cp-info-more a {
  color: #b45309;
  font-weight: 600;
  text-decoration: none;
}
.cp-contact-lead a:hover,
.cp-info-more a:hover {
  text-decoration: underline;
}
.cp-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .cp-contact-grid {
    grid-template-columns: 1fr;
  }
}
.cp-contact-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}
.cp-contact-card h2 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
  font-weight: 700;
}
.cp-contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(28, 25, 23, 0.06);
}
.cp-contact-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.cp-contact-k {
  color: #a8a29e;
  font-size: 13px;
  font-weight: 600;
}
.cp-contact-v {
  color: #1c1917;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.cp-contact-v a {
  color: inherit;
  text-decoration: none;
}
.cp-contact-v a:hover {
  color: #b45309;
}
.cp-contact-map {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1c1917;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.cp-contact-map:hover {
  background: #44403c;
}
.cp-contact-phones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-contact-phones li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cp-contact-phones a {
  color: #1c1917;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.cp-contact-phones a:hover {
  color: #b45309;
}
.cp-contact-phones span {
  color: #78716c;
  font-size: 13px;
  font-weight: 600;
}
.cp-contact-empty {
  margin: 0;
  color: #78716c;
}
.cp-contact-form-wrap {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}
.cp-contact-form-wrap h2 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #1c1917;
}
.cp-contact-form {
  display: grid;
  gap: 12px;
}
.cp-contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #57534e;
}
.cp-contact-form input,
.cp-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: #1c1917;
  background: #fff;
}
.cp-contact-form input:focus,
.cp-contact-form textarea:focus {
  outline: 2px solid rgba(180, 83, 9, 0.35);
  border-color: #b45309;
}
.cp-contact-submit {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #b45309;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.cp-contact-submit:hover {
  background: #92400e;
}
.cp-info-body {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
  color: #292524;
  font-size: 15px;
  line-height: 1.6;
}
.cp-info-body h2,
.cp-info-body h3 {
  color: #1c1917;
  margin-top: 1.2em;
}
.cp-info-body h2:first-child,
.cp-info-body h3:first-child {
  margin-top: 0;
}
.cp-info-body ul {
  padding-left: 1.1em;
}
.cp-info-body--about {
  margin-top: 18px;
}
.cp-info-body--about .cp-seller-facts {
  display: none;
}
.cp-info-lead {
  margin: 0 0 22px;
  max-width: 52rem;
  color: #57534e;
  font-size: 16px;
  line-height: 1.55;
}
.cp-steps-info {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.cp-steps-info > li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px 16px;
  align-items: start;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}
.cp-steps-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #071D3A;
  color: #fff;
  font-family: "CP Oswald", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cp-steps-info h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #071D3A;
}
.cp-steps-info p {
  margin: 0 0 8px;
  color: #44403c;
  font-size: 14px;
  line-height: 1.55;
}
.cp-steps-info p:last-child {
  margin-bottom: 0;
}
.cp-steps-info a {
  color: #0047C2;
  font-weight: 600;
  text-decoration: none;
}
.cp-steps-info a:hover {
  text-decoration: underline;
}
.cp-info-more {
  margin: 18px 0 0;
}
@media (max-width: 700px) {
  .cp-steps-info > li {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }
  .cp-steps-n {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
}

/* ===== Cart aside fields: mobile hard fix (grid, fixed height) ===== */
@media (max-width: 899px) {
  #checkout-cart .ac-cart-promo-form,
  #shopping-cart .ac-cart-promo-form,
  .ac-cart-aside .ac-cart-promo-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: stretch;
    width: 100% !important;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #E5EAF0 !important;
    border-radius: 12px !important;
    background: #f3f5f8 !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  #checkout-cart .ac-cart-promo-input,
  #shopping-cart .ac-cart-promo-input,
  .ac-cart-aside .ac-cart-promo-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 16px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  #checkout-cart .ac-cart-promo-go,
  #shopping-cart .ac-cart-promo-go,
  .ac-cart-aside .ac-cart-promo-go {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  #checkout-cart .ac-cart-comment-input,
  #shopping-cart .ac-cart-comment-input,
  .ac-cart-aside .ac-cart-comment-input {
    width: 100% !important;
    min-height: 88px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #E5EAF0 !important;
    border-radius: 12px !important;
    background: #f3f5f8 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    resize: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  #checkout-cart .ac-cart-share-row,
  #shopping-cart .ac-cart-share-row,
  .ac-cart-aside .ac-cart-share-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0;
    padding: 0;
    border: 1px solid #E5EAF0 !important;
    border-radius: 12px !important;
    background: #f3f5f8 !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  #checkout-cart .ac-cart-share-input,
  #shopping-cart .ac-cart-share-input,
  .ac-cart-aside .ac-cart-share-input {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 44px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  #checkout-cart .ac-cart-share-copy,
  #shopping-cart .ac-cart-share-copy,
  .ac-cart-aside .ac-cart-share-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-left: 1px solid #E5EAF0 !important;
    border-radius: 0 !important;
    background: #071D3A !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
}

/* Stock wait — notify on restock */
.cp-wait-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #D7DEE8;
  border-radius: 12px;
  background: #F8FAFC;
  color: #071D3A;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  text-align: center;
}
.cp-wait-btn i { color: #0060F0; }
.cp-wait-btn.is-on {
  background: #EEF5FF;
  border-color: #B7D0FF;
}
.cp-wait-btn--detail {
  margin-top: 10px;
  max-width: 360px;
}
.cp-wait-btn:disabled { opacity: 0.6; cursor: wait; }

.ac-wait-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.ac-wait-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #475569;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}
.ac-wait-tab.is-active {
  background: #0060F0;
  color: #fff;
}
.ac-wait-tab em {
  font-style: normal;
  background: rgba(255,255,255,0.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
}
.ac-wait-tab:not(.is-active) em {
  background: #E2E8F0;
  color: #334155;
}
.ac-wait-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ac-wait-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #E5EAF0;
  border-radius: 14px;
  background: #fff;
}
.ac-wait-media img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #F8FAFC;
}
.ac-wait-title {
  display: block;
  color: #071D3A;
  font-weight: 650;
  text-decoration: none !important;
  margin-bottom: 4px;
}
.ac-wait-sku,
.ac-wait-date {
  display: block;
  color: #64748b;
  font-size: 12px;
}
.ac-wait-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #FEE2E2;
  color: #B91C1C;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cp-wait-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 29, 58, 0.45);
}
.cp-wait-popup-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 29, 58, 0.28);
  text-align: center;
}
.cp-wait-popup-x {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
}
.cp-wait-popup-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #EEF5FF;
  color: #0060F0;
  font-size: 22px;
}
.cp-wait-popup-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #071D3A;
}
.cp-wait-popup-card p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}
.cp-wait-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-wait-popup-go {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  background: #0060F0;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
.cp-wait-popup-later {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.cp-idea-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  padding: 6px 0 10px;
  border-radius: 0;
  background: var(--cp-navy);
  color: #fff;
  box-shadow: -2px 2px 12px rgba(7, 29, 58, 0.22);
  transform: translateY(-50%);
}

.cp-idea[hidden] {
  display: none;
}

.cp-idea-hide,
.cp-idea-open {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.cp-idea-hide {
  width: 28px;
  height: 22px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.cp-idea-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 0 2px;
}

.cp-idea-open span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.cp-idea-open i {
  font-size: 16px;
}

body.cp-idea-on {
  overflow: hidden;
}

.cp-idea-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.cp-idea-modal[hidden] {
  display: none !important;
}

.cp-idea-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 28, 0.45);
}

.cp-idea-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 28px 28px 22px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 18, 28, 0.22);
}

.cp-idea-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cp-idea-card h2 {
  margin: 0 36px 6px 0;
  color: #111;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cp-idea-card > p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 15px;
}

.cp-idea-card textarea {
  display: block;
  width: 100%;
  min-height: 190px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #f3f4f8;
  color: #111;
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.cp-idea-card textarea:focus {
  outline: 2px solid #bedfff;
}

.cp-idea-err {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 14px;
}

.cp-idea-card button[type="submit"] {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: var(--cp-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  cursor: pointer;
}

.cp-idea-card button[type="submit"]:hover {
  background: var(--cp-primary-hover);
}

.cp-idea-card button[type="submit"]:disabled,
.cp-idea-card button[type="submit"]:disabled:hover {
  background: var(--cp-primary);
  opacity: 0.7;
  cursor: progress;
}

.cp-idea-card.is-thanks h2,
.cp-idea-card.is-thanks .cp-idea-lead {
  display: none;
}

.cp-idea-card.is-thanks .cp-idea-ok {
  margin: 8px 28px 18px 0;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

@media (max-width: 899px) {
  .cp-idea-card {
    padding: 22px 16px 16px;
  }

  .cp-idea-card h2 {
    font-size: 22px;
  }
}


/* «Кабинет адреса»: icon-only button on desktop (same as mobile) + one-off hint */
@media (min-width: 900px) {
  .cp-link-points {
    position: relative;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    border-radius: 12px;
    background: #eef2f7;
    font-size: 16px;
  }

  .cp-link-points i {
    display: inline;
  }

  .cp-link-points span {
    display: none;
  }

  .cp-link-points:hover {
    background: #e2e9f2;
    color: #0060F0;
  }
}

.cp-points-tip {
  position: absolute;
  top: calc(100% + 12px);
  right: -4px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 12px;
  background: #071D3A;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(7, 29, 58, 0.25);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.cp-points-tip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #071D3A;
  transform: rotate(45deg);
}

.cp-points-tip.is-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .cp-points-tip {
    transition: none;
    transform: none;
  }
}

.cp-points-tip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-points-tip[hidden] {
  display: none;
}

.cp-points-tip.is-on {
  pointer-events: auto;
}

.cp-points-tip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: -2px -6px -2px 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cp-points-tip-x:hover,
.cp-points-tip-x:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

/* Public demand ranking — «Сейчас в топе» */
.cp-top-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.cp-top-period {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #E5EAF0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cp-top-period:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.cp-top-period.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.cp-top-note {
  margin: -6px 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.cp-top-movers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.cp-top-mover {
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.cp-top-mover h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.cp-top-mover ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cp-top-mover a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.cp-top-mover a:hover {
  background: #f8fafc;
}

.cp-top-mover-place {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.cp-top-mover-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}

.cp-top-mover-delta {
  font-size: 12px;
  font-weight: 700;
}

.cp-top-mover-delta.is-up,
.cp-newtag--up {
  color: #15803d;
}

.cp-top-mover-delta.is-down,
.cp-newtag--down {
  color: #b91c1c;
}

.cp-newtag--new {
  color: #1d4ed8;
}

.cp-newtag--rank {
  max-width: calc(100% - 12px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-rank-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.cp-rank-badge.is-up {
  background: rgba(21, 128, 61, 0.92);
}

.cp-rank-badge.is-down {
  background: rgba(185, 28, 28, 0.92);
}

.cp-rank-badge.is-new {
  background: rgba(29, 78, 216, 0.92);
}

.cp-rank-meta {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.cp-rank-meta.is-up {
  color: #15803d;
}

.cp-rank-meta.is-down {
  color: #b91c1c;
}

.cp-rank-meta.is-new {
  color: #1d4ed8;
}

#cp-top-product-list.cp-top-list,
.cp-top-list {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  width: 100%;
}

#cp-top-product-list > .cp-top-row,
.cp-top-list > .cp-top-row,
.cp-top-row {
  display: grid !important;
  grid-template-columns: 56px 72px minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 10px 12px;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #E5EAF0;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.cp-top-row.is-out {
  background: #fafafa;
}

.cp-top-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.cp-top-rank-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.cp-top-rank-delta {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.cp-top-rank-delta.is-up {
  color: #15803d;
}

.cp-top-rank-delta.is-down {
  color: #b91c1c;
}

.cp-top-rank-delta.is-new {
  color: #1d4ed8;
}

.cp-top-rank-delta.is-same {
  color: #94a3b8;
}

.cp-top-photo {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid #E5EAF0;
  background: #fff;
  overflow: hidden;
  flex: 0 0 auto;
}

.cp-top-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}

.cp-top-photo-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: #f8fafc;
}

.cp-top-oos {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.cp-top-info {
  min-width: 0;
}

.cp-top-info-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cp-top-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.cp-top-title a {
  color: inherit;
  text-decoration: none;
}

.cp-top-brand {
  color: #2563eb;
}

.cp-top-row .cp-top-fav.cp-fav {
  position: static;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
}

.cp-top-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
}

.cp-top-ordered {
  font-weight: 700;
}

.cp-top-ordered.is-yes {
  color: #15803d;
}

.cp-top-ordered.is-no {
  color: #b45309;
}

.cp-top-buy {
  min-width: 0;
}

.cp-top-offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

/* Keep «Упаковка» in the right slot even when «Поштучно» is missing */
.cp-top-offers .cp-band--piece {
  grid-column: 1;
}

.cp-top-offers .cp-band--pack {
  grid-column: 2;
}

.cp-top-row .cp-band {
  margin: 0;
  min-width: 0;
}

.cp-top-row .cp-wait-btn {
  width: 100%;
}

@media (max-width: 1100px) {
  #cp-top-product-list > .cp-top-row,
  .cp-top-list > .cp-top-row,
  .cp-top-row {
    grid-template-columns: 48px 64px minmax(0, 1fr) minmax(240px, 0.9fr);
  }
}

@media (max-width: 820px) {
  #cp-top-product-list > .cp-top-row,
  .cp-top-list > .cp-top-row,
  .cp-top-row {
    grid-template-columns: 44px 56px minmax(0, 1fr);
  }

  .cp-top-photo {
    width: 56px;
    height: 56px;
  }

  .cp-top-buy {
    grid-column: 1 / -1;
  }

  .cp-top-offers {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .cp-top-offers {
    grid-template-columns: 1fr;
  }

  .cp-top-offers .cp-band--piece,
  .cp-top-offers .cp-band--pack {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .cp-top-movers {
    grid-template-columns: 1fr;
  }
}
