/* ARGENT · корзина и оформление заказа: светлая шторка справа, 3 шага (Корзина → Контакты → Доставка) */
html body #argent-root #argent-cart.ac {
  --ac-ink: #0e0e0f;
  --ac-mute: #77787c;
  --ac-line: #e3e3e0;
  --ac-soft: #f1f1ef;
  --ac-bg: #fafaf8;
  --ac-err: #a3342c;
  --ac-ok: #2f6b3a;
  width: min(480px, 100vw);
  background: var(--ac-bg);
  color: var(--ac-ink);
  border-left: 0;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
  font-stretch: 100%;
  color-scheme: light;
}
html body #argent-root #argent-cart.ac ::selection {
  background: var(--ac-ink);
  color: var(--ac-bg);
}
html body #argent-root #argent-cart.ac .drawer__top {
  height: auto;
  min-height: var(--hdr, 60px);
  padding: 14px 24px 0;
  align-items: flex-start;
}
html body #argent-root #argent-cart.ac .drawer__close {
  color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .drawer__close span::before,
html body #argent-root #argent-cart.ac .drawer__close span::after {
  background: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 22px;
  font-weight: 520;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-top: 8px;
}
html body #argent-root #argent-cart.ac .ac-title i {
  font-style: normal;
  font-size: 13px;
  font-weight: 450;
  color: var(--ac-mute);
  letter-spacing: 0;
}
html body #argent-root #argent-cart.ac .ac-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 14px 24px 16px;
  border-bottom: 1px solid var(--ac-line);
}
html body #argent-root #argent-cart.ac .ac-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ac-mute);
  padding-top: 10px;
  border-top: 2px solid var(--ac-line);
  transition:
    color 0.2s,
    border-color 0.3s;
}
html body #argent-root #argent-cart.ac .ac-steps li b {
  font-weight: 560;
  font-size: 11px;
}
html body #argent-root #argent-cart.ac .ac-steps li.is-on {
  color: var(--ac-ink);
  border-color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-steps li.is-done {
  color: var(--ac-ink);
  border-color: #9b9c9f;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .drawer__body {
  padding: 4px 24px 20px;
  overscroll-behavior: contain;
}
html body #argent-root #argent-cart.ac .drawer__foot {
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ac-line);
  background: var(--ac-bg);
}

/* --- шаг 1: позиции --- */
html body #argent-root #argent-cart.ac .ac-empty {
  padding: 48px 0 24px;
  text-align: center;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-empty p {
  margin: 0 0 18px;
  font-size: 15px;
}
html body #argent-root #argent-cart.ac .ac-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ac-line);
}
html body #argent-root #argent-cart.ac .ac-line__thumb {
  width: 72px;
  height: 72px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ac-soft);
}
html body #argent-root #argent-cart.ac .ac-line__thumb img,
html body #argent-root #argent-cart.ac .ac-line__thumb .tile {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html body #argent-root #argent-cart.ac .ac-line__name {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}
html body #argent-root #argent-cart.ac .ac-line__name a {
  color: inherit;
  text-decoration: none;
}
html body #argent-root #argent-cart.ac .ac-line__meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-line__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
html body #argent-root #argent-cart.ac .ac-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  height: 32px;
}
html body #argent-root #argent-cart.ac .ac-qty button {
  width: 32px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--ac-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}
html body #argent-root #argent-cart.ac .ac-qty button:disabled {
  color: #c4c4c1;
  cursor: default;
}
html body #argent-root #argent-cart.ac .ac-qty output {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
html body #argent-root #argent-cart.ac .ac-drop {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--ac-mute);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-drop:hover {
  color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-line__price {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
html body #argent-root #argent-cart.ac .ac-promo {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
html body #argent-root #argent-cart.ac .ac-promo .ac-input {
  flex: 1;
  text-transform: uppercase;
}
html body #argent-root #argent-cart.ac .ac-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-hint.is-ok {
  color: var(--ac-ok);
}
html body #argent-root #argent-cart.ac .ac-hint.is-bad {
  color: var(--ac-err);
}
html body #argent-root #argent-cart.ac .ac-kit {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--ac-soft);
  font-size: 13px;
  line-height: 1.45;
}
html body #argent-root #argent-cart.ac .ac-perks {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--ac-line);
}
html body #argent-root #argent-cart.ac .ac-perks div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
}
html body #argent-root #argent-cart.ac .ac-perks svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
html body #argent-root #argent-cart.ac .ac-perks small {
  display: block;
  color: var(--ac-mute);
  font-size: 12px;
}

/* --- поля --- */
html body #argent-root #argent-cart.ac .ac-sec {
  margin: 22px 0 12px;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-sec:first-child {
  margin-top: 14px;
}
html body #argent-root #argent-cart.ac .ac-field {
  position: relative;
  margin-bottom: 12px;
}
html body #argent-root #argent-cart.ac .ac-field label,
html body #argent-root #argent-cart.ac .ac-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--ac-line);
  border-radius: 2px;
  background: #fff;
  color: var(--ac-ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.ac-input {
  height: 84px;
  padding: 12px 14px;
  resize: vertical;
}
html body #argent-root #argent-cart.ac .ac-input:focus {
  border-color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-input::placeholder {
  color: #a3a4a7;
}
html body #argent-root #argent-cart.ac .ac-field.is-bad .ac-input {
  border-color: var(--ac-err);
}
html body #argent-root #argent-cart.ac .ac-err {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ac-err);
}
html body #argent-root #argent-cart.ac .ac-btn-sm {
  flex: none;
  height: 50px;
  padding: 0 18px;
  border: 1px solid var(--ac-ink);
  border-radius: 2px;
  background: var(--ac-ink);
  color: var(--ac-bg);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-btn-sm:disabled {
  opacity: 0.4;
  cursor: default;
}
html body #argent-root #argent-cart.ac .ac-suggest {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ac-line);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow: auto;
}
html body #argent-root #argent-cart.ac .ac-suggest li {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-suggest li small {
  display: block;
  color: var(--ac-mute);
  font-size: 12px;
}
html body #argent-root #argent-cart.ac .ac-suggest li[aria-selected="true"],
html body #argent-root #argent-cart.ac .ac-suggest li:hover {
  background: var(--ac-soft);
}

