/* ================================================================
   AJWA ORGANICS — CHECKOUT STYLESHEET
   ------------------------------------------------------------
   Extends assets/css/style.css (design tokens, buttons, header,
   footer). Nothing here redefines a token already in style.css —
   it only adds the "co-" prefixed components checkout.html needs.
   Load order: style.css first, then this file, so these rules
   can rely on every token/class already being defined.
   ================================================================ */

:root {
  --c-error:       #B3434B;
  --c-error-soft:  #FBEAE9;
  --co-header-h:   84px;
}

/* ============================================================
   0. PAGE FRAME
============================================================ */
body { background: var(--c-cream); }

#main { display: block; }

/* ============================================================
   1. PROGRESS TOPBAR
============================================================ */
.co-topbar {
  background: var(--c-cream-soft);
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
}

.co-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.co-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--c-ink-soft);
}

.co-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  background: var(--c-paper);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.co-step-label {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color .3s var(--ease);
}

.co-step.is-active .co-step-num {
  background: var(--c-forest);
  border-color: var(--c-forest);
  color: var(--c-cream);
  box-shadow: var(--shadow-tight);
}
.co-step.is-active .co-step-label { color: var(--c-olive); }

.co-step.is-complete .co-step-num {
  background: var(--c-forest);
  border-color: var(--c-forest);
  color: var(--c-cream);
}
.co-step.is-complete .co-step-num::after { content: ""; }
.co-step.is-complete .co-step-label { color: var(--c-ink-soft); }

.co-divider {
  flex: 1 1 56px;
  min-width: 28px;
  height: 2px;
  margin: 0 10px;
  background: var(--c-line);
  border-radius: 2px;
  transition: background .35s var(--ease);
}
.co-divider.is-filled { background: var(--c-forest); }

@media (max-width: 480px) {
  .co-step-label { display: none; }
  .co-step.is-active .co-step-label { display: inline; }
  .co-divider { margin: 0 6px; }
}

@media (min-width: 700px) {
  .co-progress { max-width: 620px; }
  .co-step-num { width: 34px; height: 34px; font-size: 1rem; }
  .co-step-label { font-size: 0.92rem; }
}

/* ============================================================
   2. BODY GRID
============================================================ */
.co-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 96px;
  align-items: start;
}

@media (min-width: 1024px) {
  .co-body {
    grid-template-columns: minmax(0, 1fr) 392px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 120px;
  }
}

.co-main { min-width: 0; display: flex; flex-direction: column; gap: 0; }

/* ============================================================
   3. MOBILE ORDER-SUMMARY TOGGLE
============================================================ */
.co-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.co-mobile-toggle-left { display: flex; align-items: center; gap: 10px; color: var(--c-olive); font-weight: 600; font-size: 0.92rem; }
.co-mobile-toggle-left .icon { width: 19px; height: 19px; color: var(--c-forest); }
.co-mobile-toggle-right { display: flex; align-items: center; gap: 10px; }
.co-mobile-toggle-right strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--c-olive); }
.co-chevron { width: 18px; height: 18px; color: var(--c-ink-soft); transition: transform .3s var(--ease); }
.co-mobile-toggle[aria-expanded="true"] .co-chevron { transform: rotate(180deg); }

.co-mobile-summary {
  margin-bottom: 24px;
  animation: coFadeIn .3s var(--ease);
}
.co-mobile-summary .co-summary {
  box-shadow: none;
}

@media (min-width: 1024px) {
  .co-mobile-toggle, .co-mobile-summary { display: none !important; }
}

/* ============================================================
   4. EMPTY-CART BANNER + GLOBAL TOAST
============================================================ */
.co-empty-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-error-soft);
  border: 1px solid rgba(179,67,75,0.28);
  color: var(--c-error);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.co-empty-banner .icon { width: 20px; height: 20px; flex-shrink: 0; }

.co-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--c-olive-dark);
  color: var(--c-cream-ink);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 48px);
  text-align: center;
}
.co-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ============================================================
   5. STEP PANELS
============================================================ */
.co-step-panel { display: none; }
.co-step-panel.is-active { display: block; animation: coFadeIn .4s var(--ease); }

@keyframes coFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.co-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 640px) { .co-card { padding: 40px; } }

