/* ============================================================
   checkout.css — Renuce Checkout Page Styles
   ============================================================ */


/* ─────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────── */
.co-page {
  max-width: var(--container-max-width, 1280px);
  margin: 0 auto;
  padding: 1.75rem var(--container-padding, 1.5rem) 5rem;
  min-height: 70vh;
}

/* ─────────────────────────────────────
   BREADCRUMB
───────────────────────────────────── */
.co-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #888);
  margin-bottom: 1.5rem;
}

.co-breadcrumb a {
  color: var(--color-text-muted, #888);
  text-decoration: none;
  transition: color 0.2s;
}

.co-breadcrumb a:hover {
  color: var(--color-text, #111);
}

.co-breadcrumb__sep {
  opacity: 0.45;
}

.co-breadcrumb__current {
  color: var(--color-text, #111);
  font-weight: 500;
}


/* ─────────────────────────────────────
   TRUST STRIP
───────────────────────────────────── */
.co-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem 2rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-bg-subtle, #f7f7f7);
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: var(--radius-md, 8px);
  margin-bottom: 2rem;
}

.co-trust__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted, #666);
  white-space: nowrap;
}

.co-trust__item svg {
  flex-shrink: 0;
  opacity: 0.65;
}


/* ─────────────────────────────────────
   EMPTY STATE
───────────────────────────────────── */
.co-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem;
  gap: 1rem;
}

.co-empty.is-visible {
  display: flex;
  width: 100%;
}

.co-empty__icon {
  color: var(--color-text-muted, #ccc);
  margin-bottom: 0.5rem;
}

.co-empty__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text, #111);
  margin: 0;
}

.co-empty__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #666);
  max-width: 320px;
  margin: 0;
  line-height: 1.65;
}

.co-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-text, #111);
  color: #fff;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm, 4px);
  transition: opacity 0.2s, transform 0.2s;
}

.co-empty__btn:hover {
  opacity: 0.84;
  transform: translateX(2px);
}


/* ─────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────── */
.co-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem 5rem;
  gap: 0.75rem;
  animation: co-fade-up 0.4s ease;
}

.co-success.is-visible {
  display: flex;
}

@keyframes co-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.co-success__check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-text, #111);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.co-success__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 2.125rem;
  font-weight: 600;
  color: var(--color-text, #111);
  margin: 0;
}

.co-success__sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #666);
  line-height: 1.7;
  margin: 0;
  max-width: 380px;
}

.co-success__box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.75rem;
  background: var(--color-bg-subtle, #f7f7f7);
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: var(--radius-md, 8px);
  font-size: 0.875rem;
  color: var(--color-text, #111);
  text-align: left;
  line-height: 1.8;
  min-width: 280px;
  max-width: 420px;
  width: 100%;
}

.co-success__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}


/* ─────────────────────────────────────
   MAIN LAYOUT  (forms + sidebar)
───────────────────────────────────── */
.co-layout {
  display: grid;
  grid-template-columns: 1fr 368px;
  gap: 2.5rem;
  align-items: start;
}


/* ─────────────────────────────────────
   FORM SECTIONS — CONTAINER
───────────────────────────────────── */
.co-forms {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.co-section {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

.co-section__head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
  background: var(--color-bg-subtle, #fafafa);
}

.co-section__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-text, #111);
  color: #fff;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.co-section__title {
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #111);
  letter-spacing: 0.01em;
  margin: 0;
}

.co-section__body {
  padding: 1.5rem;
}


/* ─────────────────────────────────────
   FIELD GRID
───────────────────────────────────── */
.co-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.co-field--full {
  grid-column: 1 / -1;
}


/* ─────────────────────────────────────
   LABELS
───────────────────────────────────── */
.co-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text, #111);
}

.co-label abbr {
  text-decoration: none;
  color: #e53e3e;
  font-style: normal;
}