/* способ доставки */
html body #argent-root #argent-cart.ac .ac-modes {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
html body #argent-root #argent-cart.ac .ac-mode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--ac-line);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.2s;
}
html body #argent-root #argent-cart.ac .ac-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
html body #argent-root #argent-cart.ac .ac-mode::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1px solid #9b9c9f;
  border-radius: 50%;
}
html body #argent-root #argent-cart.ac .ac-mode:has(input:checked) {
  border-color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-mode:has(input:checked)::before {
  border: 5px solid var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-mode:has(input:focus-visible) {
  outline: 2px solid var(--ac-ink);
  outline-offset: 2px;
}
html body #argent-root #argent-cart.ac .ac-mode:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}
html body #argent-root #argent-cart.ac .ac-mode small {
  display: block;
  color: var(--ac-mute);
  font-size: 12px;
}
html body #argent-root #argent-cart.ac .ac-mode b {
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
html body #argent-root #argent-cart.ac .ac-points {
  max-height: 280px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--ac-line);
  background: #fff;
}
html body #argent-root #argent-cart.ac .ac-points li {
  border-bottom: 1px solid var(--ac-soft);
}
html body #argent-root #argent-cart.ac .ac-points label {
  display: block;
  padding: 10px 14px 10px 40px;
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ac-ink);
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-points input {
  position: absolute;
  left: 14px;
  top: 13px;
  accent-color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-points small {
  display: block;
  color: var(--ac-mute);
  font-size: 12px;
}
html body #argent-root #argent-cart.ac .ac-picked {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: var(--ac-soft);
  font-size: 14px;
  line-height: 1.4;
}
html body #argent-root #argent-cart.ac .ac-picked button {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 6px;
  font: inherit;
  font-size: 13px;
  color: var(--ac-mute);
  text-decoration: underline;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 8px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-check.is-bad {
  color: var(--ac-err);
}
html body #argent-root #argent-cart.ac .ac-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-note a,
html body #argent-root #argent-cart.ac .ac-check a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body #argent-root #argent-cart.ac .ac-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --- подвал --- */
html body #argent-root #argent-cart.ac .ac-sum {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
html body #argent-root #argent-cart.ac .ac-sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ac-mute);
}
html body #argent-root #argent-cart.ac .ac-sum .ac-total {
  margin-top: 6px;
  color: var(--ac-ink);
  font-size: 20px;
  font-weight: 520;
  font-stretch: 112%;
}
html body #argent-root #argent-cart.ac .ac-alert {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #f6e7e5;
  color: var(--ac-err);
  font-size: 13px;
  line-height: 1.45;
}
html body #argent-root #argent-cart.ac .ac-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 2px;
  background: var(--ac-ink);
  color: var(--ac-bg);
  font: inherit;
  font-size: 15px;
  font-weight: 480;
  font-stretch: 112%;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
html body #argent-root #argent-cart.ac .ac-next svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
html body #argent-root #argent-cart.ac .ac-next:disabled {
  opacity: 0.35;
  cursor: default;
}
html body #argent-root #argent-cart.ac .ac-next.is-busy {
  pointer-events: none;
  opacity: 0.6;
}
html body #argent-root #argent-cart.ac .ac-back {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 0 2px;
  border: 0;
  background: none;
  color: var(--ac-mute);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
html body #argent-root #argent-cart.ac .ac-back:hover {
  color: var(--ac-ink);
}
html body #argent-root #argent-cart.ac .ac-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ac-spin 0.7s linear infinite;
  vertical-align: -1px;
}
@keyframes ac-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html body #argent-root #argent-cart.ac .ac-spin {
    animation-duration: 2s;
  }
}
@media (max-width: 480px) {
  html body #argent-root #argent-cart.ac .drawer__body,
html body #argent-root #argent-cart.ac .ac-steps,
html body #argent-root #argent-cart.ac .drawer__foot,
html body #argent-root #argent-cart.ac .drawer__top {
    padding-left: 16px;
    padding-right: 16px;
  }
  html body #argent-root #argent-cart.ac .ac-line {
    grid-template-columns: 64px 1fr auto;
  }
  html body #argent-root #argent-cart.ac .ac-line__thumb {
    width: 64px;
    height: 64px;
  }
}

/* страница «Спасибо» */
#argent-root .thanks {
  min-height: 70vh;
  padding: calc(var(--hdr, 60px) + 48px) 0 80px;
}
#argent-root .thanks__box {
  max-width: 620px;
}
#argent-root .thanks__title {
  margin: 10px 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 480;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}
#argent-root .thanks__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--graphite);
}
#argent-root .thanks__list {
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}
#argent-root .thanks__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
#argent-root .thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
#argent-root .btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair);
}
