#restoran-menu-wrapper,
.restoran-favorit-wrapper,
.restoran-home-favorites {
  width: 100%;
}

.restoran-section-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
}


.restoran-menu-slider {
  position: relative;
  margin: 0 0 20px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.restoran-menu-slider-track {
  position: relative;
  display: flex;
  min-height: 360px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.restoran-menu-slider-track::-webkit-scrollbar {
  display: none;
}

.restoran-menu-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 360px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.restoran-menu-slide.is-active {
  z-index: 2;
}

.restoran-menu-slide-media,
.restoran-menu-slide-media img {
  width: 100%;
  height: 100%;
}

.restoran-menu-slide-media {
  position: absolute;
  inset: 0;
}

.restoran-menu-slide-media.is-empty {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.35), transparent 30%),
    radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.28), transparent 32%),
    linear-gradient(135deg, #0f172a, #1d4ed8 130%);
}

.restoran-menu-slide-media img {
  display: block;
  object-fit: cover;
}

.restoran-menu-slide-overlay {
  display: none;
}

.restoran-menu-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  max-width: 560px;
  padding: 36px 38px 84px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.55);
}

.restoran-menu-slide-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.restoran-menu-slide-content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  color: #fff;
}

.restoran-menu-slide-content p {
  margin: 0;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.restoran-menu-slide-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

.restoran-menu-slide-btn:hover,
.restoran-menu-slide-btn:focus {
  color: #fff;
  background: #16a34a;
}

.restoran-menu-slider-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.restoran-menu-slider-swipe-hint {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.restoran-menu-slider-dots {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  pointer-events: auto;
}

.restoran-menu-slider-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.restoran-menu-slider-dot.is-active {
  width: 32px;
  background: #22c55e;
}


.restoran-menu-toolbar {
  position: relative;
  top: auto;
  z-index: 30;
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.restoran-menu-search-wrap {
  display: block;
}

.restoran-menu-search {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-size: 15px;
}

.restoran-menu-search:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.restoran-menu-filter-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.restoran-menu-filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.restoran-menu-filter-chip span {
  color: #6b7280;
  font-weight: 600;
}

.restoran-menu-filter-chip.is-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.restoran-menu-filter-chip.is-active span {
  color: rgba(255, 255, 255, 0.86);
}

.produk-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.24);
}

.produk-item.is-hidden-by-filter {
  display: none !important;
}

.restoran-menu-empty-state {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  text-align: center;
  color: #475569;
  font-weight: 600;
}


.restoran-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.produk-item {
  position: relative;
  border: 1px solid #e9ecef;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 290px;
  overflow: hidden;
}


.produk-image-trigger {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.produk-item img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 12px;
}

.produk-title-trigger {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  cursor: pointer;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.produk-title {
  display: block;
  font-size: 1rem;
}

.produk-image-trigger:focus-visible,
.produk-title-trigger:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 3px;
  border-radius: 12px;
}


.produk-image-trigger:hover,
.produk-image-trigger:active,
.produk-title-trigger:hover,
.produk-title-trigger:active {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.produk-price {
  display: block;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 12px;
}

.produk-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.produk-image-trigger:hover .produk-title,
.produk-title-trigger:hover .produk-title {
  color: inherit;
}

.add-btn,
.qty-btn,
.remove-btn,
#checkout-btn,
.popup-qty-btn,
.restoran-popup-add-btn {
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.detail-btn,
.add-btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.detail-btn {
  background: #f3f4f6;
  color: #111827;
}

.add-btn {
  background-color: #16a34a;
  color: white;
}


.detail-btn:hover,
.detail-btn:focus {
  background: #e5e7eb;
  color: #111827;
}

.add-btn:hover,
.add-btn:focus {
  background-color: #15803d;
  color: #fff;
}

.restoran-cart-section {
  margin-top: 22px;
}

#cart-container {
  background: #f8fafc;
  padding: 14px;
  border-radius: 16px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.cart-item-subtotal {
  font-weight: 700;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.qty-btn {
  width: 46px;
  height: 46px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.plus-btn {
  background: #16a34a;
}

.minus-btn {
  background: #ef4444;
}

.qty-input-wrap {
  display: inline-flex;
  align-items: center;
}

.qty-input {
  width: 64px;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 0 6px;
  background: #fff;
}

.qty-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

.remove-btn {
  min-height: 44px;
  padding: 0 14px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cart-summary {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.meja-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.meja-field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
}

#checkout-btn {
  min-height: 48px;
  background-color: #25d366;
  color: white;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
}

.restoran-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.restoran-popup.is-active {
  display: block;
}

.restoran-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.restoran-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  margin: 4vh auto 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.restoran-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.restoran-popup-image-wrap {
  position: relative;
  background: #f8fafc;
}

.restoran-popup-image-gradient {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0));
  pointer-events: none;
}

#restoran-popup-image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.restoran-popup-content {
  padding: 20px;
}

.restoran-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

#restoran-popup-title {
  margin: 0 44px 8px 0;
  font-size: 1.45rem;
  line-height: 1.3;
}

.restoran-popup-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #16a34a;
  margin-bottom: 12px;
}

