/* =============================================================================
   Eternal Thread — Cart & Checkout
   ============================================================================= */

/* ── Shared layout ── */
.et-cart,
.et-checkout { padding-top: var(--space-48); padding-bottom: var(--space-96); }

.et-cart__inner,
.et-checkout__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ═══════════════════════════════════════════════
   CART
   ═══════════════════════════════════════════════ */

.et-cart__heading {
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: 800;
  margin-bottom: var(--space-48);
}

.et-cart__body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-48);
  align-items: start;
}

/* Cart items */
.et-cart-items { display: flex; flex-direction: column; gap: var(--space-0); }

.et-cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: var(--space-24);
  align-items: center;
  padding: var(--space-24) 0;
}
.et-cart-item + .et-cart-item {
  background: linear-gradient(to right, var(--surface-container-high), transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top;
}

.et-cart-item__image {
  width: 88px; height: 88px;
  background: var(--surface-container);
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.et-cart-item__image img { width: 100%; height: 100%; object-fit: cover; }

.et-cart-item__name {
  font-family: var(--font-display);
  font-size: var(--text-title-md);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--space-4);
  text-decoration: none;
  display: block;
}
.et-cart-item__meta {
  font-family: var(--font-ui);
  font-size: var(--text-micro);
  color: var(--on-surface-variant);
  letter-spacing: .04em;
  margin-bottom: var(--space-12);
}
.et-cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.et-cart-item__qty-btn {
  width: 28px; height: 28px;
  background: var(--surface-container);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
}
.et-cart-item__qty-btn:hover { background: var(--surface-container-high); }
.et-cart-item__qty input[type="number"] {
  width: 44px; text-align: center;
  font-family: var(--font-ui); font-size: var(--text-body-sm); font-weight: 600;
  background: none; border: none;
  border-bottom: 1px solid rgba(26,28,26,.15);
  padding: var(--space-4);
  -moz-appearance: textfield;
}
.et-cart-item__qty input::-webkit-outer-spin-button,
.et-cart-item__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

.et-cart-item__price-col { text-align: right; }
.et-cart-item__price {
  font-family: var(--font-ui);
  font-size: var(--text-title-sm);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-8);
}
.et-cart-item__remove {
  font-family: var(--font-ui);
  font-size: var(--text-micro);
  color: var(--on-surface-variant);
  text-decoration: none;
  opacity: .6;
  transition: opacity var(--transition-fast);
  display: block;
}
.et-cart-item__remove:hover { opacity: 1; color: #c00; }

/* Cart summary panel */
.et-cart-summary {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(68px + var(--space-32));
}
.et-cart-summary__heading {
  font-family: var(--font-display);
  font-size: var(--text-title-lg);
  font-weight: 700;
  margin-bottom: var(--space-24);
}
.et-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-12) 0;
  font-family: var(--font-ui);
  font-size: var(--text-body-sm);
  color: var(--on-surface-variant);
}
.et-cart-summary__row--total {
  font-weight: 700;
  font-size: var(--text-title-sm);
  color: var(--primary);
  padding-top: var(--space-16);
  margin-top: var(--space-8);
  background: linear-gradient(to right, var(--surface-container-high), transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: top;
}
.et-cart-summary .et-btn { width: 100%; margin-top: var(--space-24); justify-content: center; }

/* ═══════════════════════════════════════════════
   CHECKOUT — EDITORIAL REDESIGN
   ═══════════════════════════════════════════════ */

.et-checkout {
  padding: 0 !important;
}

/* ── Shell: two-column flexbox layout ── */
.et-checkout__shell {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 64px;
  max-width: 1200px;
  margin-inline: auto;
  padding: 72px 48px 100px;
  box-sizing: border-box;
  width: 100%;
}

.et-checkout__main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.et-checkout__summary {
  flex: 0 0 340px;
  width: 340px;
  min-width: 0;
}

/* ── Progress stepper ── */
.et-checkout__progress {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}
.et-checkout__progress::-webkit-scrollbar { display: none; }

.et-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(26,28,26,.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.et-step--active { color: #1a1c1a; }
.et-step--done   { color: #1a1c1a; }

.et-step__dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid #c4c7c7;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
  color: rgba(26,28,26,.35);
  background: transparent;
}

.et-step--active .et-step__dot {
  background: #1a1c1a;
  border-color: #1a1c1a;
  color: #fff;
}

.et-step--done .et-step__dot {
  background: #1a1c1a;
  border-color: #1a1c1a;
  color: #fff;
}

.et-step__line {
  width: 32px; height: 1px;
  background: #c4c7c7;
  flex-shrink: 0;
}

/* ── Page heading ── */
.et-checkout__heading-block { margin-bottom: 48px; }

.et-checkout__page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #1a1c1a;
  line-height: 1;
  margin-bottom: 10px;
}

.et-checkout__page-sub {
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-style: italic;
  color: #444748;
}

/* ── Form sections ── */
.et-checkout__section {
  border: none;
  padding: 0;
  margin: 0 0 52px;
}

.et-checkout__section-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26,28,26,.45);
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(26,28,26,.08);
  width: 100%;
  /* All section headers are now <div>s — no float needed */
}