.co-card-header { margin-bottom: 28px; }
.co-card-header .eyebrow { margin-bottom: 10px; }
.co-card-title { font-size: clamp(1.5rem, 1vw + 1.25rem, 1.85rem); margin-bottom: 8px; }
.co-card-subtitle { font-size: 0.95rem; max-width: 48ch; }

/* ============================================================
   6. FORM FIELDS
============================================================ */
.co-fields { display: flex; flex-direction: column; gap: 20px; }
.co-field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) { .co-field-row { grid-template-columns: 1fr 1fr; } }

.co-field { display: flex; flex-direction: column; }
.co-field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.co-required { color: var(--c-honey); }
.co-field-opt {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.co-field input,
.co-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--c-cream);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.co-field input::placeholder, .co-field textarea::placeholder { color: rgba(91,101,82,0.55); }
.co-field textarea { resize: vertical; min-height: 92px; line-height: 1.5; }

.co-field input:focus, .co-field textarea:focus {
  outline: none;
  border-color: var(--c-forest);
  background: var(--c-paper);
  box-shadow: 0 0 0 4px rgba(84,105,63,0.13);
}

.co-field.has-error input, .co-field.has-error textarea {
  border-color: var(--c-error);
  background: var(--c-error-soft);
}
.co-field.has-error input:focus, .co-field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(179,67,75,0.13);
}

.co-field-error {
  display: block;
  min-height: 1.1em;
  margin-top: 6px;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--c-error);
}

.co-field.is-valid input {
  border-color: var(--c-moss);
}

/* ============================================================
   7. STEP ACTIONS
============================================================ */
.co-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
@media (max-width: 480px) {
  .co-step-actions { flex-direction: column-reverse; align-items: stretch; }
  .co-step-actions .btn { width: 100%; }
}

.co-step-actions--confirm { flex-direction: column-reverse; align-items: stretch; border-top: none; padding-top: 4px; margin-top: 8px; gap: 14px; }
.co-step-actions--confirm .btn { width: 100%; }

/* ============================================================
   8. LOCATION TABS + PANELS
============================================================ */
.co-loc-tabs {
  display: flex;
  gap: 8px;
  background: var(--c-cream-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: 24px;
}
.co-loc-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.co-loc-tab .icon { width: 17px; height: 17px; }
.co-loc-tab:hover { color: var(--c-olive); }
.co-loc-tab.is-active {
  background: var(--c-forest);
  color: var(--c-cream);
  box-shadow: var(--shadow-tight);
}

.co-loc-panel { display: none; }
.co-loc-panel.is-active { display: block; animation: coFadeIn .3s var(--ease); }

.co-loc-hint { font-size: 0.9rem; margin-bottom: 18px; }

#use-gps-btn { width: 100%; }
@media (min-width: 480px) { #use-gps-btn { width: auto; } }

.co-gps-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--c-error-soft);
  border: 1px solid rgba(179,67,75,0.28);
  color: var(--c-error);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* ============================================================
   9. MAP
============================================================ */
.co-map {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-line);
  overflow: hidden;
  background: var(--c-cream-soft);
  cursor: crosshair;
}
.co-map:focus-visible { outline: 2px solid var(--c-forest); outline-offset: 2px; }
@media (min-width: 640px) { .co-map { height: 380px; } }

.co-map-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.83rem;
  color: var(--c-ink-soft);
}
.co-map-hint .icon { width: 14px; height: 14px; color: var(--c-honey); flex-shrink: 0; }

/* Leaflet theme adjustments to match the brand */
.leaflet-container { font-family: var(--font-body); background: var(--c-cream-soft); }
.leaflet-control-attribution {
  background: rgba(250,246,234,0.85) !important;
  color: var(--c-ink-soft) !important;
  font-size: 0.66rem !important;
}
.leaflet-control-zoom a {
  color: var(--c-olive) !important;
  border-color: var(--c-line) !important;
}
.co-map-pin-pulse {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-forest);
  border: 3px solid var(--c-paper);
  box-shadow: 0 2px 10px rgba(38,46,29,0.4);
}

.co-loc-confirm {
  margin-top: 18px;
  background: rgba(124,150,96,0.1);
  border: 1px solid rgba(84,105,63,0.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  animation: coFadeIn .3s var(--ease);
}
.co-loc-confirm-inner { display: flex; align-items: flex-start; gap: 12px; }
.co-loc-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-forest);
  color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
}
.co-loc-icon svg { width: 16px; height: 16px; }
.co-loc-confirm-title { font-weight: 600; color: var(--c-olive); font-size: 0.94rem; margin-bottom: 4px; }
.co-loc-confirm-sub { font-size: 0.84rem; color: var(--c-ink-soft); line-height: 1.5; }
.co-maps-link { color: var(--c-forest); font-weight: 600; }
.co-maps-link:hover { text-decoration: underline; }

