/* ============================================================
   IMPUNDU Components — components.css
   Ported from the previous impundo build.
   ============================================================ */

/* ── Reseller Registration ─────────────────────────────────── */
.reseller-register {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: calc(100vh - 70px);
}

.reseller-register-left {
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
  padding: var(--sp-8) var(--sp-6);
  color: white;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.reseller-register-right {
  background: var(--off-white);
  padding: var(--sp-7) var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.95rem;
  color: var(--teal-dark);
}

.benefit-icon {
  width: 32px; height: 32px;
  background: rgba(18, 70, 70, 0.08);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Step Indicator ───────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-6);
}

.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-dot.active { background: var(--teal); color: white; }
.step-dot.done   { background: var(--kill-green); color: white; }

.step-line {
  flex: 1;
  height: 2px;
  background: var(--light-gray);
  margin: 0 8px;
}

.step-line.done { background: var(--teal); }

/* ── Product Detail ───────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: start;
  padding: var(--sp-8) 0;
}

.product-detail-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  width: min(100%, 420px);
}

.product-detail-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  font-family: var(--font-heading);
}

.product-features { list-style: none; padding: 0; }

.product-features li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem;
}

.product-features li .check {
  color: var(--kill-green);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.shop-product-cart-summary {
  border: 1px solid rgba(61, 142, 160, 0.22);
  border-radius: var(--radius-md, 8px);
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 70, 70, 0.08);
  margin-top: 8px;
  padding: 18px;
}

.shop-product-cart-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.shop-product-cart-kicker {
  color: var(--teal);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.shop-product-cart-head h5 {
  color: var(--dark);
  font-size: 1.15rem;
  margin: 0;
}

.shop-product-cart-link {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.shop-product-cart-items {
  display: grid;
  gap: 8px;
}

.shop-product-cart-item {
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 0;
}

.shop-product-cart-item:last-child { border-bottom: 0; }

.shop-product-cart-item strong {
  color: var(--dark);
  display: block;
  font-size: 0.95rem;
}

.shop-product-cart-item span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.shop-product-cart-item b {
  color: var(--dark);
  flex: 0 0 auto;
}

.shop-product-cart-total {
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
}

.shop-product-cart-total span { color: var(--muted); }

.shop-product-cart-total strong {
  color: var(--dark);
  font-size: 1.1rem;
}

.qty-btn {
  width: 40px; height: 44px;
  background: var(--light-gray);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover { background: var(--teal-light); }

.qty-input {
  width: 60px; height: 44px;
  border: none;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
}

.qty-input:focus { outline: none; background: var(--teal-light); }

/* Product variant selector (scents, sizes, etc. — was .scent-dots) */
.variant-dots { display: flex; gap: var(--sp-2); margin: var(--sp-4) 0; }

.variant-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.variant-dot:hover, .variant-dot.active {
  border-color: var(--dark-text);
  transform: scale(1.15);
}

.variant-dot[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-text);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Zapper Section ───────────────────────────────────────── */
.zapper-section {
  background: var(--off-white);
  border: 1.5px solid #eee;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  text-align: center;
  margin: var(--sp-5) 0;
}

.zapper-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
  color: var(--mid-gray);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
}

.zapper-divider::before, .zapper-divider::after {
  flex: 1;
  height: 1px;
  background: #ddd;
  content: '';
}