.et-checkout__section-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1a1c1a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Field pairs ── */
.et-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── WooCommerce field resets ── */
.woocommerce-checkout .form-row {
  margin-bottom: 28px !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  clear: none !important;
}
.et-field-pair .form-row { margin-bottom: 0 !important; }

/* ── Labels ── */
.woocommerce-checkout .form-row label:not(.woocommerce-form__label-for-checkbox) {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(26,28,26,.5);
  margin-bottom: 10px;
}

.woocommerce-checkout .form-row label .required,
.woocommerce-checkout .form-row label abbr.required {
  color: #6a5c4c;
  text-decoration: none;
  font-style: normal;
}

/* ── Text inputs — bottom border only, editorial ── */
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: #1a1c1a;
  background: rgba(227,226,224,.28);
  border: none;
  border-bottom: 1px solid #c4c7c7;
  border-radius: 0;
  padding: 14px 0;
  transition: border-bottom-color 150ms ease, background 150ms ease;
  -webkit-appearance: none;
  outline: none;
}

.woocommerce-checkout .form-row .input-text::placeholder,
.woocommerce-checkout .form-row input::placeholder {
  color: rgba(26,28,26,.28);
  font-size: 14px;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row input[type="text"]:focus,
.woocommerce-checkout .form-row input[type="email"]:focus,
.woocommerce-checkout .form-row input[type="tel"]:focus {
  border-bottom-color: #6a5c4c;
  background: transparent;
  box-shadow: none !important;
  outline: none !important;
}

/* ── Chrome autofill — keep our bottom-border style ── */
.woocommerce-checkout .form-row .input-text:-webkit-autofill,
.woocommerce-checkout .form-row input:-webkit-autofill,
.woocommerce-checkout .form-row input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #faf9f6 inset !important;
  -webkit-text-fill-color: #1a1c1a !important;
  border: none !important;
  border-bottom: 1px solid #6a5c4c !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ── Hard reset on all WC form-row-first/last float inside our grid ── */
.et-field-pair .form-row-first,
.et-field-pair .form-row-last {
  float: none !important;
  width: 100% !important;
  clear: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Select — bottom border only ── */
.woocommerce-checkout .form-row select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 15px;
  color: #1a1c1a;
  background-color: rgba(227,226,224,.28);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' viewBox='0 0 11 6'%3E%3Cpath d='M1 1l4.5 4L10 1' stroke='%231a1c1a' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  border: none;
  border-bottom: 1px solid #c4c7c7;
  border-radius: 0;
  padding: 14px 28px 14px 0;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  transition: border-bottom-color 150ms ease;
  outline: none;
}

.woocommerce-checkout .form-row select:focus {
  border-bottom-color: #6a5c4c;
  background-color: transparent;
  outline: none;
}

/* ── Validation states ── */
.woocommerce-checkout .form-row.woocommerce-invalid .input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-bottom-color: #ba1a1a;
}
.woocommerce-checkout .form-row.woocommerce-validated .input-text,
.woocommerce-checkout .form-row.woocommerce-validated select {
  border-bottom-color: #6a5c4c;
}
.woocommerce-checkout .form-row.woocommerce-invalid .woocommerce-error {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #ba1a1a;
  margin-top: 4px;
  display: block;
  list-style: none;
  padding: 0;
}

