/* ============================================
   SaborPro - Web Ordering
   Minimal, clean, mobile-first
   ============================================ */

:root {
  --accent: #2563EB;
  --accent-light: #EFF6FF;
  --text: #111827;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --border: #E5E7EB;
  --success: #059669;
  --danger: #DC2626;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100dvh;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
}

/* ============================================
   Screens
   ============================================ */

.screen {
  display: none;
  min-height: 100dvh;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

/* ============================================
   Loading
   ============================================ */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 16px;
  color: var(--text-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Error
   ============================================ */

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FEE2E2;
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

/* ============================================
   Header
   ============================================ */

.header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  border-radius: 8px;
  flex-shrink: 0;
}

.back-btn:active {
  background: var(--bg-secondary);
}

.header-center {
  flex: 1;
  text-align: center;
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.header-title {
  font-weight: 600;
  font-size: 17px;
}

.header-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.header-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* ============================================
   Welcome Screen
   ============================================ */

.welcome-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 32px;
  background: var(--bg-secondary);
}

.welcome-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 40px;
  flex: 1;
}

.welcome-greeting {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-align: center;
}

.welcome-message {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
  text-align: center;
}

.welcome-message strong {
  color: var(--text);
  font-weight: 700;
}

.welcome-instruction {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
}

.restaurant-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.restaurant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branches-list {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .branches-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.branch-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  gap: 14px;
}

.branch-btn:active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.branch-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.branch-info {
  flex: 1;
  min-width: 0;
}

.branch-name {
  font-weight: 600;
  font-size: 16px;
}

.branch-address {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.branch-arrow {
  color: var(--text-secondary);
  flex-shrink: 0;
  opacity: 0.5;
}

/* ============================================
   Order Type
   ============================================ */

.order-type-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  gap: 16px;
}

.order-type-question {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.order-type-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}

@media (min-width: 540px) {
  .order-type-buttons {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
  }
}

.order-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.15s;
  gap: 8px;
}

.order-type-btn:active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.order-type-icon {
  color: var(--text-secondary);
  line-height: 0;
}

.order-type-label {
  font-weight: 700;
  font-size: 18px;
}

.order-type-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================
   Menu Layout (split view on desktop)
   ============================================ */

.menu-layout {
  display: flex;
  flex: 1;
}

/* Cart sidebar: hidden on mobile */
.cart-sidebar {
  display: none;
}

@media (min-width: 768px) {
  .cart-sidebar {
    display: flex;
    flex-direction: column;
    width: 340px;
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100dvh - 100px);
  }

  .products-container {
    padding-bottom: 16px !important;
  }

  /* Hide mobile cart bar on desktop */
  .cart-bar {
    display: none !important;
  }
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-sidebar-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.cart-sidebar-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.cart-sidebar-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}

.cart-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.cart-sidebar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--text-secondary);
  text-align: center;
  gap: 8px;
}

.cart-sidebar-empty-icon {
  font-size: 40px;
  opacity: 0.4;
}

/* ============================================
   Search
   ============================================ */

.search-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 8px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.search-toggle-btn:active,
.search-toggle-btn.active {
  color: var(--accent);
}

.search-bar {
  display: flex;
  padding: 8px 16px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 49px;
  z-index: 9;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 10px;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
}

.search-input-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}

.search-input-wrapper input::placeholder {
  color: var(--text-secondary);
}

.search-clear-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.search-clear-btn:active {
  background: var(--border);
}

/* ============================================
   Categories Bar
   ============================================ */

.categories-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 49px;
  z-index: 9;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}

.category-tab.active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent);
  font-weight: 600;
}

/* ============================================
   Products Grid
   ============================================ */

.products-container {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px; /* space for cart bar */
  min-width: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 540px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 760px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s;
}

.product-card:active {
  border-color: var(--accent);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 10px;
}

.product-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
}

.products-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