.code-input-group {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.code-input-group input {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── Cart Table ───────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  padding: 12px 16px;
  background: var(--light-gray);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #ddd;
}

.cart-table td { padding: 16px; border-bottom: 1px solid #eee; vertical-align: middle; }
.cart-table tr:hover td { background: var(--teal-light); }

/* ── Directory ────────────────────────────────────────────── */
.reseller-card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--teal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.reseller-card.establishment { border-left-color: var(--gold); }

.reseller-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }

/* Card header: avatar + identity */
.reseller-card-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.reseller-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--teal-light);
  color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid rgba(61,142,160,0.25);
}
.reseller-avatar.is-est { background: rgba(201,151,42,0.15); color: var(--gold); border-color: rgba(201,151,42,0.3); }
.reseller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reseller-card-id { min-width: 0; flex: 1; }
.reseller-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 2px;
}
.reseller-card-name a { color: var(--charcoal, #222); text-decoration: none; }
.reseller-card-name a:hover { color: var(--teal-dark); }
.reseller-card-loc {
  font-size: 0.82rem;
  color: var(--text-muted, #666);
  margin-top: 3px;
  line-height: 1.4;
}
.reseller-card-loc i { color: var(--teal); margin-right: 4px; }
.reseller-card-prov { opacity: 0.7; }
.reseller-card-contact { font-size: 0.8rem; color: var(--text-muted, #666); margin-bottom: var(--sp-2); }
.reseller-card-contact i { color: var(--teal); }
.reseller-card-bio {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 var(--sp-3);
}
.reseller-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--sp-2);
}
.reseller-card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  text-decoration: none;
}
.reseller-card-wa {
  background: var(--whatsapp, #25D366);
  border: 1px solid var(--whatsapp, #25D366);
  color: white;
}
.reseller-card-wa:hover { filter: brightness(0.95); color: white; }

.reseller-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reseller-type-badge.individual   { background: var(--teal-light);  color: var(--teal-dark); }
.reseller-type-badge.establishment { background: rgba(201,151,42,0.15); color: var(--gold); }

/* ── Establishment cards (Find an Establishment) ──────────── */
.establishment-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--gold);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.establishment-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.10); }
.establishment-card-media {
  display: block;
  position: relative;
  height: 170px;
  background: var(--teal-light);
}
.establishment-card-media img { width: 100%; height: 100%; object-fit: cover; }
.establishment-card-media-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(201,151,42,0.15), rgba(61,142,160,0.15));
  color: var(--gold);
  font-size: 2.6rem;
}
.establishment-type-badge.on-media {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  backdrop-filter: blur(2px);
}
.establishment-card-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.establishment-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-dark);
  text-decoration: none;
  line-height: 1.25;
}
.establishment-card-name:hover { color: var(--gold); }
.establishment-card-loc { font-size: 0.82rem; color: var(--text-muted, #666); margin: 4px 0 8px; }
.establishment-card-loc i { color: var(--gold); margin-right: 3px; }
.establishment-card-desc { font-size: 0.85rem; color: #555; line-height: 1.5; margin: 0 0 var(--sp-3); }
.establishment-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--sp-2);
}

/* Establishment type pill (used on cards, popups, profile) */
.establishment-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(201,151,42,0.15);
  color: var(--gold);
  white-space: nowrap;
}