/* ── Continue to payment CTA ── */
.et-checkout__continue {
  margin-bottom: 52px;
}
.et-checkout__continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1a1c1a;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 18px 32px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.et-checkout__continue-btn:hover { opacity: .85; }
.et-checkout__continue-btn svg { flex-shrink: 0; }

/* ── Payment methods ── */
.wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wc_payment_method {
  border-bottom: 1px solid rgba(26,28,26,.07);
  padding: 16px 0;
}
.wc_payment_method:first-child { border-top: 1px solid rgba(26,28,26,.07); }

.wc_payment_method > label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-display) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  color: #1a1c1a !important;
  margin: 0 !important;
}

.wc_payment_method > label img { height: 18px; width: auto; margin-left: auto; opacity: .65; }
.wc_payment_method input[type="radio"] { accent-color: #1a1c1a; flex-shrink: 0; width: 16px; height: 16px; }

.payment_box {
  background: none;
  padding: 10px 0 4px 28px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: #444748;
  border-top: none;
}

/* PayFast redirect message in the payment box */
.et-payfast-redirect-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #444748;
  line-height: 1.5;
  margin: 0;
}
.et-payfast-redirect-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .55;
}
.et-payfast-redirect-note strong {
  font-weight: 600;
  color: #1a1c1a;
}

/* ── WC #payment wrapper (rendered by WooCommerce) ── */
#payment {
  background: none;
  padding: 0;
  margin: 0;
}

#payment .form-row.place-order {
  margin: 0 !important;
  padding: 36px 0 0 !important;
  float: none !important;
  width: 100% !important;
}

/* ── Place order button — square, editorial ── */
.et-checkout__place-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #1a1c1a;
  color: #fff;
  border: none;
  border-radius: 0;
  padding: 20px 28px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 200ms ease;
  box-shadow: none;
}

.et-checkout__place-order:hover { opacity: .88; transform: none; box-shadow: none; }
.et-checkout__place-order:active { opacity: .72; }

.et-checkout__place-order-label { letter-spacing: .16em; }

.et-checkout__place-order-amount {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  opacity: 1;
}

/* ── PayFast accepted methods + secure note ── */
.et-checkout__payfast-note {
  margin-top: 18px;
}

.et-checkout__payfast-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.et-checkout__payfast-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(26,28,26,.5);
  border: 1px solid rgba(26,28,26,.15);
  padding: 4px 8px;
  border-radius: 2px;
}

/* ── Secure note ── */
.et-checkout__secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26,28,26,.35);
  margin-top: 16px;
}
.et-checkout__secure-note svg { opacity: .4; flex-shrink: 0; }

/* ── Terms ── */
.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(26,28,26,.45);
  line-height: 1.6;
}
.woocommerce-terms-and-conditions-wrapper a { color: #6a5c4c; }

/* ══ ORDER SUMMARY (right column) ══ */
.et-checkout__summary {
  position: sticky;
  top: 88px;
  background: #efeeeb;
  border-radius: 8px;
  overflow: visible;
  border: none;
}

.et-checkout__summary-inner {
  padding: 44px 36px;
}

.et-checkout__summary-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(26,28,26,.45);
  margin-bottom: 28px;
}

/* Items */
.et-checkout__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.et-checkout__item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: start;
}