/* ============================================================
   10. REVIEW (STEP 3)
============================================================ */
.co-review { display: flex; flex-direction: column; gap: 28px; }

.co-review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.co-review-section-header h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-moss);
}
.co-review-edit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-forest);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: background .2s var(--ease);
}
.co-review-edit:hover { background: rgba(84,105,63,0.1); }

.co-review-items { display: flex; flex-direction: column; gap: 12px; }
.co-review-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
}
.co-review-item-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.co-review-item-icon .icon { width: 22px; height: 24px; }
.co-review-item-icon.is-honey   { background: linear-gradient(165deg, var(--c-honey-soft), var(--c-sand) 140%); color: var(--c-forest); }
.co-review-item-icon.is-coconut { background: linear-gradient(165deg, var(--c-moss-light), var(--c-sage) 140%); color: var(--c-olive); }
.co-review-item-icon.is-mustard { background: linear-gradient(165deg, var(--c-forest), var(--c-olive) 140%); color: var(--c-honey-light); }
.co-review-item-info { flex: 1; min-width: 0; }
.co-review-item-name { font-weight: 600; font-size: 0.92rem; color: var(--c-ink); }
.co-review-item-meta { font-size: 0.82rem; color: var(--c-ink-soft); }
.co-review-item-price { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--c-olive); white-space: nowrap; }

.co-review-data { font-size: 0.92rem; color: var(--c-ink-soft); line-height: 1.8; background: var(--c-cream); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 14px 16px; }
.co-review-data strong { color: var(--c-ink); font-weight: 600; }
.co-review-data .co-review-empty { color: var(--c-error); font-weight: 500; }

.co-review-pricing {
  background: var(--c-cream-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.co-confirm-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--c-ink-soft);
  text-align: center;
}
.co-confirm-note .icon { width: 15px; height: 15px; color: var(--c-forest); flex-shrink: 0; }

/* ============================================================
   11. SUCCESS (STEP 4)
============================================================ */
.co-success-card { text-align: center; padding: 48px 24px; }
@media (min-width: 640px) { .co-success-card { padding: 56px 48px; } }

.co-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--c-forest);
  color: var(--c-cream);
  display: flex; align-items: center; justify-content: center;
  animation: coPop .5s var(--ease);
}
.co-success-icon svg { width: 30px; height: 30px; }
@keyframes coPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.co-success-title { font-size: clamp(1.6rem, 1.2vw + 1.3rem, 2.1rem); margin-bottom: 12px; }
.co-success-sub { max-width: 46ch; margin: 0 auto 32px; font-size: 0.98rem; }

.co-success-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 28px;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.co-success-step { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--c-ink-soft); }
.co-success-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-honey-soft);
  color: var(--c-honey);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.co-success-ref {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  margin-bottom: 28px;
}
.co-success-ref strong { color: var(--c-olive); font-family: var(--font-display); letter-spacing: 0.03em; }

.co-success-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 420px) { .co-success-actions { flex-direction: column-reverse; } .co-success-actions .btn { width: 100%; } }

/* ============================================================
   12. SIDEBAR — ORDER SUMMARY
============================================================ */
.co-sidebar { min-width: 0; }

