/* ============================================================
   The Hearthside Cafe & Kitchen — Interactive Coffee Shop Cart
   Customization Modal, Slide-out Drawer & Simulated Checkout
   ============================================================ */

:root {
  --hearth-espresso: #38281f;
  --hearth-cinnamon: #c86d44;
  --hearth-cinnamon-hover: #b05730;
  --hearth-cinnamon-glow: rgba(200, 109, 68, 0.25);
  --hearth-cream: #faf7f2;
  --hearth-card: #ffffff;
  --hearth-border: #ede5da;
  --hearth-text: #2c2420;
  --hearth-muted: #736760;
  --hearth-green: #15803d;
  --hearth-font-serif: 'Cormorant Garamond', Georgia, serif;
  --hearth-font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* ── Menu Item Order Buttons & Hover State ── */
.menu-item-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-order-item {
  background: var(--hearth-cinnamon);
  color: #ffffff;
  border: none;
  font-family: var(--hearth-font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px var(--hearth-cinnamon-glow);
}
.btn-order-item:hover {
  background: var(--hearth-cinnamon-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--hearth-cinnamon-glow);
}
.menu-item.orderable {
  cursor: pointer;
  transition: background 0.2s, padding 0.2s;
  border-radius: 8px;
  padding: 14px 12px;
  margin: 0 -12px;
}
.menu-item.orderable:hover {
  background: rgba(200, 109, 68, 0.05);
}

/* ── Top Nav Cart Button ── */
.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 40, 31, 0.06);
  color: var(--hearth-espresso);
  border: 1px solid var(--hearth-border);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--hearth-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-cart-btn:hover {
  background: var(--hearth-espresso);
  color: #fed7aa;
  border-color: var(--hearth-espresso);
}
.nav-cart-count {
  background: var(--hearth-cinnamon);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
  transition: transform 0.2s;
}

/* ── Floating Cart Trigger Pill ── */
.cart-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hearth-espresso);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 100px;
  box-shadow: 0 8px 28px rgba(56, 40, 31, 0.35);
  cursor: pointer;
  font-family: var(--hearth-font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid rgba(254, 215, 170, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}
.cart-floating-btn:hover {
  background: #231913;
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(56, 40, 31, 0.45);
  border-color: #fed7aa;
}
.cart-floating-btn.hidden {
  display: none !important;
}
.cart-floating-btn.bump {
  animation: cartBump 0.35s ease-out;
}
@keyframes cartBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.cart-floating-count {
  background: var(--hearth-cinnamon);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  min-width: 22px;
  text-align: center;
}
.cart-floating-total {
  color: #fed7aa;
  font-weight: 800;
}

/* ════════════════════════════════════════════════════════════
   CUSTOMIZATION MODAL (COFFEE MODIFIERS)
   ════════════════════════════════════════════════════════════ */
.hearth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 28, 24, 0.65);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hearth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hearth-modal-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--hearth-border);
}
.hearth-modal-overlay.active .hearth-modal-container {
  transform: translateY(0) scale(1);
}
.hearth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hearth-border);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--hearth-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hearth-modal-close:hover {
  background: var(--hearth-espresso);
  color: #fff;
  transform: rotate(90deg);
}
.hearth-modal-scroll {
  overflow-y: auto;
  padding: 0 0 24px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.hearth-modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.hearth-modal-scroll::-webkit-scrollbar-thumb {
  background: #e2d7cc;
  border-radius: 10px;
}
.hearth-modal-header {
  padding: 28px 24px 18px;
  background: linear-gradient(180deg, #f8f3ec 0%, #ffffff 100%);
  border-bottom: 1px solid var(--hearth-border);
}
.hearth-modal-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--hearth-border);
  box-shadow: 0 4px 12px rgba(56, 40, 31, 0.1);
  flex-shrink: 0;
  background: var(--hearth-cream);
}
.hearth-modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-top: 6px;
}
.hearth-modal-title {
  font-family: var(--hearth-font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  line-height: 1.2;
}
.hearth-modal-baseprice {
  font-family: var(--hearth-font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hearth-cinnamon);
  flex-shrink: 0;
}
.hearth-modal-desc {
  color: var(--hearth-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* Modifier Sections */
.hearth-mod-group {
  padding: 18px 24px;
  border-bottom: 1px solid #f0e8df;
}
.hearth-mod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hearth-mod-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hearth-mod-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}
.hearth-mod-badge.req {
  background: #fef2f2;
  color: #991b1b;
}
.hearth-mod-badge.opt {
  background: #f3ede2;
  color: #736760;
}

/* Option Grid Cards */
.hearth-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.hearth-opt-card {
  border: 1px solid var(--hearth-border);
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.hearth-opt-card:hover {
  border-color: var(--hearth-cinnamon);
  background: rgba(200, 109, 68, 0.03);
}
.hearth-opt-card.selected {
  border-color: var(--hearth-cinnamon);
  background: rgba(200, 109, 68, 0.08);
  box-shadow: 0 0 0 1.5px var(--hearth-cinnamon);
}
.hearth-opt-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  line-height: 1.3;
}
.hearth-opt-detail {
  font-size: 0.75rem;
  color: var(--hearth-muted);
  margin-top: 2px;
}
.hearth-opt-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hearth-cinnamon);
  margin-top: 6px;
}

