:root {
  --co-ink: #1f130d;
  --co-bg: #ffffff;
  --co-gold: #b8924f;
  --co-gold-deep: #8a6a30;
  --co-gold-soft: #f8f2e7;
  --co-panel: #f6f4f1;
  --co-line: #e7e2db;
  --co-line-strong: #d5cdc2;
  --co-muted: #6b6159;
  --co-danger: #b3261e;
  --co-ok: #2f6d4f;
  --co-r: 12px;
  --co-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --co-chev: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b6159' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
/* ---------- Base ---------------------------------------------------------- */
html.co-html {
  font-size: 16px !important;
  scroll-padding: 16px 0 128px; /* keeps focused fields clear of the sticky pay bar */
  -webkit-text-size-adjust: 100%;
}

body.co-page {
  font-size: 16px !important;
  line-height: 1.5;
  background: var(--co-bg);
  color: var(--co-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* checkout.css sets a universal font-family; override it without breaking Font Awesome */
body.co-page,
body.co-page *:not(.fa) {
  font-family: var(--co-font);
}

.co.checkout {
  margin: 0;
  padding: 0;
}

.co a {
  color: inherit;
}

.co :focus-visible,
.co-modal :focus-visible {
  outline: 2px solid var(--co-gold);
  outline-offset: 2px;
}

.co p {
  margin: 0;
}

.co ul,
.co ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Header -------------------------------------------------------- */
.co .co-top {
  /* checkout.css has a generic `header { margin-top: 20px }` rule - neutralise it here */
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--co-line);
}

.co-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.co-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.co-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 44px;
  object-fit: contain;
}

.co-logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--co-brand);
}

.co-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.co-secure {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--co-muted);
}

.co-secure .fa {
  color: var(--co-brand);
}

.co-bag {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--co-brand);
  color: var(--co-brand) !important;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.co-bag:hover {
  background: var(--co-gold-soft);
  border-color: var(--co-gold);
}

.co-bag .fa {
  font-size: 18px;
}

@media (min-width: 576px) {
  .co-secure {
    display: inline-flex;
  }
}

/* ---------- Page grid ----------------------------------------------------- */
.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.co-main-inner,
.co-summary-inner {
  padding: 28px clamp(16px, 4vw, 56px) 56px;
}

.co-main-inner {
  max-width: 680px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .co-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    min-height: calc(100vh - 66px);
  }

  .co-main-inner {
    margin: 0 0 0 auto;
    padding-top: 44px;
    padding-bottom: 72px;
  }

  .co-summary {
    background: var(--co-panel);
    border-left: 1px solid var(--co-line);
  }

  .co-summary-inner {
    position: sticky;
    top: 0;
    max-width: 520px;
    max-height: 100vh;
    overflow-y: auto;
    padding-top: 44px;
    padding-bottom: 48px;
  }
}

/* ---------- Account row --------------------------------------------------- */
.co-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--co-line);
  border-radius: var(--co-r);
  background: #fff;
}

.co-account-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--co-line);
  color: var(--co-brand);
  font-size: 18px;
}

.co-account-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.co-account-label {
  font-size: 13px;
  color: var(--co-muted);
}

.co-account-text strong {
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Sections ------------------------------------------------------ */
.co-section {
  margin-top: 36px;
}

.co-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.co-section h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--co-ink);
}

.co-sub {
  margin: -6px 0 14px;
  font-size: 14px;
  color: var(--co-muted);
}