#restoran-popup-description {
  color: #4b5563;
  line-height: 1.7;
  font-size: 14px;
}


.cart-item-note {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.restoran-popup-note-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

#restoran-popup-note {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}

#restoran-popup-note:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.restoran-popup-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.restoran-popup-qty {
  display: inline-grid;
  grid-template-columns: 48px minmax(52px, auto) 48px;
  align-items: center;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 16px;
  min-height: 52px;
}

.popup-qty-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
}

#restoran-popup-qty-value {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  padding: 0 4px;
}

.restoran-popup-add-btn {
  min-height: 52px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.24);
}

body.restoran-popup-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  #restoran-menu-wrapper .restoran-menu-slider,
  #restoran-menu-wrapper .restoran-menu-intro {
    margin-bottom: 12px;
  }

  #restoran-menu-wrapper .restoran-section-title {
    margin-bottom: 10px;
    font-size: 18px;
  }

  #restoran-menu-wrapper .restoran-menu-toolbar {
    position: relative;
    top: auto;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    backdrop-filter: none;
  }

  #restoran-menu-wrapper .restoran-menu-search {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  #restoran-menu-wrapper .restoran-menu-filter-tabs {
    gap: 8px;
    padding-bottom: 0;
  }

  #restoran-menu-wrapper .restoran-menu-filter-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 700;
  }

  #restoran-menu-wrapper .restoran-menu-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #restoran-menu-wrapper .produk-item {
    min-height: auto;
    padding: 8px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      "image title"
      "image price"
      "image actions";
    column-gap: 10px;
    row-gap: 4px;
    align-items: start;
    text-align: left;
  }

  #restoran-menu-wrapper .produk-badge {
    top: 6px;
    left: 6px;
    font-size: 10px;
    padding: 2px 7px;
  }

  #restoran-menu-wrapper .produk-image-trigger {
    grid-area: image;
    margin: 0;
  }

  #restoran-menu-wrapper .produk-item img {
    width: 76px;
    height: 76px;
    border-radius: 10px;
  }

  #restoran-menu-wrapper .produk-title-trigger {
    grid-area: title;
    margin: 0;
  }

  #restoran-menu-wrapper .produk-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #restoran-menu-wrapper .produk-price {
    grid-area: price;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
  }

  #restoran-menu-wrapper .produk-actions {
    grid-area: actions;
    margin-top: 2px;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #restoran-menu-wrapper .detail-btn,
  #restoran-menu-wrapper .add-btn {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
  }

  #cart-items li {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-item-controls {
    justify-content: flex-start;
  }

  .remove-btn {
    flex: 1 1 100%;
  }

  .restoran-popup-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  #restoran-popup-image {
    aspect-ratio: 16 / 11;
  }

  .restoran-popup-content {
    padding: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .restoran-popup-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    padding-top: 12px;
    grid-template-columns: 1fr;
  }

  .restoran-popup-qty {
    width: 100%;
    grid-template-columns: 52px 1fr 52px;
  }

  .popup-qty-btn {
    width: 52px;
    height: 52px;
  }

  .restoran-popup-add-btn {
    min-height: 54px;
  }
}


.cart-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checkout-midtrans-btn,
.checkout-wa-btn {
  min-height: 48px;
  width: 100%;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}

