/* ── AARK Mother's Day Sale — Component Styles ───────────────────────────── */

/* ════════════════════════════════════════════════════════════════════════════
   STICKY TOP BAR
   ════════════════════════════════════════════════════════════════════════════ */

#saleBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.4s ease;
}

#saleBar.bar-teaser { background: #fff; color: #008080; }
#saleBar.bar-live   { background: #fff; color: #008080; }

#saleBar .bar-code {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 13px;
  background: rgba(0, 128, 128, 0.12);
  border-radius: 4px;
  padding: 1px 7px;
  letter-spacing: 0.06em;
  vertical-align: baseline;
  color: #005c5c;
}

#saleBar #barTimer {
  font-weight: 600;
}

@media (max-width: 480px) {
  #saleBar {
    font-size: 11px;
    height: auto;
    min-height: 40px;
    white-space: normal;
    padding: 7px 12px;
  }
  #saleBar .bar-code { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   HOMEPAGE HERO BANNER
   ════════════════════════════════════════════════════════════════════════════ */

#mdayBanner {
  width: 100%;
  padding: 52px 24px 48px;
  box-sizing: border-box;
  text-align: center;
  display: none; /* JS sets to block when active */
}

#mdayBanner.banner-teaser {
  display: block;
  background: linear-gradient(135deg, #E0F5F5 0%, #FFF8D6 100%);
}

#mdayBanner.banner-live {
  display: block;
  background: linear-gradient(135deg, #FFD700 0%, #FFF0C8 100%);
}

.mday-pill {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.banner-teaser .mday-pill { background: #008080; color: #fff; }
.banner-live   .mday-pill { background: #1A1A1A; color: #fff; }

.mday-headline {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 10px;
  line-height: 1.15;
}

.mday-sub {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: #333;
  margin-bottom: 36px;
  line-height: 1.5;
}

.mday-sub .sub-code {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 8px;
}

.banner-teaser .mday-sub .sub-code { background: rgba(0, 128, 128, 0.12); color: #005c5c; }
.banner-live   .mday-sub .sub-code { background: rgba(0, 0, 0, 0.12);     color: #1A1A1A; }

/* Combo tagline inside banner */
.mday-combo-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  color: #008080;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.mday-combo-link em {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Countdown boxes */
.mday-countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.mday-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mday-digit {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 12px;
}

.banner-teaser .mday-digit {
  background: #fff;
  border: 2px solid #008080;
  color: #008080;
}

.banner-live .mday-digit {
  background: #fff;
  border: 2px solid #1A1A1A;
  color: #1A1A1A;
  animation: mdayPulse 2s ease-in-out infinite;
}

.mday-sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: #888;
  padding-top: 16px;
  line-height: 1;
}

.mday-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-top: 7px;
  font-weight: 600;
}

@keyframes mdayPulse {
  0%,  100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(0, 0, 0, 0); }
  50%        { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(0, 0, 0, 0.06); }
}

@media (max-width: 767px) {
  #mdayBanner { padding: 40px 16px 36px; }
  .mday-digit { width: 60px; height: 60px; font-size: 1.55rem; }
  .mday-countdown { gap: 10px; }
}

@media (max-width: 400px) {
  .mday-digit { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 8px; }
  .mday-countdown { gap: 8px; }
  .mday-sep { font-size: 1.4rem; }
}

/* ════════════════════════════════════════════════════════════════════════════
   CART: URGENCY NUDGE
   ════════════════════════════════════════════════════════════════════════════ */

.cart-urgency {
  display: none;
  background: #FFF8D6;
  border-left: 3px solid #FFD700;
  border-radius: 0 6px 6px 0;
  padding: 8px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  color: #5a4800;
  margin-bottom: 12px;
  line-height: 1.5;
}

.cart-urgency.visible { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   CART: COUPON APPLIED BADGE
   ════════════════════════════════════════════════════════════════════════════ */

.coupon-applied-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E0F5F5;
  border: 1px solid rgba(0, 128, 128, 0.35);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: #004d4d;
  margin-bottom: 12px;
}

.coupon-applied-badge .badge-check {
  color: #008080;
  font-size: 1rem;
  flex-shrink: 0;
}

.coupon-applied-badge .badge-remove {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.coupon-applied-badge .badge-remove:hover { color: #c0392b; }

/* ════════════════════════════════════════════════════════════════════════════
   CART: ORDER SUMMARY ROWS  (replace old .cart-subtotal)
   ════════════════════════════════════════════════════════════════════════════ */

.cart-summary-rows {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.87rem;
}

.cart-summary-row.row-subtotal  { background: #E0F5F5; color: #1A1A1A; }
.cart-summary-row.row-discount  { background: #D4EEE8; color: #004d4d; }
.cart-summary-row.row-shipping  { background: #FFF8D6; color: #1A1A1A; }
.cart-summary-row.row-total     { background: #FFF0C8; color: #1A1A1A; font-weight: 700; font-size: 0.95rem; }

.cart-summary-row .discount-amt { color: #008080; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════════════
   CHECKOUT: URGENCY NUDGE
   ════════════════════════════════════════════════════════════════════════════ */

.co-urgency {
  display: none;
  background: #FFF8D6;
  border-left: 3px solid #FFD700;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  color: #5a4800;
  margin-bottom: 16px;
  line-height: 1.5;
}

.co-urgency.visible { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   CHECKOUT: COUPON INPUT (reuses .cart-coupon from main site)
   ════════════════════════════════════════════════════════════════════════════ */

#checkoutCouponArea .cart-coupon {
  margin-bottom: 4px;
}

#checkoutCouponArea .coupon-error {
  font-family: 'Jost', sans-serif;
  font-size: 0.77rem;
  color: #c0392b;
  margin-top: 5px;
  margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   CHECKOUT: COUPON APPLIED BADGE (read-only)
   ════════════════════════════════════════════════════════════════════════════ */

.checkout-coupon-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #E0F5F5;
  border: 1px dashed #008080;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: #004d4d;
  margin-bottom: 14px;
}

.checkout-coupon-badge .ck-icon { font-size: 1.2rem; line-height: 1.3; flex-shrink: 0; }
.checkout-coupon-badge .ck-label { font-weight: 700; color: #004d4d; }
.checkout-coupon-badge .ck-desc  { font-size: 0.78rem; color: #008080; margin-top: 2px; }

.checkout-coupon-badge .ck-remove {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.75rem;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  align-self: center;
}

.checkout-coupon-badge .ck-remove:hover { color: #c0392b; }

/* ════════════════════════════════════════════════════════════════════════════
   CHECKOUT: DISCOUNT ROW IN ORDER SUMMARY
   ════════════════════════════════════════════════════════════════════════════ */

.summary-row.discount {
  color: #008080;
  font-style: normal;
}

.summary-row.discount .amount {
  color: #008080;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════════
   CHECKOUT: COUPON INPUT FIELD (shared style)
   ════════════════════════════════════════════════════════════════════════════ */

.co-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.co-coupon-input {
  flex: 1;
  height: 40px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 0 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.87rem;
  color: #1A1A1A;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.co-coupon-input::placeholder { text-transform: none; letter-spacing: 0; color: #aaa; }
.co-coupon-input:focus { border-color: #008080; }

.co-coupon-btn {
  height: 40px;
  padding: 0 18px;
  background: #008080;
  color: #FFD700;
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.co-coupon-btn:hover { background: #006666; }