.co-fieldset-title {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.co-fieldset-title small {
  font-weight: 500;
  color: var(--co-muted);
}

/* ---------- Form fields (grid driven by the form's own width) ------------- */
.co-form {
  container-type: inline-size;
  container-name: co;
}

.co-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.co-field {
  min-width: 0;
}

.co-field.f-full,
.co-field.f-wide {
  grid-column: 1 / -1;
}

@container co (min-width: 480px) {
  .co-field.f-wide {
    grid-column: auto;
  }
}

.co .form-floating > .form-control,
.co .form-floating > .form-select {
  height: 58px;
  min-height: 58px;
  padding: 1.65rem 0.9rem 0.5rem;
  font-size: 16px; /* 16px stops iOS Safari zooming into the field */
  font-weight: 500;
  color: var(--co-ink);
  background-color: #fff;
  border: 1px solid var(--co-line-strong);
  border-radius: var(--co-r);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.co .form-floating > textarea.form-control {
  height: 96px;
  padding-top: 1.85rem;
  resize: none;
  line-height: 1.4;
}

.co .form-floating > .form-select {
  padding-right: 2.4rem;
  background-image: var(--co-chev);
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 16px 12px;
  text-overflow: ellipsis;
}

.co .form-floating > label {
  padding: 1rem 0.9rem;
  font-size: 16px;
  font-weight: 500;
  color: var(--co-muted);
}

/* Floated label: keep full contrast (Bootstrap fades it to 65%) */
.co .form-floating > .form-control:focus ~ label,
.co .form-floating > .form-control:not(:placeholder-shown) ~ label,
.co .form-floating > .form-select ~ label {
  opacity: 1;
  color: var(--co-muted);
}

.co .form-floating > .form-control:hover,
.co .form-floating > .form-select:hover {
  border-color: #b9ae9f;
}

.co .form-floating > .form-control:focus,
.co .form-floating > .form-select:focus {
  border-color: var(--co-gold);
  box-shadow: 0 0 0 4px rgba(184, 146, 79, 0.2);
  outline: 0;
}

.co .form-control.is-invalid,
.co .form-select.is-invalid {
  border-color: var(--co-danger) !important;
  background-image: none;
  padding-right: 0.9rem;
}

.co .form-select.is-invalid,
.co .form-select.is-invalid:not([multiple]):not([size]),
.co .form-select.is-invalid:not([multiple])[size="1"] {
  /* Bootstrap swaps the chevron for a red "!" icon; keep our chevron */
  background-image: var(--co-chev);
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 16px 12px;
  padding-right: 2.4rem;
}

.co .form-floating > .form-control.is-invalid:focus,
.co .form-floating > .form-select.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14);
}

/* jQuery Validate messages */
.co label.error,
.co-page label.error {
  display: block;
  margin: 6px 2px 0;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--co-danger) !important;
}

/* ---------- Custom checkbox / radio -------------------------------------- */
.co input[type="checkbox"],
.co input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #a79d90;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.co input[type="checkbox"] {
  border-radius: 7px;
}

.co input[type="radio"] {
  border-radius: 50%;
}

.co input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.12s ease-out;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.co input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.12s ease-out;
  background: #fff;
}

.co input[type="checkbox"]:checked,
.co input[type="radio"]:checked {
  background: var(--co-brand);
  border-color: var(--co-brand);
}

.co input[type="checkbox"]:checked::before,
.co input[type="radio"]:checked::before {
  transform: scale(1);
}

.co input[type="checkbox"]:focus-visible,
.co input[type="radio"]:focus-visible {
  outline: 2px solid var(--co-gold);
  outline-offset: 2px;
}

.co-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* Billing choice list */
.co-choice-group {
  border: 1px solid var(--co-line-strong);
  border-radius: var(--co-r);
  overflow: hidden;
  background: #fff;
}

.co-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.co-choice + .co-choice {
  border-top: 1px solid var(--co-line);
}

.co-choice:has(input:checked) {
  background: var(--co-gold-soft);
}

.co-bill {
  padding: 18px 16px 20px;
  border-top: 1px solid var(--co-line);
  background: var(--co-panel);
}

/* ---------- Payment options (markup injected into #payment_options) ------- */
.co-pay {
  width: 100%;
}

.co-pay .razor_pay_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: auto;
  min-height: 62px;
  margin: 10px 0 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--co-line-strong);
  border-radius: var(--co-r);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.co-pay > .razor_pay_box:first-child {
  margin-top: 0;
}

.co-pay .razor_pay_box:hover {
  border-color: #b9ae9f;
}

.co-pay .razor_pay_box:has(input:checked) {
  background: var(--co-gold-soft);
  border-color: var(--co-brand);
}

.co-pay .razor_pay_box:has(+ .pay_cntnr:not(.d-none)) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.co-pay .razor_pay_box label,
.co-pay .razor_pay_box h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--co-ink);
  cursor: pointer;
}

.co-pay .razor_pay_box img,
.co-pay .razor_pay_box svg {
  max-height: 26px;
  width: auto;
}

.co-pay .pay_cntnr {
  width: 100%;
  margin: 0;
  background: transparent;
}

.co-pay .pay_cntnr .svg_cntnr {
  padding: 22px 18px;
  text-align: center;
  background: var(--co-panel);
  border: 1px solid var(--co-brand);
  border-top: 0;
  border-radius: 0 0 var(--co-r) var(--co-r);
}

.co-pay .pay_cntnr .svg_cntnr p {
  width: 100%;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--co-muted);
  text-align: center;
}

.co-pay .pay_cntnr .svg_cntnr svg {
  display: block;
  max-width: 120px;
  height: auto;
  margin: 0 auto 16px;
  color: var(--co-gold-deep);
}

