/* ═══════════════════════════════════════════
   Suyaverse Customer Site — Dynamic UI Styles
   Injected by wire-vps-frontend.js
   ═══════════════════════════════════════════ */

/* ── Add to Cart Buttons ── */
.sv-add-btn {
  margin-left: 8px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ember);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  vertical-align: middle;
  white-space: nowrap;
}
.sv-add-btn:hover { background: var(--flame); transform: scale(1.05); }
.menu-item-body .sv-add-btn { display: block; margin: 0.75rem 0 0; }

/* ── Cart overlay ── */
#sv-cart-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.5);
}
#sv-cart-overlay.open { display: block; }

/* ── Cart Drawer ── */
#sv-cart-drawer {
  position: fixed; top: 0; right: -420px; bottom: 0; z-index: 900;
  width: 400px; max-width: 95vw;
  background: var(--ash);
  border-left: 1px solid rgba(207,153,47,0.15);
  display: flex; flex-direction: column;
  transition: right 0.3s ease;
}
#sv-cart-drawer.open { right: 0; }

.sv-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(207,153,47,0.12);
}
.sv-cart-header h3 { font-size: 1rem; font-weight: 600; color: var(--cream); }
.sv-cart-header button {
  background: none; border: none; color: rgba(236,216,189,0.4);
  font-size: 1.1rem; cursor: pointer; padding: 4px;
}
.sv-cart-header button:hover { color: var(--cream); }

.sv-cart-items {
  flex: 1; overflow-y: auto; padding: 1rem 1.5rem;
}
.sv-cart-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sv-cart-item:last-child { border-bottom: none; }
.sv-cart-item-info { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.sv-cart-item-name { font-size: 0.88rem; color: var(--cream); }
.sv-cart-size { font-size: 0.72rem; color: rgba(236,216,189,0.4); margin-left: 4px; }
.sv-cart-item-price { font-size: 0.88rem; color: var(--gold); font-weight: 600; }
.sv-cart-qty {
  display: flex; align-items: center; gap: 8px;
}
.sv-cart-qty button {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px; color: var(--cream); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.sv-cart-qty button:hover { background: rgba(255,255,255,0.12); }
.sv-cart-qty span { font-size: 0.9rem; min-width: 20px; text-align: center; }
.sv-cart-remove { color: rgba(236,216,189,0.3) !important; font-size: 0.75rem !important; }
.sv-cart-remove:hover { color: var(--ember) !important; }

.sv-cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(207,153,47,0.12);
}
.sv-cart-footer-total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 600; color: var(--cream);
  margin-bottom: 1rem;
}
#sv-cart-total { color: var(--gold); }
.sv-checkout-btn {
  width: 100%; padding: 0.9rem;
  background: var(--ember); color: #fff;
  border: none; border-radius: 3px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.sv-checkout-btn:hover { background: var(--flame); }
.sv-cart-note {
  text-align: center; font-size: 0.72rem;
  color: rgba(236,216,189,0.3); margin-top: 0.75rem;
}

/* ── Cart Badge ── */
.sv-cart-float-btn {
  background: var(--ember); color: #fff;
  border: none; border-radius: 2px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.sv-cart-float-btn:hover { background: var(--flame); }
.sv-cart-badge {
  background: var(--gold); color: #0D0A02;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Checkout Modal ── */
#sv-checkout-modal,
.sv-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.sv-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
}
.sv-modal-box {
  position: relative; z-index: 1;
  background: var(--char);
  border: 1px solid rgba(207,153,47,0.2);
  border-radius: 8px;
  width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
  padding: 2rem;
}
.sv-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.sv-modal-header h2 { font-size: 1.2rem; color: var(--cream); }
.sv-modal-header button {
  background: none; border: none;
  color: rgba(236,216,189,0.4); font-size: 1.1rem; cursor: pointer;
}
.sv-modal-header button:hover { color: var(--cream); }

.sv-order-summary { margin-bottom: 0.5rem; }
.sv-summary-row, .sv-summary-total {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; padding: 4px 0;
  color: rgba(236,216,189,0.7);
}
.sv-summary-total {
  font-weight: 700; color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 6px; padding-top: 8px;
}

.sv-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 1.25rem 0; }

.sv-modal-fields { display: flex; flex-direction: column; gap: 0.75rem; }
.sv-field { display: flex; flex-direction: column; gap: 0.3rem; }
.sv-field label {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(236,216,189,0.4);
}
.sv-field input, .sv-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(207,153,47,0.18);
  border-radius: 3px; padding: 0.65rem 0.9rem;
  font-size: 0.88rem; color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.sv-field input:focus, .sv-field textarea:focus { border-color: var(--gold); }
.sv-field input::placeholder, .sv-field textarea::placeholder { color: rgba(236,216,189,0.2); }
.sv-field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }

