/* ==========================================================================
   Group Shipping — customer-facing layer (sub-project 2)
   Editorial tokens matching the rest of TONBŌRA: hairline borders
   (#E5E5E5), uppercase tracked labels (letter-spacing: 0.16em), light
   weights (300/400), muted neutral fill (#F7F7F6), pure stroke icons.
   ========================================================================== */

/* ---------- GroupBuyingWidget ---------- */

.tnb-group-widget {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  background: #F7F7F6;
  border: 1px solid #E5E5E5;
}

.tnb-group-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tnb-group-widget-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #757575;
}

.tnb-live-batch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
}

.tnb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111111;
  animation: tnb-pulse 1.8s ease-in-out infinite;
}

@keyframes tnb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.4); }
}

.tnb-district-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E5E5E5;
}

.tnb-district-tab {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
  transition: color 200ms ease;
}

.tnb-district-tab:hover {
  color: #111111;
}

.tnb-district-tab.is-active {
  color: #111111;
}

.tnb-tab-city {
  font-weight: 300;
  color: inherit;
  opacity: 0.7;
}

.tnb-district-panel {
  display: none;
}

.tnb-district-panel.is-active {
  display: block;
}

.tnb-box-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  padding: 32px;
}

.tnb-box-code {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 24px;
}

.tnb-progress-track {
  height: 2px;
  background: #E5E5E5;
  width: 100%;
  margin-bottom: 10px;
}

.tnb-progress-fill {
  height: 2px;
  background: #111111;
  transition: width 400ms ease;
}

.tnb-progress-caption {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #757575;
  margin-bottom: 32px;
}

.tnb-box-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 32px;
}

.tnb-box-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
  border-left: 1px solid #E5E5E5;
  text-align: center;
}

.tnb-box-stat:first-child {
  border-left: none;
  padding-left: 0;
}

.tnb-stat-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
}

.tnb-stat-value {
  font-size: 13px;
  font-weight: 400;
  color: #111111;
}

.tnb-box-ticker {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #E5E5E5;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: #757575;
}

/* Fill/border/color/weight/hover come from the global .tonbora-hero-btn
   button system (style.css) — reused here rather than a bespoke button,
   so "Join this box" looks and animates like every other CTA on the
   site instead of introducing a one-off style. */
.tnb-box-join-btn {
  display: inline-block !important;
  margin-top: 20px;
  font-size: 11px !important;
  padding: 4px 0 !important;
}

.tnb-box-join-btn.is-joined {
  color: #999999 !important;
  cursor: default;
}

.tnb-widget-empty {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
  text-align: center;
  padding: 40px 0;
}

@media screen and (max-width: 600px) {
  .tnb-group-widget {
    padding: 24px;
  }
  .tnb-box-card {
    padding: 20px;
  }
  .tnb-box-stats {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
  .tnb-box-stat {
    border-left: none;
    border-top: 1px solid #E5E5E5;
    padding: 16px 0 0;
  }
  .tnb-box-stat:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ---------- TransparentCartCalculator ---------- */

.tnb-breakdown-row th,
.tnb-breakdown-row td {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #111111;
  padding-top: 10px;
  padding-bottom: 10px;
}

.tnb-breakdown-row th {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: #757575;
}

.tnb-was-price {
  text-decoration: line-through;
  opacity: 0.5;
  margin-right: 8px;
  font-weight: 300;
}

.tnb-now-price {
  color: #111111;
  font-weight: 400;
}

.tnb-breakdown-badge-row td {
  padding-top: 20px;
}

.tnb-customs-badge {
  border: 1px solid #E5E5E5;
  background: #F7F7F6;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tnb-customs-badge-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #111111;
}

/* ---------- Delivery method selector ---------- */

.tnb-delivery-method-selector {
  margin-bottom: 24px;
}

.tnb-delivery-method-label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #757575;
}

.tnb-delivery-method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: -1px;
  border: 1px solid #E5E5E5;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.tnb-delivery-method-option:hover {
  border-color: #111111;
}