.co-pay .pay_cntnr .svg_cntnr .cod {
  gap: 10px;
  margin-top: 10px;
  padding: 0;
  font-size: 14px;
  color: var(--co-ink);
  background: transparent;
  border: 0;
}

.co-pay .pay_cntnr + .razor_pay_box {
  margin-top: 10px;
}

/* ---------- Buttons ------------------------------------------------------- */
.co-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--co-r);
  background: var(--co-brand);
  box-shadow: inset 0 0 0 1px rgba(208, 174, 115, 0.35), 0 8px 20px -10px rgba(56, 30, 21, 0.65);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.08s, box-shadow 0.15s;
}

.co-btn:hover {
  background: var(--co-brand-hover);
}

.co-btn:active {
  transform: translateY(1px);
}

.co-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.co-btn:focus-visible {
  outline: 2px solid var(--co-gold);
  outline-offset: 3px;
}

.co-btn.btn-progress {
  pointer-events: none;
  color: transparent;
}

.co-btn.btn-progress::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: co-spin 0.7s linear infinite;
}

.co-pay-desktop {
  margin-top: 32px;
}

.co-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--co-line);
}

.co-policies a {
  font-size: 14px;
  font-weight: 600;
  color: var(--co-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--co-line-strong);
}

.co-policies a:hover {
  color: var(--co-brand);
  text-decoration-color: var(--co-gold);
}

/* ---------- Order summary ------------------------------------------------- */
.co-sum-toggle {
  display: none; /* shown on < 992px */
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(16px, 4vw, 56px);
  background: transparent;
  border: 0;
  color: var(--co-brand);
  text-align: left;
  cursor: pointer;
}

.co-sum-toggle-l {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--co-brand);
}

.co-sum-toggle-l .fa-shopping-bag {
  color: var(--co-brand);
  font-size: 17px;
}

.co-sum-toggle .co-chev {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.co-sum-toggle[aria-expanded="true"] .co-chev {
  transform: rotate(180deg);
}

.co-sum-toggle strong {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.co-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.co-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.co-thumb {
  position: relative;
  width: 64px;
  height: 64px;
}

.co-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--co-line);
}

.co-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--co-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--co-panel);
}

.co-item-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.co-item-attrs {
  margin-top: 2px;
  font-size: 13px;
  color: var(--co-muted);
}

.co-item-price {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Coupon */
.co-coupon-form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.co-coupon-form .form-control {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--co-ink);
  background: #fff;
  border: 1px solid var(--co-line-strong);
  border-radius: var(--co-r);
  box-shadow: none;
}

.co-coupon-form .form-control::placeholder,
.co-modal .form-control::placeholder {
  color: #7a7068;
  opacity: 1;
}

.co-coupon-form .form-control:focus {
  border-color: var(--co-gold);
  box-shadow: 0 0 0 4px rgba(184, 146, 79, 0.2);
}

.co-coupon-form button {
  flex: none;
  min-width: 84px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--co-brand);
  border-radius: var(--co-r);
  background: transparent;
  color: var(--co-brand);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.co-coupon-form button:hover {
  background: var(--co-brand);
  color: #fff;
}

.co-offers-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--co-gold-deep);
}

.co-coupon-applied {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--co-gold-soft);
  border: 1px dashed var(--co-gold);
  border-radius: var(--co-r);
}

.co-coupon-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--co-gold-deep);
}

.co-coupon-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
}

.co-coupon-text strong {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.co-coupon-text small {
  display: block;
  font-size: 13px;
  color: var(--co-ok);
  font-weight: 600;
}

.co-coupon-applied a {
  flex: none;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--co-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Totals */
.co-totals {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--co-line-strong);
}

.co-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 15px;
}

.co-row > span:first-child small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--co-muted);
}

.co-row > :last-child {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.co-code {
  font-weight: 700;
}

.co-discount,
.co-free {
  color: var(--co-ok);
  font-weight: 700;
}

.co-advance {
  margin: 4px 0 8px;
  padding: 14px 14px 2px;
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: var(--co-r);
}

.co-grand {
  align-items: center;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--co-line-strong);
}

.co-grand > span {
  font-size: 17px;
  font-weight: 700;
}

.co-grand strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.co-tax:empty {
  display: none;
}

.co-tax {
  margin-top: 8px;
  font-size: 13px;
  color: var(--co-muted);
}

/* ---------- Sticky pay bar (mobile / tablet) ------------------------------ */
.co-bar {
  display: none;
}

/* ---------- Loader -------------------------------------------------------- */
.co-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 19, 13, 0.35);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.co-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--co-gold);
  animation: co-spin 0.8s linear infinite;
}

