/* ====== Aquamarine · Checkout (Classic) — standalone styles ====== */

:root {
  --aq-cyan:        #3DD0E6;
  --aq-cyan-deep:   #28b9d0;
  --aq-cyan-soft:   #e6f9fc;
  --aq-cyan-border: #c6eff6;

  --aq-ink:         #0f1a24;
  --aq-ink-soft:    #2a3744;
  --aq-muted:       #7c8a96;
  --aq-muted-2:     #b6c2cd;

  --aq-line:        #e7ecf0;
  --aq-line-2:      #f1f4f7;
  --aq-bg:          #ffffff;
  --aq-bg-soft:     #f7f9fb;

  --aq-success:     #22a06b;
  --aq-warn:        #f0a000;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow-card: 0 1px 2px rgba(15,26,36,.04), 0 8px 24px rgba(15,26,36,.05);
  --shadow-cyan: 0 8px 20px rgba(61,208,230,.35);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #f4f6f8;
  font-family: var(--sans);
  color: var(--aq-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
}

.ap-root {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

.ap-root h1, .ap-root h2, .ap-root h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ============ TOP NAV ============ */
.ap-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--aq-line-2);
  background: #fff;
}
.ap-logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.06em;
  color: var(--aq-cyan);
}
.ap-nav-links {
  display: flex;
  gap: 56px;
  font-size: 17px;
  color: var(--aq-ink-soft);
}
.ap-nav-links span { cursor: pointer; }
.ap-nav-links .plus { color: var(--aq-cyan); margin-left: 4px; }
.ap-nav-right {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--aq-ink-soft);
}
.ap-icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
}
.ap-icon-btn .badge {
  position: absolute;
  top: -2px; right: -4px;
  width: 18px; height: 18px;
  background: var(--aq-cyan);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* ============ Step indicator ============ */
.co-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 48px 28px;
  border-bottom: 1px solid var(--aq-line-2);
}
.co-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--aq-muted);
}
.co-step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--aq-line);
  color: var(--aq-muted);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.co-step.done .num {
  background: var(--aq-cyan-soft);
  color: var(--aq-cyan-deep);
}
.co-step.active .num {
  background: var(--aq-cyan);
  color: #fff;
  box-shadow: 0 0 0 4px var(--aq-cyan-soft);
}
.co-step.active { color: var(--aq-ink); font-weight: 600; }
.co-step.done   { color: var(--aq-ink-soft); }
.co-step .line {
  flex: 1;
  height: 1px;
  background: var(--aq-line);
  min-width: 30px;
}

/* ============ Page layout ============ */
.co-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 48px;
  padding: 36px 48px 64px;
  align-items: flex-start;
}

.co-h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--aq-ink);
}
.co-h1-sub {
  font-size: 14px;
  color: var(--aq-muted);
  margin: 0 0 28px;
}