.tnb-delivery-method-option:has(input:checked) {
  border-color: #111111;
  position: relative;
  z-index: 1;
}

.tnb-delivery-method-option input[type="radio"] {
  flex-shrink: 0;
  accent-color: #111111;
}

.tnb-delivery-method-text {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #111111;
}

.tnb-delivery-method-text strong {
  font-weight: 400;
}

/* ---------- PudoLockerPickerModal ---------- */

.tnb-locker-picker {
  margin-bottom: 20px;
}

.tnb-locker-trigger {
  width: 100%;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  text-align: left;
  transition: border-color 200ms ease;
}

.tnb-locker-trigger:hover {
  border-color: #111111;
}

.tnb-locker-trigger.has-selection {
  background: #F7F7F6;
}

.tnb-locker-required-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #B23B3B;
  letter-spacing: 0.04em;
}

.tnb-locker-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.tnb-locker-modal.is-open {
  display: block;
}

.tnb-locker-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
}

.tnb-locker-modal-panel {
  position: relative;
  max-width: 480px;
  margin: 10vh auto 0;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  padding: 32px;
  max-height: 76vh;
  overflow-y: auto;
}

.tnb-locker-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #E5E5E5;
}

.tnb-locker-modal-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
}

.tnb-locker-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #111111;
  padding: 4px;
}

.tnb-locker-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tnb-locker-empty {
  padding: 20px 4px;
  font-size: 11px;
  font-weight: 300;
  color: #999999;
}

.tnb-locker-option {
  border-bottom: 1px solid #E5E5E5;
}

.tnb-locker-option:last-child {
  border-bottom: none;
}

.tnb-locker-option label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 4px;
  cursor: pointer;
}

.tnb-locker-option input[type="radio"] {
  margin-top: 3px;
}

.tnb-locker-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tnb-locker-name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #111111;
}

.tnb-locker-address {
  font-size: 11px;
  font-weight: 300;
  color: #757575;
}

.tnb-locker-confirm {
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  background: #111111;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 200ms ease;
}

.tnb-locker-confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tnb-order-locker {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5E5E5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tnb-order-locker-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
}

.tnb-order-locker-value {
  font-size: 12px;
  font-weight: 300;
  color: #111111;
}

/* ---------- LiveOrderTrackingTimeline ---------- */

.tnb-tracking-timeline {
  max-width: 560px;
  margin: 32px 0;
  padding: 32px;
  background: #F7F7F6;
  border: 1px solid #E5E5E5;
}

.tnb-tracking-step {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid #E5E5E5;
}

.tnb-tracking-step:last-of-type {
  border-bottom: none;
}

.tnb-tracking-dot {
  grid-row: 1 / 3;
  font-size: 10px;
  line-height: 1.6;
  color: #CCCCCC;
}

.tnb-tracking-step.is-complete .tnb-tracking-dot {
  color: #111111;
}

.tnb-tracking-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
}

.tnb-tracking-step.is-complete .tnb-tracking-label {
  color: #111111;
}

.tnb-tracking-copy {
  font-size: 11px;
  font-weight: 300;
  color: #999999;
}

.tnb-tracking-step.is-complete .tnb-tracking-copy {
  color: #757575;
}

.tnb-pickup-pin {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  gap: 24px;
}

.tnb-pin-qr {
  flex-shrink: 0;
  border: 1px solid #E5E5E5;
}

.tnb-pickup-pin-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tnb-pickup-pin-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
}

.tnb-pickup-pin-value {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tnb-pickup-pin-instructions {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.5;
  color: #757575;
  max-width: 320px;
}

@media screen and (max-width: 480px) {
  .tnb-pickup-pin {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- PDP consolidation route callout ---------- */

.tonbora-pdp-route {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 4px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E5E5E5;
}

.tonbora-route-dot {
  align-self: center;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111111;
  animation: tnb-pulse 1.8s ease-in-out infinite;
}

.tonbora-route-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
}

.tonbora-route-sub {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #757575;
  padding-left: 15px;
}