/* Syrups & Multi-Select Checkboxes */
.hearth-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--hearth-border);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.hearth-checkbox-row:hover {
  border-color: var(--hearth-cinnamon);
  background: rgba(200, 109, 68, 0.02);
}
.hearth-checkbox-row.selected {
  border-color: var(--hearth-cinnamon);
  background: rgba(200, 109, 68, 0.07);
}
.hearth-checkbox-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hearth-fake-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #a89f97;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  transition: all 0.2s;
}
.hearth-checkbox-row.selected .hearth-fake-checkbox {
  background: var(--hearth-cinnamon);
  border-color: var(--hearth-cinnamon);
}

/* Special Instructions */
.hearth-instructions-input {
  width: 100%;
  border: 1px solid var(--hearth-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--hearth-font-sans);
  font-size: 0.88rem;
  color: var(--hearth-text);
  resize: vertical;
  min-height: 54px;
  background: #faf7f2;
  transition: border-color 0.2s;
}
.hearth-instructions-input:focus {
  outline: none;
  border-color: var(--hearth-cinnamon);
  background: #ffffff;
}

/* Sticky Modal Footer */
.hearth-modal-footer {
  padding: 16px 24px;
  background: #ffffff;
  border-top: 1px solid var(--hearth-border);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.hearth-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hearth-border);
  border-radius: 100px;
  background: #fbf8f5;
  padding: 4px 6px;
}
.hearth-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--hearth-espresso);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s;
}
.hearth-qty-btn:hover {
  background: var(--hearth-espresso);
  color: #fff;
}
.hearth-qty-val {
  min-width: 32px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--hearth-espresso);
}
.hearth-add-btn {
  flex: 1;
  background: var(--hearth-cinnamon);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 100px;
  font-family: var(--hearth-font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px var(--hearth-cinnamon-glow);
  transition: all 0.2s;
}
.hearth-add-btn:hover {
  background: var(--hearth-cinnamon-hover);
  transform: translateY(-1px);
}
.hearth-add-price {
  background: rgba(0, 0, 0, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 800;
}

/* ════════════════════════════════════════════════════════════
   SLIDE-OUT CART DRAWER
   ════════════════════════════════════════════════════════════ */
.hearth-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 28, 24, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hearth-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hearth-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: 440px;
  max-width: 100%;
  background: #ffffff;
  z-index: 10060;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.hearth-drawer-panel * {
  box-sizing: border-box;
}
.hearth-drawer-overlay.active .hearth-drawer-panel {
  transform: translateX(0);
}
.hearth-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--hearth-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbf8f5;
}
.hearth-drawer-title {
  font-family: var(--hearth-font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hearth-drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--hearth-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.hearth-drawer-close:hover {
  color: var(--hearth-espresso);
}

.hearth-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.hearth-cart-empty {
  text-align: center;
  padding: 60px 20px;
}
.hearth-cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 14px;
  display: block;
}
.hearth-cart-empty-title {
  font-family: var(--hearth-font-serif);
  font-size: 1.4rem;
  color: var(--hearth-espresso);
  font-weight: 700;
  margin-bottom: 8px;
}
.hearth-cart-empty-desc {
  color: var(--hearth-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Cart Item Cards */
.hearth-cart-item {
  background: #ffffff;
  border: 1px solid var(--hearth-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.hearth-cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.hearth-cart-item-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--hearth-espresso);
}
.hearth-cart-item-price {
  font-weight: 800;
  color: var(--hearth-cinnamon);
  font-size: 0.96rem;
  flex-shrink: 0;
}
.hearth-cart-item-mods {
  font-size: 0.78rem;
  color: var(--hearth-muted);
  line-height: 1.5;
  margin: 6px 0 10px;
  padding: 6px 8px;
  background: #fbf8f5;
  border-radius: 6px;
}
.hearth-cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hearth-item-delete {
  background: none;
  border: none;
  color: #a89f97;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.hearth-item-delete:hover {
  color: #dc2626;
}

/* Drawer Footer & Checkout Action */
.hearth-drawer-footer {
  padding: 20px 24px;
  background: #ffffff;
  border-top: 1px solid var(--hearth-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}
.hearth-timing-card {
  background: #fbf8f5;
  border: 1px solid var(--hearth-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.hearth-timing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}
.hearth-timing-select {
  border: 1px solid var(--hearth-border);
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--hearth-espresso);
}
.hearth-cost-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--hearth-muted);
  margin-bottom: 6px;
}
.hearth-cost-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hearth-espresso);
  padding-top: 8px;
  border-top: 1px dashed var(--hearth-border);
  margin-top: 8px;
  margin-bottom: 16px;
}
.hearth-checkout-btn {
  width: 100%;
  background: var(--hearth-cinnamon);
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 100px;
  font-family: var(--hearth-font-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--hearth-cinnamon-glow);
  transition: all 0.2s;
}
.hearth-checkout-btn:hover {
  background: var(--hearth-cinnamon-hover);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════
   CHECKOUT MODAL & SIMULATED PAYMENTS
   ════════════════════════════════════════════════════════════ */
.hearth-checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 28, 24, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hearth-checkout-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hearth-checkout-container {
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hearth-border);
  box-sizing: border-box;
}
.hearth-checkout-container * {
  box-sizing: border-box;
}
.hearth-checkout-scroll {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
}
.hearth-checkout-header {
  border-bottom: 1px solid var(--hearth-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.hearth-checkout-title {
  font-family: var(--hearth-font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  margin-bottom: 4px;
}
.hearth-pickup-badge-box {
  background: #fbf8f5;
  border: 1px solid var(--hearth-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.hearth-input-group {
  margin-bottom: 14px;
}
.hearth-input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.hearth-text-input {
  width: 100%;
  border: 1px solid var(--hearth-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--hearth-font-sans);
  font-size: 0.9rem;
  color: var(--hearth-text);
  background: #faf7f2;
  transition: border-color 0.2s, background 0.2s;
}
.hearth-text-input:focus {
  outline: none;
  border-color: var(--hearth-cinnamon);
  background: #ffffff;
}

/* Payment Method Tabs */
.hearth-pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.hearth-pay-tab {
  border: 1px solid var(--hearth-border);
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.hearth-pay-tab.active {
  border-color: var(--hearth-cinnamon);
  background: rgba(200, 109, 68, 0.08);
  box-shadow: 0 0 0 1.5px var(--hearth-cinnamon);
}

.apple-pay-btn {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 100px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
  margin-bottom: 8px;
}
.apple-pay-btn:hover {
  background: #222222;
}

/* ════════════════════════════════════════════════════════════
   ORDER CONFIRMATION RECEIPT MODAL
   ════════════════════════════════════════════════════════════ */
.hearth-receipt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 28, 24, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.hearth-receipt-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hearth-receipt-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hearth-border);
  box-sizing: border-box;
}
.hearth-receipt-card * {
  box-sizing: border-box;
}
.hearth-check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
  animation: popSuccess 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popSuccess {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.hearth-order-num-pill {
  background: rgba(200, 109, 68, 0.1);
  color: var(--hearth-cinnamon);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 4px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 10px;
}
.hearth-receipt-title {
  font-family: var(--hearth-font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--hearth-espresso);
  margin-bottom: 6px;
}
.hearth-receipt-subtitle {
  color: var(--hearth-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.hearth-status-box {
  background: #fbf8f5;
  border: 1px solid var(--hearth-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
}
.hearth-status-pill {
  background: #15803d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 6px;
}
.hearth-receipt-items {
  border-top: 1px dashed var(--hearth-border);
  border-bottom: 1px dashed var(--hearth-border);
  padding: 14px 0;
  margin-bottom: 20px;
  text-align: left;
}
.hearth-receipt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .hearth-modal-container { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .hearth-modal-overlay { align-items: flex-end; padding: 0; }
  .hearth-drawer-panel {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hearth-drawer-header { padding: 16px 18px; }
  .hearth-drawer-body { padding: 12px 14px; }
  .hearth-drawer-footer { padding: 16px 18px 24px; }
  .hearth-checkout-container { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .hearth-checkout-overlay { align-items: flex-end; padding: 0; }
  .hearth-receipt-card { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .hearth-receipt-overlay { align-items: flex-end; padding: 0; }
  .cart-floating-btn { bottom: 18px; right: 18px; padding: 10px 18px; font-size: 0.85rem; }
}

/* ── Native Micro-Toast Feedback ── */
.hearth-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(44, 30, 22, 0.95);
  color: #faf7f2;
  border: 1px solid rgba(200, 109, 68, 0.4);
  backdrop-filter: blur(12px);
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
  z-index: 10000;
}
.hearth-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Hearthside Timing & Form Select ── */
.hearth-timing-select {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c86d44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--hearth-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--hearth-espresso);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hearth-timing-select:hover {
  border-color: var(--hearth-cinnamon);
}
.hearth-timing-select:focus {
  outline: none;
  border-color: var(--hearth-cinnamon);
  box-shadow: 0 0 0 3px rgba(200, 109, 68, 0.18);
}
.hearth-timing-select option {
  background: #ffffff;
  color: #231c18;
  padding: 8px 12px;
}