/* ── Admin Tables ─────────────────────────────────────────── */
.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.admin-table th {
  background: var(--teal);
  color: white;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.admin-table tbody tr:hover td { background: var(--teal-light); }

/* Order detail tabs: flatter admin navigation, no oversized pill active state. */
.order-detail-nav {
  align-items: center;
  border-bottom: 1px solid rgba(18, 70, 70, 0.12);
  gap: 22px;
}

.order-detail-nav .nav-link {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--text-muted, #666);
  font-weight: 700;
  padding: 0 0 14px;
}

.order-detail-nav .nav-link:hover {
  color: var(--teal-dark);
}

.order-detail-nav .nav-link.active {
  background: transparent;
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

/* Status Badges */
.badge-pending   { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-approved  { background: #d1edff; color: #0a58ca; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-suspended { background: #f8d7da; color: #842029; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-paid      { background: #d1e7dd; color: #0f5132; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.badge-unpaid    { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.payment-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.payment-state--success { background: #d1e7dd; color: #0f5132; }
.payment-state--warning { background: #fff3cd; color: #765704; }
.payment-state--danger { background: #f8d7da; color: #842029; }
.payment-state--neutral { background: #e9ecef; color: #495057; }
.payment-state-detail { margin-top: 4px; color: #6c757d; font-size: 0.72rem; line-height: 1.3; }
.badge-cancelled { background: #f8d7da; color: #842029; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* ── Page Heroes ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: var(--sp-8) 0;
  text-align: center;
  color: white;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--sp-3);
}

.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--sp-4); }
  .product-detail-img {
    margin: 0 auto;
    max-width: 380px;
    position: static;
    width: 100%;
  }
  .shop-product-cart-head {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-product-cart-link {
    justify-content: center;
    width: 100%;
  }
  .reseller-register { grid-template-columns: 1fr; }
  .reseller-register-left { display: none; }
  .reseller-register-right { padding: var(--sp-5); }
  .code-text { font-size: 1.8rem; }
  
  /* Dynamic listing tables scroll sideways instead of overflowing the page on tablets and mobile */
  #results.table-view {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Mobile-first pass (most users are on phones) ─────────── */
@media (max-width: 576px) {
  /* Breathing room: Bootstrap's 12px gutters feel cramped on small screens */
  .container { padding-left: 20px; padding-right: 20px; }

  /* Tighter vertical rhythm so pages don't feel like endless scrolling */
  .section-padding { padding: var(--sp-7) 0; }
  .section-padding-sm { padding: var(--sp-6) 0; }
  .page-hero { padding: var(--sp-6) 0; }
  .page-hero p { font-size: 1rem; padding: 0 var(--sp-3); }

  /* Product detail */
  .product-price-large { font-size: 2rem; }

  /* Apply page benefits: icon-beside-text flex can't fit a third of a phone
     screen without forcing the page wider — stack it instead */
  .benefit-item { flex-direction: column; gap: var(--sp-2); text-align: center; }

  /* Cart table scrolls sideways instead of squashing/overflowing the page */
  .cart-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cart-table th, .cart-table td { padding: 10px 12px; }
  .cart-qty-input { min-width: 64px; }

  /* Guard: nothing may cause sideways page scroll on a phone */
  body { overflow-x: clip; }
}

/* ── Collab role badge (dashboard: my resellers / establishments) ── */
.collab-role-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── Auth pages (login / register / reset / set-password) ─────
   Scoped to .account-body: the admin dashboard reuses the same
   boilerplate classes and must keep its own look. */
.account-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(19, 68, 78, 0.84), rgba(19, 68, 78, 0.86)),
    url("../img/impundu/bottles-white-gold.jpeg") center/cover fixed;
}

.account-body > .content {
  min-height: 100vh;
}

.account-body .auth-shell {
  width: 100%;
  min-height: 100vh;
  padding: clamp(24px, 6vw, 56px) 18px;
}

.account-body .auth-panel {
  width: min(100%, 430px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: clamp(28px, 5vw, 42px);
}

.account-body .auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.account-body .auth-logo-badge {
  position: relative;
  display: inline-flex;
  width: 118px;
  height: 118px;
  margin-bottom: 18px;
  border-radius: 50%;
  padding: 7px;
  background: conic-gradient(from 210deg, #ffffff, var(--gold-light), #ffffff, var(--teal-light), #ffffff);
  box-shadow: 0 12px 34px rgba(42, 110, 126, 0.32);
}

.account-body .auth-logo-badge::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.account-body .account-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.account-body .auth-eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.account-body .auth-brand h1 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--teal-dark);
  font-size: 2rem;
  line-height: 1.12;
}

.account-body .auth-copy {
  margin: 10px auto 0;
  color: #56646a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.account-body .auth-form {
  display: grid;
  gap: 15px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #515151;
  font-size: 0.84rem;
  line-height: 1.45;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #2a6e7e;
  flex: 0 0 auto;
}

.auth-consent a,
.policy-page a {
  color: #2a6e7e;
  font-weight: 600;
}

.policy-header {
  padding: 64px 0 42px;
  background: #eef6f7;
  border-bottom: 1px solid #d7e5e7;
}

.policy-header h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: #173b43;
}

.policy-header p {
  max-width: 760px;
  color: #4c6267;
  font-size: 1.05rem;
}

.policy-header small {
  color: #6b7d81;
}

.policy-content {
  max-width: 900px;
  padding-top: 42px;
  padding-bottom: 64px;
}

.policy-content section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e7e7e2;
}

.policy-content h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: #173b43;
}

.policy-content p {
  max-width: 780px;
  color: #4c5557;
  line-height: 1.75;
}

.policy-contact {
  padding: 22px;
  border-left: 4px solid #2a6e7e;
  background: #f7f9f8;
}

.account-body .auth-field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #334349;
  font-size: 0.84rem;
  font-weight: 700;
}

.account-body .auth-input {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(61, 142, 160, 0.28);
  border-radius: 8px;
  background: #f9fcfc;
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-body .auth-input:focus-within {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 142, 160, 0.14);
}

.account-body .auth-input > i,
.account-body .auth-icon-btn {
  color: var(--teal);
}

.account-body .auth-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark-text);
  font: inherit;
  font-weight: 500;
}

.account-body .auth-input input::placeholder {
  color: #87969b;
}

.account-body .auth-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-body .auth-icon-btn:hover {
  background: var(--teal-light);
}

.account-body .auth-captcha {
  grid-template-columns: auto minmax(0, 1fr) 18px;
}

.account-body .auth-captcha strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.account-body .auth-message {
  min-height: 22px;
  font-size: 0.9rem;
}

.account-body .auth-message .alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.account-body .auth-message-danger,
.account-body .auth-message:not(:empty) {
  color: #a62b22;
}

.account-body .auth-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(61, 142, 160, 0.26);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.account-body .auth-submit:hover {
  background: var(--teal-dark);
  box-shadow: 0 14px 28px rgba(42, 110, 126, 0.28);
  transform: translateY(-1px);
}