/* sections (left column blocks) */
.co-block {
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-md);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.co-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.co-block-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.co-block-head h2 .co-step-pill {
  font-family: var(--sans);
  font-size: 11px;
  background: var(--aq-cyan-soft);
  color: var(--aq-cyan-deep);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.co-block-head a.edit {
  font-size: 13px;
  color: var(--aq-cyan-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ============ Cart items ============ */
.co-cart-list { display: flex; flex-direction: column; gap: 0; }
.co-cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--aq-line);
}
.co-cart-item:last-child { border-bottom: none; }
.co-cart-item .ci-img {
  width: 96px; height: 96px;
  background: var(--aq-bg-soft);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  overflow: hidden;
}
.co-cart-item .ci-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-cart-item .ci-brand {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--aq-cyan-deep);
  font-weight: 700;
  text-transform: uppercase;
}
.co-cart-item .ci-name {
  font-size: 14px;
  line-height: 1.35;
  color: var(--aq-ink);
  font-weight: 500;
  text-wrap: pretty;
}
.co-cart-item .ci-opts {
  font-size: 12px;
  color: var(--aq-muted);
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.co-cart-item .ci-opts .pip {
  display: inline-flex; align-items: center; gap: 5px;
}
.co-cart-item .ci-opts .swatch-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  outline: 1px solid var(--aq-line);
}
.co-cart-item .ci-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.co-cart-item .ci-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--aq-cyan-deep);
  font-weight: 500;
}
.co-cart-item .ci-price-old {
  font-size: 12px;
  color: var(--aq-muted);
  text-decoration: line-through;
}
.co-cart-item .ci-qty {
  display: flex; align-items: center;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.co-cart-item .ci-qty button {
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: var(--aq-ink-soft);
  cursor: pointer;
  display: grid; place-items: center;
}
.co-cart-item .ci-qty .val {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.co-cart-item .ci-remove {
  font-size: 12px;
  color: var(--aq-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0;
  margin-top: 2px;
}
.co-cart-item .ci-remove:hover { color: #c75500; }

/* promo */
.co-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  margin-top: 10px;
  border-top: 1px solid var(--aq-line-2);
}
.co-promo input {
  flex: 1;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  color: var(--aq-ink);
  background: #fff;
}
.co-promo input:focus { border-color: var(--aq-cyan); box-shadow: 0 0 0 3px var(--aq-cyan-soft); }
.co-promo .apply {
  background: transparent;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--aq-ink-soft);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.co-promo .apply:hover { border-color: var(--aq-cyan); color: var(--aq-cyan-deep); }
.co-promo .promo-applied {
  background: #eaf7f0;
  color: var(--aq-success);
  border: 1px solid #cdebd9;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px 8px 10px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============ Form fields ============ */
.co-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field label {
  font-size: 12px;
  color: var(--aq-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.co-field label .req { color: #c75500; margin-left: 2px; }
.co-field input,
.co-field select,
.co-field textarea {
  border: 1px solid var(--aq-line);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--aq-ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  border-color: var(--aq-cyan);
  box-shadow: 0 0 0 3px var(--aq-cyan-soft);
}
.co-field .with-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-sm);
  background: #fff;
  overflow: hidden;
}
.co-field .with-prefix:focus-within {
  border-color: var(--aq-cyan);
  box-shadow: 0 0 0 3px var(--aq-cyan-soft);
}
.co-field .with-prefix .pre {
  padding: 0 4px 0 14px;
  font-size: 14px;
  color: var(--aq-ink-soft);
  font-weight: 500;
}
.co-field .with-prefix input {
  border: none;
  flex: 1;
  padding-left: 6px;
  box-shadow: none !important;
}
.co-field .hint {
  font-size: 11px;
  color: var(--aq-muted);
}

textarea.co-textarea {
  min-height: 80px;
  resize: vertical;
}

.co-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--aq-ink-soft);
  cursor: pointer;
}
.co-check input { margin: 0; accent-color: var(--aq-cyan); transform: translateY(2px); }
.co-check b { color: var(--aq-ink); }

/* ============ Radio cards ============ */
.co-radios { display: flex; flex-direction: column; gap: 10px; }
.co-radio {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-md);
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.co-radio:hover { border-color: var(--aq-cyan); }
.co-radio.active {
  border-color: var(--aq-cyan);
  background: var(--aq-cyan-soft);
  box-shadow: 0 0 0 1px var(--aq-cyan) inset;
}
.co-radio.active .co-radio-dot::after {
  background: var(--aq-cyan);
  transform: scale(1);
}
.co-radio-dot {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--aq-line);
  background: #fff;
  position: relative;
  margin-top: 2px;
}
.co-radio.active .co-radio-dot { border-color: var(--aq-cyan); }
.co-radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transform: scale(0);
  transition: transform .15s, background .15s;
}
.co-radio-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-radio-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.co-radio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--aq-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.co-radio-title .ico {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--aq-bg-soft);
  display: grid; place-items: center;
  color: var(--aq-ink-soft);
}
.co-radio.active .co-radio-title .ico {
  background: #fff;
  color: var(--aq-cyan-deep);
}
.co-radio-sub {
  font-size: 12px;
  color: var(--aq-muted);
  line-height: 1.4;
}
.co-radio-price {
  font-size: 13px;
  color: var(--aq-ink);
  font-weight: 600;
  white-space: nowrap;
}
.co-radio-price.free { color: var(--aq-success); }
.co-radio-extra {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--aq-line);
  display: flex; flex-direction: column; gap: 10px;
}