.et-checkout__item-img {
  position: relative;
  width: 68px; height: 84px;
  border-radius: 4px;
  overflow: hidden;
  background: #d5d3ce;
  flex-shrink: 0;
}
.et-checkout__item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.et-checkout__item-qty {
  position: absolute;
  top: -5px; right: -5px;
  width: 18px; height: 18px;
  background: #1a1c1a;
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #efeeeb;
}

.et-checkout__item-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1c1a;
  margin: 2px 0 5px;
  line-height: 1.35;
}

.et-checkout__item-variant {
  font-family: var(--font-editorial);
  font-size: 13px;
  font-style: italic;
  color: #444748;
  margin: 0;
}

.et-checkout__item-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #1a1c1a;
  white-space: nowrap;
  margin-top: 2px;
}

/* Totals */
.et-checkout__totals {
  border-top: 1px solid rgba(26,28,26,.1);
  padding-top: 16px;
}

.et-checkout__totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(26,28,26,.45);
  padding: 7px 0;
}

.et-checkout__totals-row span:last-child {
  font-weight: 700;
  color: #1a1c1a;
  letter-spacing: -.01em;
  font-size: 13px;
  text-transform: none;
}

.et-checkout__totals-note {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: #6a5c4c;
  font-weight: 400;
}

.et-checkout__totals-row--total {
  font-size: 12px;
  font-weight: 900;
  color: #1a1c1a;
  border-top: 1px solid rgba(26,28,26,.1);
  margin-top: 8px;
  padding-top: 18px;
  letter-spacing: .04em;
}
.et-checkout__totals-row--total span:first-child {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #1a1c1a;
}
.et-checkout__totals-row--total span:last-child {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #1a1c1a;
}

/* Trust list */
.et-checkout__trust {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(26,28,26,.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.et-checkout__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26,28,26,.42);
}

.et-checkout__trust svg { flex-shrink: 0; opacity: .45; }

/* ══ LAYOUT FIXES — override Storefront's sidebar float ══ */
.woocommerce-cart #primary.content-area,
.woocommerce-checkout #primary.content-area {
  width: 100% !important;
  float: none !important;
  display: block !important;
}
.woocommerce-checkout .site-main,
.woocommerce-cart .site-main {
  overflow: hidden;
}

.et-cart__body > .et-cart-items   { grid-column: 1; grid-row: 1; }
.et-cart__body > .et-cart-summary { grid-column: 2; grid-row: 1; }

/* ── Suppress Storefront page header ── */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header { display: none; }

/* ── Link resets ── */
.et-cart-item a.et-cart-item__name,
.et-cart-items a.et-cart-item__name { text-decoration: none; color: var(--primary); }

/* ── WooCommerce flash notices ── */
.woocommerce-notices-wrapper {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 48px;
}
.woocommerce-message,
.woocommerce-info {
  background: #f4f3f1;
  border-top: 3px solid #6a5c4c;
  color: #1a1c1a;
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.woocommerce-message::before { display: none; }
.woocommerce-message .button,
.woocommerce-info .button {
  background: #1a1c1a;
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
}

.woocommerce-cart .widget-area,
.woocommerce-checkout .widget-area { display: none !important; }

/* ═══════════════════════════════════════════════
   DELIVERY METHOD SECTION
   ═══════════════════════════════════════════════ */

/* ── Production notice ── */
.et-delivery-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 18px;
  background: rgba(106,92,76,.07);
  border-left: 2px solid #6a5c4c;
  margin-bottom: 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #444748;
  line-height: 1.55;
  max-width: none;
}
.et-delivery-notice svg { flex-shrink: 0; margin-top: 1px; opacity: .6; }

/* ── Method radio cards ── */
.et-delivery-options {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  border-top: 1px solid rgba(26,28,26,.07);
}

.et-delivery-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(26,28,26,.07);
  cursor: pointer;
  transition: background 130ms ease;
  background: transparent;
}