.account-body .auth-submit[disabled] {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.account-body .auth-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-body .auth-links-single {
  justify-content: center;
}

.account-body .auth-links a,
.account-body .auth-link {
  color: var(--teal-dark);
  text-decoration: none;
}

.account-body .auth-links a:hover,
.account-body .auth-link:hover {
  color: var(--gold);
}

@media (max-width: 576px) {
  .account-body { background-attachment: scroll; }
  .account-body .auth-panel { padding: 28px 22px; }
  .account-body .auth-logo-badge { width: 96px; height: 96px; }
  .account-body .auth-brand h1 { font-size: 1.68rem; }
  .account-body .auth-links { flex-direction: column; align-items: center; gap: 8px; }
}

/* ── Directory: province browser (pulled from live 2026-07-09 —
   this block was built directly on the server; keep in sync) ── */
.province-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.province-card {
  background: var(--white);
  border: 1.5px solid rgba(61, 142, 160, 0.15);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  outline: none;
  min-height: 120px;
}

@media (max-width: 1200px) {
  .province-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .province-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .province-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-3);
    padding-bottom: 12px;
    margin-bottom: var(--sp-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .province-grid::-webkit-scrollbar {
    display: none;
  }
  .province-card {
    flex: 0 0 150px;
    min-height: 100px;
    scroll-snap-align: start;
    padding: var(--sp-3);
  }
}

.province-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-card);
}

.province-card.active {
  background: linear-gradient(135deg, var(--teal-light), var(--white));
  border-color: var(--teal);
  border-width: 1.5px;
  box-shadow: var(--shadow-card);
}

.province-card.active::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent var(--teal) transparent transparent;
}

.province-card.active::before {
  content: '\F272'; /* Bootstrap Icon check */
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 2px;
  right: 4px;
  color: white;
  font-size: 0.75rem;
  z-index: 2;
  font-weight: 900;
}

.province-icon {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.province-card:hover .province-icon {
  transform: scale(1.1);
}

.province-card.active .province-icon {
  color: var(--teal-dark);
}

.province-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
}

.province-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--light-gray);
  color: var(--mid-gray);
  transition: all 0.3s ease;
}