.pay-badge {
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}
.pay-badge.visa { color: #1a1f71; }
.pay-badge.mc   { color: #eb001b; }
.pay-badge.apl  { color: var(--aq-ink); font-size: 10px; letter-spacing: 0; }

/* ============ Order summary (sticky right) ============ */
.co-summary {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: var(--r-md);
  padding: 24px 24px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.co-summary h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 500;
}
.co-summary-items {
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--aq-line-2);
}
.co-summary-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.co-summary-item .si-img {
  width: 48px; height: 48px;
  background: var(--aq-bg-soft);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.co-summary-item .si-img .qty-pill {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--aq-cyan);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid #fff;
}
.co-summary-item .si-name {
  font-size: 12px;
  line-height: 1.4;
  color: var(--aq-ink-soft);
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.co-summary-item .si-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--aq-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.co-sum-rows { display: flex; flex-direction: column; gap: 8px; }
.co-sum-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--aq-ink-soft);
  font-variant-numeric: tabular-nums;
}
.co-sum-row .k { color: var(--aq-muted); }
.co-sum-row.discount .v { color: var(--aq-success); font-weight: 600; }
.co-sum-row.delivery .v.free { color: var(--aq-success); font-weight: 600; }
.co-sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--aq-line-2);
}
.co-sum-total .k {
  font-size: 14px;
  color: var(--aq-ink);
  font-weight: 600;
}
.co-sum-total .v {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--aq-cyan-deep);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.co-sum-total .v small {
  font-size: 14px;
  color: var(--aq-muted);
  font-family: var(--sans);
  margin-left: 4px;
}

.co-place {
  background: var(--aq-cyan);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: var(--shadow-cyan);
}
.co-place:hover { background: var(--aq-cyan-deep); }
.co-legal {
  font-size: 11px;
  color: var(--aq-muted);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}
.co-legal a { color: var(--aq-ink-soft); text-decoration: underline; cursor: pointer; }

.co-trust-mini {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--aq-line-2);
}
.co-trust-mini .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--aq-ink-soft);
  background: var(--aq-bg-soft);
  padding: 6px 10px;
  border-radius: var(--r-pill);
}
.co-trust-mini .pill svg { color: var(--aq-cyan-deep); }

/* Help strip */
.co-help-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 48px 56px;
  border-top: 1px solid var(--aq-line-2);
}
.co-help-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.co-help-card .ico {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--aq-cyan-soft);
  color: var(--aq-cyan-deep);
  display: grid; place-items: center;
  flex: 0 0 44px;
}
.co-help-card .t { font-weight: 600; font-size: 14px; color: var(--aq-ink); margin-bottom: 2px; }
.co-help-card .s { font-size: 12px; color: var(--aq-muted); line-height: 1.5; }

/* Footer mini */
.co-foot {
  padding: 22px 48px 28px;
  font-size: 12px;
  color: var(--aq-muted);
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--aq-line-2);
  background: var(--aq-bg-soft);
}

/* Responsive */
@media (max-width: 960px) {
  .co-hero { grid-template-columns: 1fr; padding: 28px 24px 48px; gap: 28px; }
  .ap-nav { padding: 16px 24px; }
  .ap-nav-links { display: none; }
  .co-steps { padding: 18px 24px 22px; overflow-x: auto; }
  .co-steps .co-step span:last-child { display: none; }
  .co-block { padding: 18px 18px; }
  .co-grid-2, .co-grid-3 { grid-template-columns: 1fr; }
  .co-cart-item { grid-template-columns: 72px 1fr; }
  .co-cart-item .ci-img { width: 72px; height: 72px; }
  .co-cart-item .ci-right { grid-column: 2 / 3; flex-direction: row; align-items: center; justify-content: space-between; }
  .co-help-strip { grid-template-columns: 1fr; padding: 24px; }
  .co-summary { position: static; }
  .co-h1 { font-size: 28px; }
}