.checkout-midtrans-btn {
  background: #0f172a;
  color: #fff;
}

.checkout-wa-btn {
  background: #25d366;
  color: #fff;
}

.checkout-midtrans-btn:disabled,
.checkout-wa-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}


.checkout-midtrans-btn.is-disabled{opacity:.65;cursor:not-allowed;background:#9ca3af;border-color:#9ca3af}.restoran-checkout-help{margin-top:10px;font-size:14px;color:#6b7280}

.restoran-operator-guard {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.restoran-operator-dashboard {
  display: grid;
  gap: 16px;
}

.restoran-operator-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}

.restoran-operator-header h2 {
  margin: 0 0 6px;
}

.restoran-operator-header p {
  margin: 0;
  color: #6b7280;
}

.restoran-operator-refresh {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.restoran-operator-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.operator-stat-card {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.operator-stat-card span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 8px;
}

.operator-stat-card strong {
  font-size: 28px;
}

.restoran-operator-feedback {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
}

.restoran-operator-feedback.success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.restoran-operator-feedback.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.restoran-operator-list {
  display: grid;
  gap: 14px;
}

.operator-order-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.operator-order-card.status-paid {
  border-left: 6px solid #f59e0b;
}

.operator-order-card.status-processing {
  border-left: 6px solid #3b82f6;
}

.operator-order-card.status-completed {
  border-left: 6px solid #22c55e;
}

.operator-order-top,
.operator-order-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.operator-order-number {
  font-size: 18px;
  font-weight: 800;
}

.operator-order-meta {
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
}

.operator-order-status {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.operator-order-items {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: grid;
  gap: 10px;
}

.operator-order-items li {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.operator-order-items small {
  color: #6b7280;
}

.operator-order-total {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.operator-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator-action-btn {
  min-height: 46px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.operator-action-btn.processing {
  background: #2563eb;
}

.operator-action-btn.completed {
  background: #16a34a;
}

.operator-action-btn.print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #111827;
  color: #fff;
}

.operator-action-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.operator-empty {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  text-align: center;
  color: #64748b;
  background: #fff;
}

@media (max-width: 640px) {
  .restoran-operator-summary {
    grid-template-columns: 1fr;
  }

  .restoran-operator-header,
  .operator-order-top,
  .operator-order-bottom {
    flex-direction: column;
  }

  .operator-order-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
}


.operator-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.operator-section + .operator-section {
  margin-top: 18px;
}

.operator-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.operator-section-header h3 {
  margin: 0;
  font-size: 18px;
}

.operator-section-header p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.operator-section-completed {
  background: #f8fafc;
}

.restoran-order-queue {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.restoran-order-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.restoran-order-queue-header h2 {
  margin: 0 0 6px;
}

.restoran-order-queue-header p,
.restoran-order-queue-updated {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.restoran-order-queue-refresh {
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

.restoran-order-queue-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.restoran-order-queue-table {
  width: 100%;
  border-collapse: collapse;
}

.restoran-order-queue-table th,
.restoran-order-queue-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.restoran-order-queue-table th {
  white-space: nowrap;
  color: #0f172a;
  font-size: 14px;
}

.restoran-queue-order-items {
  font-weight: 600;
  color: #111827;
}

.restoran-queue-order-number {
  display: inline-block;
  margin-top: 4px;
  color: #64748b;
}

.restoran-queue-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.restoran-queue-status-badge.status-paid {
  background: #dcfce7;
  color: #166534;
}

.restoran-queue-status-badge.status-processing {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 767px) {
  .restoran-order-queue {
    padding: 16px;
  }

  .restoran-order-queue-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .restoran-order-queue-table th,
  .restoran-order-queue-table td {
    padding: 10px 8px;
    font-size: 14px;
  }
}


/* TV Mode */
.restoran-order-tv {
  background: #0f172a;
  color: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}
.restoran-order-tv-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.restoran-order-tv-topbar h2 { margin: 0 0 6px; color: #fff; }
.restoran-order-tv-topbar p { margin: 0; color: rgba(255,255,255,0.72); }
.restoran-order-tv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.restoran-order-tv-btn {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}
.restoran-order-tv-btn.primary { background: #22c55e; border-color: #22c55e; color: #062012; }
.restoran-order-tv-stage {
  position: relative;
  min-height: 70vh;
  background: radial-gradient(circle at top right, rgba(34,197,94,0.18), transparent 34%), linear-gradient(180deg, #0b1220 0%, #111827 100%);
  border-radius: 28px;
  overflow: hidden;
  padding: 28px;
}
.restoran-order-tv-stage:fullscreen {
  border-radius: 0;
  padding: 34px;
}
.restoran-order-tv-empty {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 24px;
}
.restoran-order-tv-slides {
  position: relative;
  min-height: 56vh;
}
.restoran-order-tv-slide {
  display: none;
  animation: restoranTvFade .35s ease;
  height: 100%;
}
.restoran-order-tv-slide.is-active { display: block; }
@keyframes restoranTvFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.restoran-order-tv-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.restoran-order-tv-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.restoran-order-tv-tablebox,
.restoran-order-tv-orderbox,
.restoran-order-tv-content,
.restoran-order-tv-bottom {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  backdrop-filter: blur(6px);
}
.restoran-order-tv-tablebox,
.restoran-order-tv-orderbox {
  padding: 24px;
}
.restoran-order-tv-tablebox span,
.restoran-order-tv-orderbox span {
  display: block;
  color: rgba(255,255,255,0.66);
  margin-bottom: 8px;
  font-size: 18px;
}
.restoran-order-tv-tablebox strong,
.restoran-order-tv-orderbox strong {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  color: #fff;
}
.restoran-order-tv-content {
  padding: 26px;
}
.restoran-order-tv-content h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
}
.restoran-order-tv-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.restoran-order-tv-content li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
}
.restoran-order-tv-item-name { flex: 1; }
.restoran-order-tv-item-qty { color: #86efac; }
.restoran-order-tv-bottom {
  margin-top: 22px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 20px;
}
.restoran-order-tv-footer {
  margin-top: 22px;
}
.restoran-order-tv-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.restoran-order-tv-progress span {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.restoran-order-tv-progress span.is-active { background: #22c55e; }
.restoran-order-tv-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}
@media (max-width: 768px) {
  .restoran-order-tv-topbar,
  .restoran-order-tv-meta,
  .restoran-order-tv-bottom,
  .restoran-order-tv-main {
    grid-template-columns: 1fr;
    display: grid;
  }
  .restoran-order-tv-stage { min-height: 76vh; padding: 18px; }
  .restoran-order-tv-content li { font-size: 20px; }
  .restoran-order-tv-tablebox strong,
  .restoran-order-tv-orderbox strong { font-size: 48px; }
  .restoran-order-tv-empty { font-size: 20px; min-height: 46vh; }
}

@media (max-width: 767px) {
  .restoran-menu-toolbar {
    top: auto;
    padding: 10px;
    border-radius: 14px;
  }

  .restoran-menu-filter-chip {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }
}


.restoran-cart-section {
  display: none;
}

.restoran-floating-cart-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9997;
  width: min( calc(100vw - 32px), 360px);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 22px;
  background: linear-gradient(135deg, #111827, #16a34a);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.restoran-floating-cart-btn.has-items {
  animation: restoranCartPulse 2.2s ease-in-out infinite;
}

@keyframes restoranCartPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.restoran-floating-cart-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.restoran-floating-cart-text {
  display: grid;
  text-align: left;
  flex: 1 1 auto;
}

.restoran-floating-cart-text strong {
  font-size: 16px;
  line-height: 1.2;
}

.restoran-floating-cart-text small {
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  line-height: 1.3;
}

.restoran-floating-cart-count {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.restoran-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

.restoran-cart-drawer.is-active {
  pointer-events: auto;
}

.restoran-cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  transition: opacity .22s ease;
}

.restoran-cart-drawer-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 430px);
  max-height: min(84vh, 860px);
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -16px 38px rgba(15, 23, 42, 0.24);
  transform: translateY(100%);
  transition: transform .24s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.restoran-cart-drawer.is-active .restoran-cart-drawer-overlay { opacity: 1; }
.restoran-cart-drawer.is-active .restoran-cart-drawer-panel { transform: translateY(0); }

.restoran-cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.restoran-cart-eyebrow {
  margin: 0 0 4px;
  color: #16a34a;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

#restoran-cart-title {
  margin: 0;
  font-size: 1.25rem;
}

.restoran-cart-drawer-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.restoran-cart-drawer-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

#cart-container {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: transparent;
  padding: 16px;
  margin-top: 0;
  border: none;
}

.restoran-cart-footer-pane {
  flex: 0 0 auto;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248,250,252,0.82) 0%, rgba(255,255,255,0.98) 20%, #ffffff 100%);
  border-top: 1px solid rgba(226,232,240,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(15,23,42,.06);
}

.cart-empty-state {
  padding: 28px 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  text-align: center;
  color: #475569;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

#cart-items {
  display: grid;
  gap: 12px;
}

#cart-items li.cart-item-card {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  padding: 16px;
  padding-top: 18px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.cart-item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 42px;
}

.cart-item-info strong {
  font-size: 15px;
  color: #0f172a;
}

.cart-item-price {
  color: #64748b;
}

.cart-item-subtotal {
  flex: 0 0 auto;
  color: #16a34a;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0fdf4;
}

.cart-item-controls {
  justify-content: space-between;
  gap: 10px;
}

.cart-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.qty-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.qty-input {
  width: 68px;
  height: 42px;
  border-radius: 12px;
}

.remove-btn {
  min-height: 42px;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
}

.remove-btn-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  box-shadow: 0 6px 16px rgba(225,29,72,.12);
  z-index: 2;
}

.remove-btn-icon:hover,
.remove-btn-icon:focus {
  background: #ffe4e6;
  color: #be123c;
}

.cart-summary {
  margin-top: 0;
  padding: 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}

.cart-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  color: #166534;
}

.cart-summary-card span {
  font-size: 13px;
  font-weight: 700;
}

.cart-summary-card strong {
  font-size: 1.15rem;
}

.meja-field input {
  background: #f8fafc;
}

.cart-action-buttons,
.checkout-midtrans-btn {
  width: 100%;
}

.checkout-midtrans-btn {
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(22,163,74,.26);
}

.checkout-midtrans-btn.is-disabled {
  background: #cbd5e1;
  box-shadow: none;
}

.restoran-checkout-help {
  display: none;
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.restoran-checkout-help[data-state="error"] {
  display: block;
  background: #fff1f2;
  color: #b91c1c;
  border: 1px solid #fecdd3;
}

.restoran-checkout-help[data-state="info"] {
  display: block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body.restoran-cart-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .restoran-floating-cart-btn {
    width: 320px;
    bottom: 24px;
    right: 24px;
  }

  .restoran-cart-drawer-panel {
    top: 0;
    bottom: 0;
    border-radius: 28px 0 0 28px;
    max-height: 100vh;
    transform: translateX(100%);
  }

  .restoran-cart-drawer.is-active .restoran-cart-drawer-panel {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .restoran-floating-cart-btn {
    min-height: 64px;
    border-radius: 20px;
  }

  #cart-container {
    padding: 12px;
  }

  .cart-item-main {
    flex-direction: column;
  }

  .cart-item-subtotal {
    align-self: flex-start;
  }

  .cart-item-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-qty-control {
    justify-content: space-between;
  }

  .qty-input-wrap,
  .qty-input {
    flex: 1 1 auto;
    width: 100%;
  }

  .remove-btn-icon {
    top: 8px;
    right: 8px;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    font-size: 24px;
  }
}

.restoran-admin-page {
  width: 100%;
}

.restoran-admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.restoran-admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.restoran-admin-tab.is-active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.restoran-admin-tab.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.restoran-access-card {
  max-width: 520px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.restoran-access-card h2,
.restoran-access-card h3 {
  margin-top: 0;
}

.restoran-access-card-head {
  margin-bottom: 18px;
}

.restoran-access-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.restoran-login-card form {
  display: grid;
  gap: 14px;
}

.restoran-login-card label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.restoran-login-card input[type="text"],
.restoran-login-card input[type="password"],
.restoran-login-card input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
}

.restoran-login-card .login-submit input[type="submit"] {
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 767px) {
  .restoran-menu-slider-track,
  .restoran-menu-slide-content {
    min-height: 300px;
  }

  .restoran-menu-slide-content {
    max-width: 100%;
    padding: 24px 20px 78px;
  }

  .restoran-menu-slide-overlay {
    display: none;
  }

  .restoran-menu-slider-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

.restoran-menu-intro {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.restoran-menu-intro-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  color: #0f172a;
}

.restoran-menu-intro-description {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
}

.cart-summary-breakdown {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cart-summary-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #334155;
}

.cart-summary-breakdown-row + .cart-summary-breakdown-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}


/* Mobile-first cart comfort improvements */
#cart-container {
  display: grid;
  gap: 14px;
}

#cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.meja-field {
  position: relative;
  gap: 8px;
}

.meja-field-highlight {
  padding: 14px;
  border-radius: 18px;
  border: 2px solid #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.10);
}

.meja-field-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: #166534;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meja-field-label {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: #166534;
}

.meja-field-highlight input {
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #bbf7d0;
  border-radius: 14px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.meja-field-highlight input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.meja-field-highlight input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.meja-field.is-filled {
  border-color: #22c55e;
}

.meja-field.is-error {
  border-color: #ef4444;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.15);
}

.meja-field.is-error .meja-field-kicker {
  background: #b91c1c;
}

.meja-field.is-error .meja-field-label {
  color: #b91c1c;
}

.meja-field.is-error input {
  border-color: #f87171;
  background: #ffffff;
}

.meja-field.is-bump {
  animation: mejaFieldBump .35s ease;
}

@keyframes mejaFieldBump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-2px); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

@media (max-width: 767px) {
  .restoran-cart-drawer-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 24px 24px 0 0;
  }

  .restoran-cart-drawer-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #cart-container {
    flex: 0 0 auto;
    overflow: visible;
    padding: 12px;
    padding-bottom: 8px;
  }

  .restoran-cart-footer-pane {
    flex: 0 0 auto;
    position: static;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    box-shadow: none;
    backdrop-filter: none;
    background: #ffffff;
  }

  .cart-summary {
    padding: 14px;
    border-radius: 20px;
  }

  .cart-summary-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .cart-summary-card strong {
    font-size: 1.25rem;
  }

  .cart-summary-breakdown {
    padding: 10px 12px;
  }

  .cart-summary-breakdown-row {
    font-size: 13px;
  }

  .cart-action-buttons {
    position: static;
    padding-top: 10px;
    background: transparent;
  }

  .checkout-midtrans-btn {
    min-height: 56px;
    border-radius: 18px;
  }

  .restoran-checkout-help {
    margin: 0 12px 12px;
  }
}


/* Mobile cart summary safety patch */
@media (max-width: 640px) {
  .restoran-cart-drawer-panel {
    max-height: 100dvh;
    height: min(100dvh, 100%);
  }

  .restoran-cart-drawer-body {
    min-height: 0;
  }

  #cart-container {
    padding: 14px 14px 10px;
  }

  .restoran-cart-footer-pane {
    position: relative;
    padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(15,23,42,.06);
  }

  .cart-summary {
    margin-top: 0;
    gap: 10px;
  }

  .cart-summary-card,
  .cart-summary-breakdown,
  .meja-field-highlight {
    border-radius: 16px;
  }

  .cart-summary-card,
  .cart-summary-breakdown {
    padding: 12px;
  }

  #cart-items {
    gap: 10px;
    padding-bottom: 4px;
  }

  #cart-items li.cart-item-card {
    padding: 14px;
    border-radius: 18px;
  }

  .cart-item-main {
    align-items: flex-start;
    gap: 10px;
    padding-right: 36px;
  }

  .cart-item-subtotal {
    font-size: 14px;
    padding: 5px 9px;
  }

  .cart-item-controls {
    justify-content: flex-start;
  }
}


.receipt-download-card {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.receipt-download-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #1d4ed8;
}

.receipt-download-btn {
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}
.receipt-download-btn:hover,
.receipt-download-btn:focus {
  background: #1d4ed8;
}


.restoran-menu-slider-track.is-dragging {
  scroll-snap-type: none;
}

@media (max-width: 768px) {
  .restoran-menu-slider-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .restoran-menu-slider-dots {
    justify-content: flex-start;
    width: 100%;
  }
}