/* ============================================
   Product Modal
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  overflow-y: auto;
}

@media (min-width: 600px) {
  .modal-content {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    max-height: 85dvh;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal-image {
  width: 100%;
  height: 220px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 20px;
}

.modal-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* ============================================
   Presentations (sizes)
   ============================================ */

.presentations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.presentation-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
}

.presentation-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.presentation-name {
  font-weight: 500;
}

.presentation-price {
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   Modifiers
   ============================================ */

.modifier-group {
  margin-bottom: 20px;
}

.modifier-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.modifier-group-name {
  font-weight: 600;
  font-size: 15px;
}

.modifier-required-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--danger);
  background: #FEE2E2;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.modifier-group-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.modifier-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modifier-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.modifier-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.modifier-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.modifier-option-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg);
}

.modifier-option-indicator.square {
  border-radius: 4px;
}

.modifier-option.selected .modifier-option-indicator {
  border-color: var(--accent);
  background: var(--accent);
}

.modifier-option.selected .modifier-option-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.modifier-option.selected .modifier-option-indicator.square::after {
  width: 9px;
  height: 6px;
  border-radius: 0;
  background: none;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translate(-1px, -2px);
}

.modifier-option-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.modifier-option-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 8px;
}

.modifier-option-price.positive {
  color: var(--accent);
}

.modifier-error {
  background: #FEE2E2;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

/* ============================================
   Quantity
   ============================================ */

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quantity-label {
  font-weight: 600;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.qty-btn:active {
  background: var(--bg-secondary);
}

.qty-value {
  font-size: 18px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

/* ============================================
   Add to Cart Button
   ============================================ */

.add-to-cart-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.add-to-cart-btn:active {
  opacity: 0.85;
}

/* ============================================
   Cart Bar (floating at bottom of menu)
   ============================================ */

.cart-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1416px;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  z-index: 20;
  border-radius: var(--radius);
}

.cart-bar-count {
  background: rgba(255,255,255,0.25);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.cart-bar-label {
  font-weight: 600;
  font-size: 16px;
}

.cart-bar-total {
  font-weight: 700;
  font-size: 16px;
}

/* ============================================
   Cart Screen
   ============================================ */

.cart-content {
  flex: 1;
  padding: 16px;
  padding-bottom: 120px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.cart-item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 15px;
}

.cart-item-detail {
  color: var(--text-secondary);
  font-size: 13px;
}

.cart-item-price {
  font-weight: 700;
  font-size: 15px;
  margin-top: 2px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cart-item-actions .qty-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.cart-item-qty {
  font-weight: 700;
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

.cart-remove-btn {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  text-align: center;
  gap: 8px;
}

.cart-empty-icon {
  font-size: 48px;
  opacity: 0.5;
}

.cart-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  padding: 16px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 20;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
}

.cart-total-amount {
  font-weight: 700;
  color: var(--accent);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
}

.checkout-btn:active {
  opacity: 0.85;
}

/* ============================================
   Checkout
   ============================================ */

.checkout-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  padding-bottom: 40px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.collapsible-section {
  margin-bottom: 16px;
}

.collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.collapsible-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}

.collapsible-arrow.open {
  transform: rotate(180deg);
}

/* Fila de toggle de cambio */
.change-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.change-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border);
  border-radius: 24px;
  transition: background-color 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.checkout-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
}

.checkout-summary-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-summary-item span:first-child {
  flex: 1;
  margin-right: 12px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
}

.checkout-total-amount {
  color: var(--accent);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--success);
  color: white;
  font-size: 17px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.submit-btn:active {
  opacity: 0.85;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Confirmation
   ============================================ */

.confirmation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
  text-align: center;
  gap: 12px;
}

.confirmation-icon {
  font-size: 56px;
}

.confirmation-content h2 {
  font-size: 22px;
  font-weight: 700;
}

.confirmation-detail {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 320px;
}

.new-order-btn {
  margin-top: 24px;
  padding: 14px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.new-order-btn:active {
  background: var(--bg-secondary);
}