.sv-pay-btn {
  width: 100%; margin-top: 1.25rem; padding: 1rem;
  background: var(--ember); color: #fff;
  border: none; border-radius: 3px;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.sv-pay-btn:hover:not(:disabled) { background: var(--flame); }
.sv-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.sv-modal-note {
  text-align: center; font-size: 0.72rem;
  color: rgba(236,216,189,0.3); margin-top: 0.75rem; line-height: 1.5;
}

.sv-stripe-element {
  margin: 1.25rem 0 0;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(207,153,47,0.15);
  border-radius: 4px;
}

.sv-cancel-btn {
  display: block; width: 100%; margin-top: 0.75rem;
  padding: 0.5rem;
  background: none; border: none;
  color: rgba(236,216,189,0.3); font-size: 0.78rem;
  cursor: pointer; text-align: center;
  transition: color 0.2s;
}
.sv-cancel-btn:hover { color: rgba(236,216,189,0.7); text-decoration: underline; }

.sv-error {
  background: rgba(175,61,39,0.15);
  border: 1px solid rgba(175,61,39,0.4);
  border-radius: 3px;
  color: #f5c5c2; font-size: 0.82rem;
  padding: 0.6rem 0.9rem; margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── Spinner ── */
.sv-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(207,153,47,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: sv-spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes sv-spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.sv-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--char); border: 1px solid rgba(207,153,47,0.25);
  border-radius: 4px; padding: 0.9rem 1.5rem;
  font-size: 0.85rem; color: var(--cream);
  z-index: 9999; text-align: center; max-width: 360px;
  animation: sv-fade-in 0.2s ease;
  white-space: pre-line;
}
@keyframes sv-fade-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }

/* ── Hours table (dynamic) ── */
#sv-hours-table .hours-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(232,114,30,0.08); font-size: 0.9rem; }
#sv-hours-table .hours-today .hours-day { color: var(--spark); font-weight: 500; }
#sv-hours-table .hours-today .hours-time { color: var(--spark); }
#sv-hours-table .hours-day { color: rgba(253,246,236,0.5); font-weight: 300; }
#sv-hours-table .hours-time { color: var(--cream); }
#sv-hours-table .hours-time.closed { color: rgba(253,246,236,0.25); font-style: italic; }

/* ── Pickup trust badges ── */
.pickup-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 1rem 0;
}
.pickup-badge {
  font-size: 0.72rem; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(0,135,81,0.12);
  border: 1px solid rgba(0,135,81,0.25);
  color: #9FE1CB;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .sv-modal-box { padding: 1.25rem; }
  #sv-cart-drawer { width: 100%; right: -100%; }
}


/* Live restaurant time shown next to customer-facing hours. */
#sv-restaurant-time {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(232,114,30,0.16);
  background: rgba(18, 10, 5, 0.35);
}
#sv-restaurant-time .sv-restaurant-time-label {
  color: rgba(253,246,236,0.52);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#sv-restaurant-time .sv-restaurant-time-main {
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  margin-top: 0.2rem;
}
#sv-restaurant-time .sv-restaurant-time-sub {
  color: rgba(253,246,236,0.62);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}
#sv-restaurant-time.is-open {
  border-color: rgba(114, 174, 73, 0.38);
}
#sv-restaurant-time.is-open .sv-restaurant-time-sub {
  color: #9dd67b;
}


.sv-add-btn.sv-clover-order-btn {
  padding-inline: 0.72rem;
  min-width: 4.2rem;
}