.et-delivery-option:hover { background: rgba(26,28,26,.025); }

.et-delivery-option.is-selected {
  background: rgba(26,28,26,.045);
}

.et-delivery-radio {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #1a1c1a;
  cursor: pointer;
  margin: 0;
}

.et-delivery-option__body {
  flex: 1;
  min-width: 0;
}

.et-delivery-option__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.et-delivery-option__name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1a1c1a;
}

.et-delivery-option.is-selected .et-delivery-option__name { color: #1a1c1a; }

.et-delivery-option__price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #1a1c1a;
  white-space: nowrap;
  flex-shrink: 0;
}
/* strip WC currency wrapper formatting */
.et-delivery-option__price .woocommerce-Price-amount { font: inherit; color: inherit; }
.et-delivery-option__price .woocommerce-Price-currencySymbol { font: inherit; }

.et-delivery-option__time {
  font-family: var(--font-editorial);
  font-size: 12px;
  font-style: italic;
  color: #6a5c4c;
  margin-top: 3px;
  display: block;
}

/* Empty state when packages haven't loaded */
.et-delivery-empty {
  font-family: var(--font-editorial);
  font-size: 13px;
  font-style: italic;
  color: rgba(26,28,26,.45);
  padding: 16px 0;
  max-width: none;
}

/* ── Pep Paxi conditional fields ── */
.et-paxi-fields {
  margin: 16px 0 24px;
  padding: 18px 20px;
  background: rgba(227,226,224,.3);
  border-left: 2px solid #6a5c4c;
}

.et-paxi-fields__note {
  font-family: var(--font-editorial);
  font-size: 13px;
  font-style: italic;
  color: #444748;
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: none;
}

.et-paxi-fields .form-row { margin-bottom: 0 !important; }

/* ── Delivery terms accordion (native <details>) ── */
.et-delivery-terms {
  margin-top: 22px;
  border-top: 1px solid rgba(26,28,26,.07);
}

.et-delivery-terms__toggle {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(26,28,26,.42);
  user-select: none;
}
.et-delivery-terms__toggle::-webkit-details-marker { display: none; }
.et-delivery-terms__toggle::marker { display: none; }
.et-delivery-terms__toggle::before {
  content: '+';
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  color: rgba(26,28,26,.3);
}
.et-delivery-terms[open] .et-delivery-terms__toggle::before { content: '−'; }

.et-delivery-terms__body {
  padding: 4px 0 18px 0;
  font-family: var(--font-editorial);
  font-size: 13px;
  color: #444748;
  line-height: 1.65;
}
.et-delivery-terms__body p {
  margin: 0 0 12px;
  max-width: none;
  font-size: 13px;
  color: #444748;
}
.et-delivery-terms__body p:last-child { margin-bottom: 0; }
.et-delivery-terms__body strong {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1c1a;
}
.et-delivery-terms__body a { color: #6a5c4c; text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — CART & CHECKOUT
   ═══════════════════════════════════════════════ */

/* ── Tablet (≤ 1000px) ── */
@media (max-width: 1000px) {
  /* Checkout: single-column, summary moves to top */
  .et-checkout__shell {
    flex-direction: column;
    padding: 48px 32px 80px;
    gap: 48px;
  }
  .et-checkout__summary {
    position: static;
    flex: 1 1 auto;
    width: 100%;
    order: -1;
  }
  .et-checkout__main { flex: 1 1 auto; width: 100%; }

  /* Cart: summary stacks below items — reset the explicit grid-column placement */
  .et-cart__body { grid-template-columns: 1fr; }
  .et-cart__body > .et-cart-items   { grid-column: auto; grid-row: auto; }
  .et-cart__body > .et-cart-summary { grid-column: auto; grid-row: auto; }
  .et-cart-summary { position: static; width: 100%; }
}

/* ── Small tablet / large phone (≤ 768px) ── */
@media (max-width: 768px) {
  /* Cart heading scale */
  .et-cart__heading {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--space-32);
  }
  /* Cart summary tighter */
  .et-cart-summary { padding: var(--space-24); }

  /* Checkout notices — full gutter */
  .woocommerce-notices-wrapper { padding: 0 var(--gutter); }

  /* Checkout progress — smaller dots + hide step labels to save space */
  .et-step__label { display: none; }
  .et-checkout__progress { gap: 10px; margin-bottom: 40px; }
  .et-step__line { width: 20px; }

  /* Checkout heading tighter */
  .et-checkout__heading-block { margin-bottom: 32px; }
  .et-checkout__page-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .et-checkout__page-sub  { font-size: 1rem; }

  /* Checkout summary inner padding */
  .et-checkout__summary-inner { padding: 28px 20px; }
}

