/* ==========================================================================
   TPE Commerce — Frontend Styles
   Cart · Checkout · Order Confirmation · Account · Toast · Spinner
   ========================================================================== */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --tpec-ink:       #2d362a;
  --tpec-paper:     #fff;
  --tpec-beige:     #efece1;
  --tpec-beige-mid: #e8e4d6;
  --tpec-sage:      #879678;
  --tpec-sage-lt:   #b2c2a3;
  --tpec-sage-dk:   #6d7c5f;
  --tpec-red:       #c0392b;
  --tpec-green:     #2d6a2d;
  --tpec-font-body: 'Montserrat', sans-serif;
  --tpec-font-disp: 'Cormorant Garamond', Georgia, serif;
  --tpec-transition: 160ms ease;
}

/* ── Notices ─────────────────────────────────────────────────────────────── */
.tpec-notice {
  padding: .85rem 1.1rem;
  font-size: .875rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  border-left: 3px solid var(--tpec-sage);
}
.tpec-notice--error   { background: #fdf0ef; color: var(--tpec-red);   border-color: var(--tpec-red);   }
.tpec-notice--success { background: #eef7ee; color: var(--tpec-green); border-color: var(--tpec-green); }
.tpec-notice--info    { background: var(--tpec-beige); color: var(--tpec-ink); }

/* ── Checkout error ──────────────────────────────────────────────────────── */
.tpec-checkout-error {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: #fdf0ef;
  color: var(--tpec-red);
  border-left: 3px solid var(--tpec-red);
  font-size: .85rem;
  display: none;
}
.tpec-checkout-error.visible { display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   CART PAGE — hero + grid + items + summary
   ══════════════════════════════════════════════════════════════════════════ */
.tpec-cart-section {
  background: #ffffff;
  padding: 0 0 5rem;
}
@media (min-width: 768px) { .tpec-cart-section { padding: 0 0 7rem; } }

/* Hero strip */
.tpec-page-hero-strip {
  background: #efece1;
  padding: 3.5rem 0 3rem;
  text-align: center;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .tpec-page-hero-strip { padding: 5rem 0 4.5rem; margin-bottom: 5rem; }
}
.tpec-page-hero-strip .eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.tpec-page-hero-strip h1 {
  font-family: var(--tpec-font-disp) !important;
  font-weight: 500 !important;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem) !important;
  line-height: 1.04;
  margin: 0 0 1rem !important;
}
.tpec-page-hero-strip .hero-sub {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.55);
}
.tpec-page-hero-strip .hero-sub .accent { color: #879678; }
.tpec-page-hero-strip .hero-sub .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(45, 54, 42, 0.3);
  border-radius: 50%;
  margin: 0 0.65rem;
  vertical-align: middle;
}

/* Step indicator (checkout hero) */
.tpec-steps {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.5);
}
.tpec-step { display: inline-flex; align-items: center; gap: 0.5rem; }
.tpec-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(45, 54, 42, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tpec-font-disp);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(45, 54, 42, 0.5);
}
.tpec-step.done .num { background: #b2c2a3; border-color: #b2c2a3; color: #2d362a; }
.tpec-step.active .num { background: #879678; border-color: #879678; color: #ffffff; }
.tpec-step.active { color: #2d362a; }
.tpec-step-sep { width: 28px; height: 1px; background: rgba(45, 54, 42, 0.2); }

/* Cart two-column grid */
.tpec-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .tpec-cart-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* Items column */
.tpec-cart-items { display: flex; flex-direction: column; gap: 1.25rem; }

.tpec-items-header {
  display: none;
  grid-template-columns: 1fr 110px 90px 30px;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(135, 150, 120, 0.25);
  margin-bottom: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.5);
}
@media (min-width: 768px) { .tpec-items-header { display: grid; } }
.tpec-items-header .col-qty { text-align: center; }
.tpec-items-header .col-total { text-align: right; }

/* Individual cart item */
.tpec-cart-item {
  background: #ffffff;
  padding: 1rem;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  border: 1px solid rgba(135, 150, 120, 0.18);
  transition: border-color 250ms ease, transform 300ms ease;
  position: relative;
  align-items: start;
}
@media (min-width: 640px) {
  .tpec-cart-item {
    grid-template-columns: 120px 1fr 110px 90px 30px;
    gap: 1.5rem;
    padding: 1.25rem;
    align-items: center;
  }
}
@media (min-width: 768px) { .tpec-cart-item { padding: 1.5rem; } }
.tpec-cart-item:hover { border-color: rgba(135, 150, 120, 0.45); }

/* Matte-framed image */
.tpec-item-img-wrap {
  background: #f5f3eb;
  padding: 6px;
  align-self: stretch;
}
@media (min-width: 640px) { .tpec-item-img-wrap { padding: 8px; } }
.tpec-item-img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #f5f3eb;
  display: block;
}
@media (min-width: 640px) { .tpec-item-img { height: 112px; } }
.tpec-img-placeholder { background: #f5f3eb; }

/* Item info */
.tpec-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.tpec-item-name {
  font-family: var(--tpec-font-disp);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
  color: #2d362a;
  transition: color 200ms;
}
.tpec-item-name:hover { color: #879678; }
.tpec-item-meta {
  font-size: 0.72rem;
  color: rgba(45, 54, 42, 0.6);
  line-height: 1.55;
}
.tpec-item-meta .pipe {
  display: inline-block;
  margin: 0 0.4rem;
  color: rgba(45, 54, 42, 0.25);
}
.tpec-item-notes {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.tpec-notes-label {
  font-weight: 600;
  color: rgba(45, 54, 42, 0.7);
}
.tpec-notes-text {
  font-style: italic;
}
.tpec-item-price {
  font-family: var(--tpec-font-disp);
  font-size: 0.95rem;
  color: rgba(45, 54, 42, 0.75);
  font-weight: 500;
}
.tpec-item-price .each {
  font-family: var(--tpec-font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(45, 54, 42, 0.45);
  font-weight: 400;
  margin-left: 0.35rem;
}
.tpec-item-delivery {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: rgba(45, 54, 42, 0.6);
  background: #efece1;
  padding: 0.35rem 0.7rem;
  width: fit-content;
}
.tpec-item-delivery .label {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
}

/* Qty stepper */
.tpec-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(135, 150, 120, 0.4);
  background: #ffffff;
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  width: fit-content;
}
@media (min-width: 640px) {
  .tpec-qty-wrap { grid-column: auto; margin-top: 0; justify-self: center; }
}
.tpec-qty-btn {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #879678;
  transition: background 200ms;
  font-family: var(--tpec-font-disp);
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
}
.tpec-qty-btn:hover { background: #efece1; }
.tpec-qty-input {
  width: 38px; height: 36px;
  text-align: center;
  border: 0;
  border-left: 1px solid rgba(135, 150, 120, 0.25);
  border-right: 1px solid rgba(135, 150, 120, 0.25);
  font-family: var(--tpec-font-disp);
  font-size: 0.95rem;
  color: #2d362a;
  background: transparent;
  -moz-appearance: textfield;
}
.tpec-qty-input::-webkit-outer-spin-button,
.tpec-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Item right — total + remove */
.tpec-item-right {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(135, 150, 120, 0.15);
}
@media (min-width: 640px) {
  .tpec-item-right {
    grid-column: auto;
    padding-top: 0; margin-top: 0; border-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    justify-content: center;
  }
}
.tpec-item-total {
  font-family: var(--tpec-font-disp);
  font-size: 1.35rem;
  font-weight: 500;
  color: #2d362a;
  line-height: 1;
}
.tpec-remove-btn {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.5);
  padding: 0;
  transition: color 200ms;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--tpec-font-body);
}
.tpec-remove-btn:hover { color: #6d7c5f; }

/* Continue shopping row */
.tpec-continue-row {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(135, 150, 120, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.tpec-continue-row .left-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  transition: color 200ms;
  text-decoration: none;
}
.tpec-continue-row .left-link:hover { color: #2d362a; }

/* Empty cart */
.tpec-cart-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: rgba(45, 54, 42, 0.55);
}
.tpec-cart-empty p { margin: 0 0 1.5rem; font-size: 1rem; }

/* ── Cart Summary sidebar ───────────────────────────────────────────────── */
.tpec-cart-summary {
  background: #efece1;
  padding: 2rem 1.75rem;
  position: relative;
}
@media (min-width: 768px) { .tpec-cart-summary { padding: 2.5rem 2.25rem; } }
@media (min-width: 1024px) { .tpec-cart-summary { position: sticky; top: 100px; } }
body.scrolled .tpec-cart-summary { top: 70px; }

.tpec-cart-summary .summary-label {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  margin-bottom: 0.65rem;
}
.tpec-cart-summary h3 {
  font-family: var(--tpec-font-disp) !important;
  font-size: 1.65rem !important;
  font-weight: 500 !important;
  line-height: 1.1;
  margin: 0 0 1.75rem !important;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(135, 150, 120, 0.3);
}
.tpec-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  color: rgba(45, 54, 42, 0.78);
}
.tpec-summary-row span:first-child { color: rgba(45, 54, 42, 0.6); }
.tpec-summary-row span:last-child {
  font-family: var(--tpec-font-disp);
  font-size: 1.05rem;
  font-weight: 500;
  color: #2d362a;
}
.tpec-promo-row {
  margin: 1rem 0 1.25rem;
  padding: 1rem 0;
  border-top: 1px dashed rgba(135, 150, 120, 0.3);
  border-bottom: 1px dashed rgba(135, 150, 120, 0.3);
  display: flex;
  gap: 0.5rem;
}
.tpec-promo-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.35);
  padding: 0.65rem 0.8rem;
  font-family: var(--tpec-font-body);
  font-size: 0.8rem;
  color: #2d362a;
  font-weight: 500;
}
.tpec-promo-input::placeholder { color: rgba(45, 54, 42, 0.45); font-weight: 400; }
.tpec-promo-input:focus { outline: none; border-color: #879678; }
.tpec-promo-btn {
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.35);
  padding: 0 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  transition: all 200ms;
  cursor: pointer;
  font-family: var(--tpec-font-body);
}
.tpec-promo-btn:hover { background: #879678; color: #ffffff; border-color: #879678; }

.tpec-summary-total {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(135, 150, 120, 0.3);
  align-items: baseline;
}
.tpec-summary-total span:first-child {
  font-family: var(--tpec-font-disp) !important;
  font-size: 1.35rem !important;
  color: #2d362a !important;
  font-weight: 500;
}
.tpec-summary-total span:last-child {
  font-family: var(--tpec-font-disp) !important;
  font-size: 1.85rem !important;
  color: #2d362a !important;
  font-weight: 500;
}
.tpec-summary-note {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(45, 54, 42, 0.55);
  font-style: italic;
}
.tpec-checkout-btn {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  background: #879678;
  color: #ffffff;
  font-family: var(--tpec-font-body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 1.15rem 2rem;
  transition: background 200ms;
  text-decoration: none;
}
.tpec-checkout-btn:hover { background: #6d7c5f; color: #fff; }

.tpec-trust-badges {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(135, 150, 120, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.74rem;
  color: rgba(45, 54, 42, 0.7);
  line-height: 1.4;
}
.tpec-trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.tpec-trust-badges .icon { color: #879678; flex-shrink: 0; }

.tpec-payment-methods-row {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(135, 150, 120, 0.2);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.tpec-payment-methods-row .label {
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.45);
  margin-right: 0.5rem;
}
.tpec-payment-methods-row .pay-badge {
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.25);
  padding: 0.4rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(45, 54, 42, 0.6);
  font-weight: 600;
  text-transform: uppercase;
}

/* Mini cart badge animation */
.tpec-cart-count.updated {
  animation: tpec-badge-pop .4s cubic-bezier(.175,.885,.32,1.5);
}
@keyframes tpec-badge-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.tpec-checkout-section {
  background: #ffffff;
  padding: 0 0 5rem;
}
@media (min-width: 768px) { .tpec-checkout-section { padding: 0 0 7rem; } }

/* Checkout two-column grid */
.tpec-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .tpec-checkout-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
}

/* Form column */
.tpec-checkout-form-col { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .tpec-checkout-form-col { gap: 3rem; } }

/* Express checkout row */
.tpec-express-row {
  padding: 1.5rem 0;
  border-bottom: 1px dashed rgba(135, 150, 120, 0.4);
}
.tpec-express-label {
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  margin-bottom: 1rem;
}
.tpec-express-btns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
}
.tpec-express-btn {
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.4);
  padding: 0.75rem 1rem;
  height: 52px;
  transition: border-color 200ms, background 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Express checkout logo images */
.tpec-express-logo {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
}
.tpec-express-logo--apple  { height: 36px; width: 36px; }
.tpec-express-logo--gpay   { height: 28px; width: 28px; }
.tpec-express-logo--paypal { height: 32px; width: 32px; }
.tpec-express-btn:hover { border-color: #879678; background: #f7f5ef; }
.tpec-express-sep {
  margin-top: 1.5rem;
  text-align: center;
  position: relative;
}
.tpec-express-sep::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(135, 150, 120, 0.3);
}
.tpec-express-sep span {
  position: relative;
  background: #ffffff;
  padding: 0 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.45);
}

/* Form section block */
.tpec-form-section { padding: 0; }
.tpec-section-title {
  font-family: var(--tpec-font-disp) !important;
  font-weight: 500 !important;
  font-size: 1.45rem !important;
  line-height: 1.2;
  margin: 0 0 1.5rem !important;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(135, 150, 120, 0.25);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.tpec-section-title .num {
  font-family: var(--tpec-font-disp);
  font-style: italic;
  color: #879678;
  font-size: 0.85em;
}
.tpec-section-title .helper {
  margin-left: auto;
  font-family: var(--tpec-font-body);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.5);
}

/* Form rows */
.tpec-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1rem;
  margin-bottom: 1.25rem;
}
.tpec-form-row:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .tpec-form-row { grid-template-columns: 1fr 1fr; } }
.tpec-form-row.tpec-row-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tpec-form-row.tpec-row-3 { grid-template-columns: 2fr 1fr 1fr; } }