@keyframes co-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Coupon modal -------------------------------------------------- */
.co-page .modal-backdrop {
  display: block !important; /* checkout.css hides the backdrop on desktop */
  background: var(--co-ink);
}

.co-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(31, 19, 13, 0.45);
  overflow: hidden;
}

.co-modal .modal-header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--co-line);
}

.co-modal .modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.co-modal .modal-body {
  padding: 20px 22px 24px;
}

.co-modal .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(184, 146, 79, 0.35);
}

.co-modal .form-control {
  height: 50px;
  font-size: 16px;
  border: 1px solid var(--co-line-strong);
  border-radius: var(--co-r) 0 0 var(--co-r);
}

.co-modal .form-control:focus {
  border-color: var(--co-gold);
  box-shadow: 0 0 0 4px rgba(184, 146, 79, 0.2);
}

.co-modal .input-group .btn {
  padding: 0 20px;
  font-weight: 700;
  color: #fff;
  background: var(--co-brand);
  border: 1px solid var(--co-brand);
  border-radius: 0 var(--co-r) var(--co-r) 0;
}

.co-modal .input-group .btn:hover {
  background: var(--co-brand-hover);
}

.co-coupon-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-coupon-list .list-group-item {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--co-muted);
  background: var(--co-gold-soft);
  border: 1px dashed var(--co-gold);
  border-radius: var(--co-r) !important;
}

.co-coupon-list .fw-bold {
  font-size: 15px;
  color: var(--co-ink);
}

.co-coupon-list .coupon-apply {
  min-height: 38px;
  padding: 0 16px;
  font-weight: 700;
  color: var(--co-brand);
  border: 1px solid var(--co-brand);
  background: transparent;
  border-radius: 10px;
}

.co-coupon-list .coupon-apply:hover {
  color: #fff;
  background: var(--co-brand);
}

.co-coupon-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 0 6px;
  font-size: 14px;
  color: var(--co-muted);
}

.co-coupon-empty svg {
  color: var(--co-gold);
}

/* ---------- Toasts -------------------------------------------------------- */
.iziToast-wrapper {
  font-family: var(--co-font);
}

/* ==========================================================================
   Tablet & mobile (< 992px): single column, collapsible summary on top,
   sticky pay bar at the bottom.
   ========================================================================== */
@media (max-width: 991.98px) {
  .co-summary {
    order: -1;
    background: var(--co-panel);
    border-bottom: 1px solid var(--co-line);
  }

  .co-sum-toggle {
    display: flex;
  }

  /* animate open/close with grid rows; visibility keeps collapsed fields out of the tab order */
  .co-sum-body {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.28s ease, visibility 0s linear 0.28s;
  }

  .co-sum-body.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.28s ease, visibility 0s;
  }

  .co-sum-clip {
    min-height: 0;
    overflow: hidden;
  }

  .co-summary-inner {
    padding-top: 16px; /* room for the quantity badges, which overhang the thumbnails */
    padding-bottom: 28px;
  }

  .co-main-inner {
    padding-top: 22px;
    padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  .co-pay-desktop {
    display: none;
  }

  .co-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px clamp(16px, 4vw, 56px) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--co-line);
    box-shadow: 0 -10px 30px -12px rgba(31, 19, 13, 0.18);
  }

  .co-bar-total {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .co-bar-total span {
    font-size: 13px;
    font-weight: 600;
    color: var(--co-muted);
  }

  .co-bar-total strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }

  .co-bar .co-btn {
    flex: 1;
    min-height: 54px;
  }
}

/* Phones */
@media (max-width: 575.98px) {
  .co-top-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .co-logo img {
    max-width: 130px;
    max-height: 38px;
  }

  .co-section {
    margin-top: 30px;
  }

  .co-section h2 {
    font-size: 18px;
  }

  .co-item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .co-thumb {
    width: 56px;
    height: 56px;
  }

  .co-grand strong {
    font-size: 24px;
  }

  .co-coupon-form button {
    min-width: 76px;
  }

  .co-modal .modal-dialog {
    margin: 12px;
  }
}

/* Very small phones (≤ 359px, e.g. iPhone SE 1st gen) */
@media (max-width: 359.98px) {
  .co-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .co-bar {
    gap: 10px;
  }

  .co-bar-total strong {
    font-size: 18px;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .co-main-inner {
    max-width: 700px;
  }

  .co-summary-inner {
    max-width: 540px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .co-page *,
  .co-page *::before,
  .co-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .co-spinner,
  .co-btn.btn-progress::after {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}