/* ── Phone (≤ 600px) ── */
@media (max-width: 600px) {
  /* ── Shared ── */
  .et-cart, .et-checkout { padding-top: var(--space-32); padding-bottom: var(--space-64); }
  .woocommerce-notices-wrapper { padding: 0 16px; }

  /* ─ CART ─ */
  .et-cart__heading {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
    margin-bottom: var(--space-24);
  }

  /* Cart item: restructure from 3-col to 2-col — image | [name+meta+qty] — price below */
  .et-cart-item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: var(--space-20) 0;
    align-items: start;
  }
  /* Price + remove moves to a full-width row below */
  .et-cart-item__price-col {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 4px;
    border-top: 1px solid rgba(26,28,26,.05);
    margin-top: 4px;
  }
  .et-cart-item__price { margin-bottom: 0; }
  /* Smaller thumbnail on phones */
  .et-cart-item__image { width: 72px; height: 72px; }

  /* Cart summary — full-width, minimal padding */
  .et-cart-summary { padding: var(--space-20); border-radius: var(--radius-lg); }
  .et-cart-summary__heading { font-size: var(--text-title-sm); }

  /* ─ CHECKOUT ─ */
  .et-checkout__shell { padding: 24px 16px 56px; gap: 32px; }
  .et-checkout__page-title { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .et-checkout__page-sub  { font-size: 0.95rem; }
  .et-checkout__summary-inner { padding: 24px 16px; }
  .et-checkout__heading-block { margin-bottom: 24px; }
  .et-checkout__section  { margin-bottom: 36px; }

  /* Field pairs stack to single column */
  .et-field-pair { grid-template-columns: 1fr; gap: 0; }
  .et-field-pair .form-row { margin-bottom: 24px !important; }

  /* Continue-to-payment button — full width on phones */
  .et-checkout__continue-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  /* Delivery option cards — tighter on phones */
  .et-delivery-option { padding: 12px 12px; gap: 12px; }
  .et-delivery-option__name  { font-size: 10px; }
  .et-delivery-option__price { font-size: 13px; }
  .et-delivery-option__time  { font-size: 11px; }
  .et-delivery-notice        { padding: 10px 14px; font-size: 11px; }

  /* Paxi fields */
  .et-paxi-fields { padding: 14px 16px; }

  /* Checkout progress — dots only, very compact */
  .et-checkout__progress { gap: 8px; margin-bottom: 28px; }
  .et-step__dot  { width: 20px; height: 20px; font-size: 9px; }
  .et-step__line { width: 16px; }

  /* Order summary items — tighter on phone */
  .et-checkout__item { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .et-checkout__item-img { width: 56px; height: 68px; }
  .et-checkout__item-name { font-size: 10px; }

  /* PayFast button — full width, centred */
  .et-checkout__place-order { padding: 16px 20px; }
  .et-checkout__place-order-amount { font-size: 14px; }

  /* WC error/info notices on mobile */
  .woocommerce-message,
  .woocommerce-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .woocommerce-message .button,
  .woocommerce-info .button { align-self: flex-end; }
}