/* Field labels + inputs */
.field-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  margin-bottom: 0.4rem;
}
.field-label span { color: rgba(45, 54, 42, 0.4); margin-left: 0.15rem; }
.field {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.4);
  padding: 0.85rem 1rem;
  font-family: var(--tpec-font-body);
  font-size: 0.9rem;
  color: #2d362a;
  font-weight: 500;
  transition: border-color 200ms;
  box-sizing: border-box;
}
.field::placeholder { color: rgba(45, 54, 42, 0.45); font-weight: 400; }
.field:focus { outline: none; border-color: #879678; box-shadow: 0 0 0 3px rgba(135, 150, 120, 0.15); }
textarea.field { resize: vertical; min-height: 96px; line-height: 1.55; }
.field-hint { font-size: 0.74rem; color: rgba(45, 54, 42, 0.6); margin: 0.55rem 0 0; line-height: 1.5; }
.field-hint .accent { color: #879678; font-weight: 500; }

/* Gift toggle */
.tpec-gift-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #efece1;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  cursor: pointer;
  transition: background 200ms;
}
.tpec-gift-toggle:hover { background: #e8e3d2; }
.tpec-gift-toggle input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid #879678;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
}
.tpec-gift-toggle input[type="checkbox"]:checked { background: #879678; }
.tpec-gift-toggle input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: solid #ffffff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.tpec-gift-toggle .label-text { display: flex; flex-direction: column; gap: 0.15rem; }
.tpec-gift-toggle .title { font-family: var(--tpec-font-disp); font-size: 1rem; font-weight: 500; color: #2d362a; }
.tpec-gift-toggle .sub { font-size: 0.72rem; color: rgba(45, 54, 42, 0.6); }

/* Gift recipient block */
.tpec-gift-recipient {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(135, 150, 120, 0.4);
  display: none;
}
.tpec-gift-recipient.show { display: block; }
.tpec-gift-recipient .mini-label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.55);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tpec-gift-recipient .mini-label::before {
  content: '';
  width: 12px; height: 1px;
  background: #879678;
}

/* ── Payment gateway option cards ────────────────────────────────────────── */
.tpec-payment-methods { display: flex; flex-direction: column; gap: 0.65rem; }

.tpec-gateway-option {
  display: block;
  border: 1px solid rgba(135, 150, 120, 0.4);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
  position: relative;
  overflow: hidden;
}
.tpec-gateway-option:hover { border-color: #879678; }
.tpec-gateway-option.selected { border-color: #879678; background: #f9faf7; }
.tpec-gateway-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tpec-gateway-label {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
}
/* Custom radio circle */
.tpec-gateway-label::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(135, 150, 120, 0.6);
  background: #ffffff;
  margin-left: 3px;
  transition: all 200ms;
}
.tpec-gateway-option.selected .tpec-gateway-label::before {
  border-color: #879678;
  background: radial-gradient(circle, #879678 45%, #ffffff 50%);
}
.tpec-gateway-label .title-row { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.tpec-gateway-label .title {
  font-family: var(--tpec-font-disp);
  font-size: 1.1rem;
  font-weight: 500;
  color: #2d362a;
  line-height: 1.2;
}
.tpec-gateway-label small {
  font-size: 0.72rem;
  color: rgba(45, 54, 42, 0.6);
  font-family: var(--tpec-font-body);
  font-weight: 400;
}
.tpec-gateway-badges { display: flex; gap: 0.4rem; align-items: center; }
.tpec-gateway-badges .pay {
  background: #efece1;
  padding: 0.3rem 0.55rem;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(45, 54, 42, 0.65);
}

/* Expanded gateway fields */
.tpec-gateway-fields {
  border-top: 1px solid rgba(135, 150, 120, 0.25);
  padding: 1.25rem 1.25rem 1.4rem;
  background: #f9faf7;
  display: none;
}
.tpec-gateway-option.selected .tpec-gateway-fields { display: block; }

/* Stripe card element */
#tpec-card-element {
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.4);
  padding: 0.85rem 1rem;
  min-height: 46px;
  margin-bottom: 0.75rem;
}
#tpec-card-element.StripeElement--focus { border-color: #879678; box-shadow: 0 0 0 3px rgba(135, 150, 120, 0.15); }
#tpec-card-element.StripeElement--invalid { border-color: var(--tpec-red); }
#tpec-card-errors { color: var(--tpec-red); font-size: 0.82rem; margin-top: 0.4rem; min-height: 1.2em; }
#tpec-paypal-button-container { min-height: 50px; }
#tpec-square-card-form {
  background: #ffffff;
  border: 1px solid rgba(135, 150, 120, 0.4);
  padding: 0.85rem 1rem;
  min-height: 46px;
}
.tpec-bank-note, .tpec-cash-note {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(45, 54, 42, 0.7);
}

/* Terms */
.tpec-terms {
  margin-top: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.tpec-terms input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  border: 1px solid #879678;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}
.tpec-terms input[type="checkbox"]:checked { background: #879678; }
.tpec-terms input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #ffffff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.tpec-terms label { font-size: 0.78rem; line-height: 1.6; color: rgba(45, 54, 42, 0.78); }
.tpec-terms label a { color: #879678; border-bottom: 1px solid rgba(135, 150, 120, 0.5); padding-bottom: 1px; }

/* Place order */
.tpec-place-order-wrap { margin-top: 0; }
.tpec-place-order {
  width: 100%;
  background: #879678;
  color: #ffffff;
  font-family: var(--tpec-font-body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 1.2rem 2rem;
  transition: background 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  border: 0;
  cursor: pointer;
}
.tpec-place-order:hover { background: #6d7c5f; }
.tpec-place-order:disabled { opacity: 0.65; pointer-events: none; }
.tpec-place-order .total-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.85rem;
  font-family: var(--tpec-font-disp);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}
.tpec-secure-note {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(45, 54, 42, 0.5);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}
.tpec-secure-note svg { color: #879678; }

/* ── Checkout summary sidebar ────────────────────────────────────────────── */
.tpec-checkout-summary-col {
  background: #efece1;
  padding: 2rem 1.75rem;
  position: relative;
}
@media (min-width: 768px) { .tpec-checkout-summary-col { padding: 2.5rem 2.25rem; } }
@media (min-width: 1024px) { .tpec-checkout-summary-col { position: sticky; top: 100px; } }
body.scrolled .tpec-checkout-summary-col { top: 70px; }

.tpec-checkout-summary-col .summary-label {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  margin-bottom: 0.65rem;
}
.tpec-checkout-summary-col h3 {
  font-family: var(--tpec-font-disp) !important;
  font-size: 1.65rem !important;
  font-weight: 500 !important;
  line-height: 1.1;
  margin: 0 0 1.5rem !important;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(135, 150, 120, 0.3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.tpec-checkout-summary-col h3 .edit-link {
  font-family: var(--tpec-font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: #879678;
  transition: color 200ms;
  text-decoration: none;
}
.tpec-checkout-summary-col h3 .edit-link:hover { color: #2d362a; }

/* Summary line items */
.tpec-summary-items { margin-bottom: 1.5rem; }
.tpec-summary-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(135, 150, 120, 0.25);
}
.tpec-summary-item:last-child { border-bottom: 0; }
.tpec-summary-item-img-wrap {
  background: #ffffff;
  padding: 4px;
  position: relative;
}
.tpec-summary-item-img-wrap .qty-badge {
  position: absolute;
  top: -7px; right: -7px;
  background: #2d362a;
  color: #ffffff;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.tpec-summary-item-img {
  width: 100%;
  height: 48px;
  object-fit: cover;
  background: #f5f3eb;
  display: block;
}
.tpec-summary-item-info { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.tpec-summary-item-info .name {
  font-family: var(--tpec-font-disp);
  font-size: 1rem;
  font-weight: 500;
  color: #2d362a;
  line-height: 1.2;
}
.tpec-summary-item-info .meta { font-size: 0.7rem; color: rgba(45, 54, 42, 0.55); }
.tpec-summary-item-price {
  font-family: var(--tpec-font-disp);
  font-size: 1rem;
  font-weight: 500;
  color: #2d362a;
  white-space: nowrap;
}
.tpec-summary-divider { border-top: 1px solid rgba(135, 150, 120, 0.3); margin: 1rem 0; }

/* Checkout summary rows reuse .tpec-summary-row — override slightly */
.tpec-checkout-summary-col .tpec-summary-row { padding: 0.5rem 0; }
.tpec-checkout-summary-col .tpec-summary-row span:last-child { font-size: 1rem; }
.tpec-checkout-summary-col .tpec-summary-total { margin-top: 0.75rem; }
.tpec-checkout-summary-col .tpec-summary-total span:first-child {
  font-family: var(--tpec-font-disp) !important;
  font-size: 1.4rem !important;
  color: #2d362a !important;
  font-weight: 500;
}
.tpec-checkout-summary-col .tpec-summary-total span:last-child {
  font-family: var(--tpec-font-disp) !important;
  font-size: 1.95rem !important;
  color: #2d362a !important;
  font-weight: 500;
}
.tpec-summary-row .tba {
  font-family: var(--tpec-font-body) !important;
  font-size: 0.72rem !important;
  color: rgba(45, 54, 42, 0.55) !important;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Delivery date callout */
.tpec-delivery-callout {
  background: #ffffff;
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
  border-left: 2px solid #879678;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.tpec-delivery-callout svg { color: #879678; flex-shrink: 0; margin-top: 2px; }
.tpec-delivery-callout .text { font-size: 0.78rem; line-height: 1.55; color: rgba(45, 54, 42, 0.75); }
.tpec-delivery-callout .text strong {
  font-family: var(--tpec-font-disp);
  font-weight: 600;
  color: #2d362a;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.15rem;
}

/* Guarantee list */
.tpec-guarantee-list {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(135, 150, 120, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.74rem;
  color: rgba(45, 54, 42, 0.7);
  line-height: 1.45;
}
.tpec-guarantee-list > div { display: flex; align-items: center; gap: 0.65rem; }
.tpec-guarantee-list svg { color: #879678; flex-shrink: 0; }

/* Floating mobile total bar (checkout page) */
.tpec-mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid rgba(135, 150, 120, 0.3);
  box-shadow: 0 -8px 24px -8px rgba(45, 54, 42, 0.15);
  padding: 0.85rem 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
@media (min-width: 1024px) { .tpec-mobile-bar { display: none; } }
.tpec-mobile-bar .left { display: flex; flex-direction: column; gap: 0.1rem; }
.tpec-mobile-bar .label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(45, 54, 42, 0.55);
  font-weight: 500;
}
.tpec-mobile-bar .amount {
  font-family: var(--tpec-font-disp);
  font-size: 1.45rem;
  font-weight: 500;
  color: #2d362a;
  line-height: 1;
}
.tpec-mobile-bar .btn {
  background: #879678;
  color: #ffffff;
  font-family: var(--tpec-font-body);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.85rem 1.4rem;
  transition: background 200ms;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.tpec-mobile-bar .btn:hover { background: #6d7c5f; }
/* Push footer up so bar doesn't overlap on mobile */
@media (max-width: 1023px) { .site-footer { padding-bottom: 6rem !important; } }

/* ══════════════════════════════════════════════════════════════════════════
   ORDER CONFIRMATION PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.tpec-confirmation-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  text-align: center;
}
.tpec-confirmation-icon {
  width: 72px; height: 72px;
  background: var(--tpec-beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.tpec-confirmation-icon svg { color: var(--tpec-sage); }
.tpec-confirmation-title {
  font-family: var(--tpec-font-disp);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--tpec-ink);
  margin: 0 0 .5rem;
}
.tpec-confirmation-sub { color: var(--tpec-sage); font-size: 1rem; margin: 0 0 2.5rem; }
.tpec-confirmation-card {
  background: var(--tpec-beige);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}
.tpec-confirmation-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1.5rem;
  margin: 0;
  font-size: .9rem;
}
.tpec-confirmation-card dt { font-weight: 700; color: var(--tpec-ink); }
.tpec-confirmation-card dd { margin: 0; color: var(--tpec-sage); }
.tpec-confirmation-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tpec-confirmation-script { font-family: 'Allura', cursive; font-size: 1.5rem; color: var(--tpec-sage); margin-top: 3rem; }

/* ══════════════════════════════════════════════════════════════════════════
   ACCOUNT / ORDER HISTORY
   ══════════════════════════════════════════════════════════════════════════ */
.tpec-account-wrap { max-width: 860px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }
.tpec-lookup-wrap { max-width: 480px; }
.tpec-lookup-intro { color: var(--tpec-sage); margin: 0 0 1.5rem; }
.tpec-lookup-help { font-size: .85rem; color: var(--tpec-sage); border-top: 1px solid var(--tpec-beige-mid); padding-top: 1rem; }
.tpec-lookup-help a { color: var(--tpec-sage); }
.tpec-order-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.tpec-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--tpec-beige);
  gap: 1rem;
  flex-wrap: wrap;
}
.tpec-order-row__info { display: flex; flex-direction: column; gap: .25rem; }
.tpec-order-row__num { font-weight: 700; font-family: var(--tpec-font-disp); font-size: 1.05rem; }
.tpec-order-row__date { font-size: .8rem; color: var(--tpec-sage); }
.tpec-order-row__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tpec-order-row__total { font-weight: 700; }
.tpec-status-badge { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tpec-order-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (max-width: 600px) { .tpec-order-detail__grid { grid-template-columns: 1fr; } }
.tpec-order-detail__col h3 { font-family: var(--tpec-font-disp); font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--tpec-beige-mid); }
.tpec-order-detail__col p { font-size: .9rem; line-height: 1.6; margin: 0 0 .5rem; }
.tpec-items-table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-bottom: 1.75rem; }
.tpec-items-table th { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tpec-sage); border-bottom: 1.5px solid var(--tpec-beige-mid); padding: .5rem .6rem .6rem; text-align: left; }
.tpec-items-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--tpec-beige); vertical-align: middle; }
.tpec-items-table tr:last-child td { border-bottom: none; }
.tpec-order-totals { width: 100%; font-size: .88rem; border-collapse: collapse; }
.tpec-order-totals td { padding: .35rem 0; }
.tpec-order-totals td:last-child { text-align: right; font-weight: 600; }
.tpec-order-totals__total td { font-size: 1rem; padding-top: .6rem; border-top: 1.5px solid var(--tpec-ink); }
.tpec-back-link { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════════════════════════════════════════ */
.tpec-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--tpec-ink);
  color: #fff;
  padding: .85rem 1.25rem;
  font-family: var(--tpec-font-body);
  font-size: .85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: .75rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  max-width: 340px;
}
.tpec-toast.visible { transform: translateY(0); opacity: 1; }
.tpec-toast a { color: var(--tpec-sage-lt); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tpec-toast a:hover { text-decoration: underline; }
@media (max-width: 640px) { .tpec-toast { left: 1rem; right: 1rem; max-width: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   SPINNER
   ══════════════════════════════════════════════════════════════════════════ */
.tpec-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tpec-spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .35rem;
}
.tpec-spinner--dark { border-color: rgba(45,54,42,.2); border-top-color: var(--tpec-ink); }
@keyframes tpec-spin { to { transform: rotate(360deg); } }