/* ─────────────────────────────────────
   INPUTS, SELECTS & TEXTAREA
───────────────────────────────────── */
.co-input,
.co-select,
.co-textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.9375rem;
  color: var(--color-text, #111);
  background: var(--color-bg, #fff);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.co-input::placeholder,
.co-textarea::placeholder {
  color: var(--color-text-muted, #bbb);
  font-weight: 400;
}

.co-input:focus,
.co-select:focus,
.co-textarea:focus {
  border-color: var(--color-text, #111);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

/* Error state */
.co-input.is-error,
.co-select.is-error,
.co-textarea.is-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.09);
}

/* Select — custom arrow */
.co-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.co-select option {
  color: var(--color-text, #111);
}

/* Textarea */
.co-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}


/* ─────────────────────────────────────
   PHONE FIELD
───────────────────────────────────── */
.co-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 4px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.co-phone-wrap:focus-within {
  border-color: var(--color-text, #111);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.co-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.875rem;
  background: var(--color-bg-subtle, #f5f5f5);
  border-right: 1.5px solid var(--color-border, #ddd);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted, #666);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

/* Remove the wrapper border from the inner input */
.co-phone-wrap .co-input {
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}

.co-phone-wrap .co-input:focus {
  box-shadow: none;
}


/* ─────────────────────────────────────
   FIELD ERRORS
───────────────────────────────────── */
.co-field-error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #e53e3e;
  line-height: 1.4;
}

.co-field-error.is-visible {
  display: flex;
}

.co-field-error svg {
  flex-shrink: 0;
}


/* ─────────────────────────────────────
   PAYMENT OPTIONS
───────────────────────────────────── */
.co-payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.co-payment-card {
  border: 1.5px solid var(--color-border, #e0e0e0);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Highlight the selected card */
.co-payment-card:has(input:checked) {
  border-color: var(--color-text, #111);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Disabled / coming soon */
.co-payment-card--soon {
  opacity: 0.42;
  pointer-events: none;
}

.co-payment-card__label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.co-payment-card__label input[type="radio"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--color-text, #111);
  cursor: pointer;
}

.co-payment-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-bg-subtle, #f5f5f5);
  border-radius: var(--radius-sm, 4px);
  color: var(--color-text, #333);
  flex-shrink: 0;
}

.co-payment-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.co-payment-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #111);
}

.co-payment-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #777);
  line-height: 1.45;
}

.co-payment-card__badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--color-text, #111);
  color: #fff;
  white-space: nowrap;
}

.co-payment-card--soon .co-payment-card__badge {
  background: var(--color-text-muted, #aaa);
}

/* Bank/wallet details panel — hidden until that radio is selected */
.co-payment-detail {
  display: none;
  overflow: hidden;
}

.co-payment-card:has(input:checked) .co-payment-detail {
  display: block;
  animation: co-detail-in 0.22s ease;
}

@keyframes co-detail-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.co-payment-detail__inner {
  margin: 0 1.25rem 1.25rem;
  padding: 1rem 1.125rem;
  background: var(--color-bg-subtle, #f7f7f7);
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: var(--radius-sm, 4px);
  font-size: 0.8125rem;
  color: var(--color-text, #333);
  line-height: 1.8;
}

.co-payment-detail__inner strong {
  font-weight: 600;
  color: var(--color-text, #111);
}


/* ─────────────────────────────────────
   ORDER SUMMARY SIDEBAR
───────────────────────────────────── */
.co-summary {
  position: sticky;
  top: 96px;
}

.co-summary__box {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e8e8e8);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

.co-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
  background: var(--color-bg-subtle, #fafafa);
}

.co-summary__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text, #111);
}

.co-summary__count {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #888);
}


/* ─────────────────────────────────────
   CART ITEMS (populated by JS)
───────────────────────────────────── */
.co-items {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border, #ddd) transparent;
}

.co-items::-webkit-scrollbar {
  width: 3px;
}

.co-items::-webkit-scrollbar-track {
  background: transparent;
}

.co-items::-webkit-scrollbar-thumb {
  background: var(--color-border, #ddd);
  border-radius: 2px;
}


.co-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.875rem;
  align-items: center;
  padding: 0.75rem 1.375rem;
}

.co-item+.co-item {
  border-top: 1px solid var(--color-border, #f0f0f0);
}

.co-item__img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--color-bg-subtle, #f5f5f5);
  flex-shrink: 0;
}

.co-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.co-item__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text, #111);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.co-item__variant,
.co-item__qty {
  font-size: 0.75rem;
  color: var(--color-text-muted, #888);
}

.co-item__price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text, #111);
  white-space: nowrap;
  text-align: right;
}


/* ─────────────────────────────────────
   COUPON
───────────────────────────────────── */
.co-coupon {
  padding: 1rem 1.375rem;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
}

.co-coupon__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted, #777);
  margin-bottom: 0.625rem;
}

.co-coupon__row {
  display: flex;
  gap: 0.5rem;
}

.co-coupon__input {
  flex: 1;
  height: 38px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--color-border, #ddd);
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.875rem;
  color: var(--color-text, #111);
  background: var(--color-bg, #fff);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.co-coupon__input:focus {
  border-color: var(--color-text, #111);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.07);
}

.co-coupon__btn {
  height: 38px;
  padding: 0 1rem;
  background: var(--color-text, #111);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.co-coupon__btn:hover {
  opacity: 0.8;
}

.co-coupon__btn:active {
  opacity: 0.65;
}

.co-coupon__msg {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  min-height: 1.1em;
}

.co-coupon__msg.is-success {
  color: #2d7a4a;
}

.co-coupon__msg.is-error {
  color: #c53030;
}


/* ─────────────────────────────────────
   ORDER TOTALS
───────────────────────────────────── */
.co-totals {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.375rem;
  border-bottom: 1px solid var(--color-border, #e8e8e8);
}

.co-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted, #555);
}

.co-totals__row span:last-child,
.co-totals__row strong {
  font-weight: 500;
  color: var(--color-text, #111);
}

.co-totals__discount-val {
  color: #2d7a4a !important;
  font-weight: 600 !important;
}

.co-totals__row--total {
  padding-top: 0.75rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--color-border, #e5e5e5);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #111);
}

.co-totals__row--total strong {
  font-size: 1.125rem;
  font-weight: 700;
}


/* ─────────────────────────────────────
   CTA AREA
───────────────────────────────────── */
.co-cta {
  padding: 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Place Order button ── */
.co-btn-place {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 50px;
  background: var(--color-text, #111);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s;
}

.co-btn-place:hover:not(:disabled):not(.is-loading) {
  opacity: 0.86;
}

.co-btn-place:active:not(:disabled):not(.is-loading) {
  transform: scale(0.99);
}

.co-btn-place:disabled,
.co-btn-place.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hide label while loading */
.co-btn-place.is-loading .co-btn-place__label {
  opacity: 0;
}

.co-btn-place.is-loading .co-btn-place__spinner {
  display: block;
}

.co-btn-place__spinner {
  display: none;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: co-spin 0.65s linear infinite;
}

@keyframes co-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── WhatsApp button ── */
.co-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 44px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.co-wa-btn:hover {
  opacity: 0.86;
}

.co-wa-btn:active {
  transform: scale(0.99);
}

/* ── Secure note ── */
.co-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted, #b0b0b0);
  margin-top: 0.125rem;
}

.co-secure-note svg {
  flex-shrink: 0;
}


/* ─────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────── */
.co-toasts {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
  max-width: 340px;
}

.co-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  animation: co-toast-in 0.28s ease;
  line-height: 1.4;
}

.co-toast {
  background: var(--color-text, #111);
  color: #fff;
}

.co-toast.is-success {
  background: #1a4731;
  color: #fff;
}

.co-toast.is-error {
  background: #7f1d1d;
  color: #fff;
}

@keyframes co-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.co-toast.is-leaving {
  animation: co-toast-out 0.22s ease forwards;
}

@keyframes co-toast-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}


/* ─────────────────────────────────────
   RESPONSIVE — TABLET  ≤ 960px
───────────────────────────────────── */
@media (max-width: 960px) {
  .co-layout {
    grid-template-columns: 1fr;
  }

  /* Show summary above the forms on smaller screens */
  .co-summary {
    position: static;
    order: -1;
  }

  .co-summary__box {
    max-width: 600px;
    margin: 0 auto;
  }
}


/* ─────────────────────────────────────
   RESPONSIVE — MOBILE  ≤ 680px
───────────────────────────────────── */
@media (max-width: 680px) {
  .co-page {
    padding: 1.25rem 0 4rem;
  }

  /* Collapse trust strip to 2-column grid */
  .co-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  /* Single column fields */
  .co-field-grid {
    grid-template-columns: 1fr;
  }

  .co-field--full {
    grid-column: auto;
  }

  .co-section__head {
    padding: 1rem 1.125rem;
  }

  .co-section__body {
    padding: 1.125rem;
  }

  .co-summary__box {
    max-width: 100%;
  }
}


/* ─────────────────────────────────────
   RESPONSIVE — SMALL MOBILE  ≤ 420px
───────────────────────────────────── */
@media (max-width: 420px) {
  .co-trust {
    grid-template-columns: 1fr;
  }

  .co-section,
  .co-summary__box {
    border-radius: var(--radius-sm, 4px);
  }

  .co-btn-place {
    height: 48px;
    font-size: 0.9rem;
  }

  .co-success__title {
    font-size: 1.75rem;
  }

  .co-toasts {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}


/* ─────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  .co-btn-place__spinner,
  .co-success,
  .co-toast,
  .co-detail-in {
    animation: none;
  }

  .co-input,
  .co-select,
  .co-textarea,
  .co-phone-wrap,
  .co-payment-card,
  .co-empty__btn,
  .co-btn-place,
  .co-wa-btn {
    transition: none;
  }
}

/* ─────────────────────────────────────
   PAYMENT CARD — JS FALLBACK (Firefox)
───────────────────────────────────── */
.co-payment-card.is-selected {
  border-color: var(--color-text, #111);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.co-payment-card.is-selected .co-payment-detail {
  display: block;
}

/* ─────────────────────────────────────
   FREE SHIPPING TEXT
───────────────────────────────────── */
.co-totals__free {
  color: #2d7a4a;
  font-weight: 700;
}

/* ─────────────────────────────────────
   IMAGE PLACEHOLDER (no image items)
───────────────────────────────────── */
.co-item__img-placeholder {
  width: 54px;
  height: 68px;
  background: var(--color-bg-subtle, #f5f5f5);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted, #ccc);
  flex-shrink: 0;
}

/* ─────────────────────────────────────
   SUCCESS SCREEN — ROWS & BUTTONS
───────────────────────────────────── */
.co-success__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border, #eee);
}

.co-success__row:last-child {
  border-bottom: none;
}

.co-success__order-id {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.co-success__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm, 4px);
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.co-success__btn--primary {
  background: var(--color-text, #111);
  color: #fff;
}

.co-success__btn--wa {
  background: #25D366;
  color: #fff;
}

.co-success__btn--outline {
  background: transparent;
  color: var(--color-text, #111);
  border: 1.5px solid var(--color-border, #ddd);
}

.co-success__btn:hover {
  opacity: 0.82;
}