@media (min-width: 1024px) {
  .co-sidebar {
    position: sticky;
    top: calc(var(--co-header-h) + 24px);
    max-height: calc(100vh - var(--co-header-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--c-stone) transparent;
  }
  .co-sidebar::-webkit-scrollbar { width: 6px; }
  .co-sidebar::-webkit-scrollbar-thumb { background: var(--c-stone); border-radius: 999px; }
}

.co-summary {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.co-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.co-summary-title { font-size: 1.2rem; }
.co-item-count { font-size: 0.8rem; color: var(--c-ink-soft); font-weight: 500; }

/* ============================================================
   13. PRODUCT SELECTOR ROWS
============================================================ */
.co-products { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }

.co-prod-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
  transition: opacity .25s var(--ease);
}
.co-products .co-prod-row:last-child { border-bottom: none; padding-bottom: 0; }

.co-prod-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.co-prod-icon .icon { width: 24px; height: 27px; }
.co-prod-icon--honey   { background: linear-gradient(165deg, var(--c-honey-soft), var(--c-sand) 140%); color: var(--c-forest); }
.co-prod-icon--coconut { background: linear-gradient(165deg, var(--c-moss-light), var(--c-sage) 140%); color: var(--c-olive); }
.co-prod-icon--mustard { background: linear-gradient(165deg, var(--c-forest), var(--c-olive) 140%); color: var(--c-honey-light); }

.co-prod-info { min-width: 0; }
.co-prod-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.co-prod-name { font-weight: 600; font-size: 0.94rem; color: var(--c-ink); }
.co-prod-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--c-cream-soft);
  color: var(--c-ink-soft);
}
.co-prod-badge--honey   { background: var(--c-honey-soft); color: var(--c-honey); }
.co-prod-badge--coconut { background: var(--c-moss-light); color: var(--c-olive); }
.co-prod-badge--mustard { background: var(--c-olive); color: var(--c-honey-light); }

.co-prod-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.co-vpill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-line);
  color: var(--c-ink-soft);
  transition: all .2s var(--ease);
}
.co-vpill:hover { border-color: var(--c-moss); }
.co-vpill.is-active { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-cream); }

.co-prod-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.co-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.co-qty-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-olive);
  transition: background .2s var(--ease);
}
.co-qty-btn:hover { background: var(--c-cream-soft); }
.co-qty-btn:active { background: var(--c-moss-light); }
.co-qty-val { min-width: 26px; text-align: center; font-weight: 600; font-size: 0.92rem; color: var(--c-ink); }

.co-prod-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-olive);
  min-width: 64px;
  text-align: right;
}

.co-prod-row.is-empty .co-prod-total { color: var(--c-ink-soft); font-weight: 500; }

/* ============================================================
   14. PRICING + FREE DELIVERY METER
============================================================ */
.co-pricing { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--c-line); margin-bottom: 16px; }
.co-price-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; color: var(--c-ink-soft); }
.co-price-row--total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--c-line);
  font-size: 1.05rem;
}
.co-price-row--total span { color: var(--c-ink); font-weight: 600; }
.co-price-row--total strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--c-olive); }

.co-price-row--free { display: none; }
.co-price-row--free.is-shown { display: flex; }
.co-free-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--c-forest); font-weight: 600; font-size: 0.85rem; }
.co-free-tag .icon { width: 14px; height: 14px; }

.co-fdm { margin-bottom: 20px; }
.co-fdm-track { width: 100%; height: 6px; border-radius: 999px; background: var(--c-cream-soft); overflow: hidden; margin-bottom: 8px; }
.co-fdm-fill { height: 100%; background: linear-gradient(90deg, var(--c-moss), var(--c-forest)); border-radius: 999px; transition: width .4s var(--ease); }
.co-fdm-label { font-size: 0.8rem; color: var(--c-ink-soft); }
.co-fdm-label strong { color: var(--c-honey); }
.co-fdm.is-unlocked .co-fdm-label { color: var(--c-forest); font-weight: 600; }

/* ============================================================
   15. TRUST BADGES
============================================================ */
.co-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}
.co-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  letter-spacing: 0.01em;
}
.co-trust-item .icon { width: 18px; height: 18px; color: var(--c-forest); }

/* ============================================================
   16. CONFIRM BUTTON + LOADING STATES
============================================================ */
.btn--confirm {
  background: var(--c-olive);
  color: var(--c-cream);
  padding: 18px 32px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-tight);
}
.btn--confirm .icon { color: var(--c-honey-light); width: 19px; height: 19px; }
.btn--confirm:hover { background: var(--c-olive-dark); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading .icon { opacity: 0; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  top: 50%; left: 50%;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: coSpin .7s linear infinite;
}
.btn--outline.is-loading::after { border-color: rgba(54,65,41,0.25); border-top-color: var(--c-olive); }

@keyframes coSpin { to { transform: rotate(360deg); } }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}

/* ============================================================
   17. RESPONSIVE FINE-TUNING
============================================================ */
@media (max-width: 480px) {
  .co-card { padding: 26px 18px; }
  .co-trust { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
}

@media (max-width: 360px) {
  .co-prod-ctrl { flex-direction: column; align-items: flex-start; gap: 8px; }
  .co-prod-total { text-align: left; }
}