.province-card.has-resellers .province-badge {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.province-card.active .province-badge {
  background: var(--teal) !important;
  color: var(--white) !important;
}

.prov-section {
  animation: fadeInSection 0.4s ease-out;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Authenticated session lifetime and inactivity status */
.session-timer {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(20, 67, 76, .94);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14, 45, 51, .2);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    visibility: hidden;
}
.session-timer-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}
.session-timer > i { color: #ffd082; font-size: 1.15rem; }
.session-timer-copy { display: flex; flex-direction: column; line-height: 1.2; }
.session-timer-copy small { opacity: .78; font-size: .7rem; }
.session-timer-copy strong { font-size: .82rem; font-weight: 700; }
.session-timer-warning { background: rgba(145, 76, 15, .96); animation: session-pulse 1.5s ease-in-out infinite; }
@keyframes session-pulse { 50% { box-shadow: 0 0 0 5px rgba(228, 169, 83, .18); } }
@media (max-width: 575.98px) {
    .session-timer { left: 10px; bottom: 10px; min-width: 174px; padding: 8px 11px; }
}

.session-resume-panel { max-width: 520px; }
.session-resume-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    color: #214f58;
    background: #f2f8e7;
    border: 1px solid #dce9bd;
    border-radius: 12px;
}
.session-resume-status > i { font-size: 1.45rem; color: #6e8e22; }
.session-resume-status div { display: flex; flex-direction: column; }
.session-resume-status span { color: #5d6c70; font-size: .85rem; }

/* Cart collection reseller predictive search */
.reseller-picker {
    margin-top: 12px;
    padding: 14px;
    background: #f4fafb;
    border: 1px solid rgba(42, 110, 126, .22);
    border-radius: 12px;
}
.reseller-search-wrap { position: relative; }
.reseller-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: #66838a;
    transform: translateY(-50%);
    pointer-events: none;
}
.reseller-search-input { padding-left: 38px; }
.reseller-search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(42, 110, 126, .28);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(18, 55, 64, .16);
}
.reseller-search-result {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf1f2;
}
.reseller-search-result:last-child { border-bottom: 0; }
.reseller-search-result:hover,
.reseller-search-result.active,
.reseller-search-result:focus { background: #eaf5f6; outline: 0; }
.reseller-search-result strong { color: #174f5b; font-size: .9rem; }
.reseller-search-result span { color: #687b80; font-size: .76rem; }
.reseller-search-empty { padding: 12px; color: #687b80; font-size: .82rem; }
.selected-reseller {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
    padding: 10px 11px;
    color: #174f5b;
    background: #fff;
    border: 1px solid #cfe2e5;
    border-radius: 10px;
}
.selected-reseller > i { color: #2a6e7e; font-size: 1.15rem; }
.selected-reseller div { display: flex; flex-direction: column; min-width: 0; }
.selected-reseller strong { font-size: .86rem; }
.selected-reseller span { color: #687b80; font-size: .74rem; white-space: normal; }

/* Shared data-table display controls and mobile record cards */
.responsive-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 0 0 12px;
}
.responsive-table-toolbar-label {
    color: #687b80;
    font-size: .78rem;
    font-weight: 600;
}
.responsive-table-toggle {
    display: inline-flex;
    padding: 3px;
    background: #edf3f4;
    border: 1px solid #d9e4e6;
    border-radius: 6px;
}
.responsive-table-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    padding: 0;
    color: #60777c;
    background: transparent;
    border: 0;
    border-radius: 4px;
}
.responsive-table-toggle button:hover,
.responsive-table-toggle button:focus-visible { color: #174f5b; outline: 2px solid rgba(42, 110, 126, .24); }
.responsive-table-toggle button.active {
    color: #fff;
    background: #2a6e7e;
    box-shadow: 0 1px 3px rgba(20, 63, 72, .2);
}
.responsive-list-wrapper { overflow: visible; }
table.responsive-list-view {
    display: block;
    width: 100%;
    margin-bottom: 0;
}
table.responsive-list-view thead { display: none; }
table.responsive-list-view tbody {
    display: grid;
    width: 100%;
    gap: 12px;
}
table.responsive-list-view tbody tr {
    display: block;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #dce5e7;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(21, 62, 70, .06);
}
table.responsive-list-view tbody td,
table.responsive-list-view tbody th {
    display: grid;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    color: #26383c;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #edf1f2;
}
table.responsive-list-view tbody td:last-child,
table.responsive-list-view tbody th:last-child { border-bottom: 0; }
table.responsive-list-view tbody td::before,
table.responsive-list-view tbody th::before {
    content: attr(data-label);
    color: #61767b;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
}
table.responsive-data-table .responsive-table-cell-content { display: contents; }
table.responsive-list-view .responsive-table-cell-content {
    display: block;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}
table.responsive-list-view .responsive-table-actions-cell .responsive-table-cell-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}
table.responsive-list-view .responsive-table-full-cell {
    grid-template-columns: 1fr;
    text-align: left !important;
}
table.responsive-list-view .responsive-table-full-cell::before { display: none; }
table.responsive-list-view img { max-width: 100%; height: auto; }

@media (max-width: 575.98px) {
    .responsive-table-toolbar { margin-bottom: 10px; }
    table.responsive-list-view tbody tr { padding: 10px 12px; }
    table.responsive-list-view tbody td,
    table.responsive-list-view tbody th {
        grid-template-columns: minmax(92px, 36%) minmax(0, 1fr);
        gap: 10px;
    }
    table.responsive-list-view .btn { margin-bottom: 0; }
}

@media print {
    .responsive-table-toolbar { display: none !important; }
    table.responsive-data-table { display: table !important; }
    table.responsive-data-table thead { display: table-header-group !important; }
    table.responsive-data-table tbody { display: table-row-group !important; }
    table.responsive-data-table tr { display: table-row !important; }
    table.responsive-data-table td,
    table.responsive-data-table th { display: table-cell !important; }
    table.responsive-data-table td::before,
    table.responsive-data-table th::before { display: none !important; }
}

/* Public social-sharing strip */
.share-strip {
    padding: 22px 0 34px;
    background: #f5f8f7;
}
.share-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 30px;
    color: #fff;
    background: linear-gradient(120deg, #123f48, #1f6976);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(18, 63, 72, .16);
}
.share-strip-kicker {
    display: block;
    margin-bottom: 4px;
    color: #f3c65b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.share-strip h2 {
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}
.share-strip-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    color: #123f48;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    font: inherit;
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}
.share-action:hover {
    color: #123f48;
    background: #f9d778;
    transform: translateY(-2px);
}
.share-action i { font-size: 1rem; }

@media (max-width: 767.98px) {
    .share-strip-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 20px;
    }
    .share-strip-actions { justify-content: flex-start; }
    .share-action span { display: none; }
    .share-action { width: 44px; padding: 8px; }
}
