:root {
  --bg: #fbf6ef;
  --bg-2: #f4ede3;
  --card: #ffffff;
  --text: #2b2018;
  --muted: #6f5b4a;
  --accent: #8b5a2b;
  --accent-2: #b27a4a;
  --accent-3: #e6d2be;
  --shadow: 0 12px 30px rgba(43, 32, 24, 0.12);
  --radius: 18px;
  --focus: 0 0 0 3px rgba(139, 90, 43, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:
    'Rubik',
    system-ui,
    -apple-system,
    sans-serif;
  background: radial-gradient(
    circle at top,
    #fff8f1 0%,
    var(--bg) 45%,
    var(--bg-2) 100%
  );
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

html.modalOpen,
body.modalOpen {
  height: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

section {
  scroll-margin-top: 90px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 9999;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--focus);
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 246, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 90, 43, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
  order: 2;
}

.topbar-hours {
  order: 1;
  background: #fff;
  border: 1px solid var(--accent-3);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.86rem;
  color: var(--accent);
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  order: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn.secondary {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent-3);
}

.btn.ghost {
  background: transparent;
  border-color: var(--accent-3);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

main {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 2.5rem 0 4rem;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-card {
  background: var(--card);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--accent-3);
  color: var(--text);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1.2rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  gap: 1.5rem;
}

.menu-category {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.menu-category h3 {
  margin: 0 0 0.8rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed #eadfd3;
}


.menu-item-with-options {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

.menu-item-with-options > .menu-item-main,
.menu-item-with-options .buy-row {
  width: 100%;
}

.menu-item-with-options .buy-row {
  justify-content: space-between;
  margin-top: 0;
}

.drink-type-wrap {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  max-width: 340px;
}

.drink-type-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.drink-type-select {
  width: 100%;
}

.drink-type-error {
  margin: 0;
  color: #9b2f2f;
  font-size: 0.84rem;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item span {
  display: block;
}

.menu-item .desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.menu-item > span:first-child {
  min-width: 0;
}

.menu-item .menu-item-main {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.menu-item-text {
  min-width: 0;
}

.menu-thumb {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 12px;
  border: 1px solid #eadfd3;
  object-fit: cover;
  background: #fff8f1;
}

.price {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.combo {
  background: #fff8f1;
  border: 1px solid #f0dcc9;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  margin-top: 0.8rem;
}

.highlight {
  background: linear-gradient(135deg, #fff4ea, #f6e4d4);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.6rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.gallery-tile {
  background: linear-gradient(145deg, #f7e7d7, #fdf7f0);
  border-radius: 16px;
  padding: 1.2rem;
  min-height: 120px;
  display: grid;
  place-items: center;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-tile svg {
  width: 42px;
  height: 42px;
  margin-bottom: 0.4rem;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.reviews {
  display: grid;
  gap: 1rem;
}

.review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
}

.review strong {
  display: block;
  margin-bottom: 0.4rem;
}

.stars {
  color: #d08c4a;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.location-grid {
  display: grid;
  gap: 1.5rem;
}

.map-placeholder {
  background: linear-gradient(145deg, #efe2d3, #fff8f1);
  border-radius: var(--radius);
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500;
  border: 1px dashed #dfcbb6;
}

.faq {
  display: grid;
  gap: 0.8rem;
}

details {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

footer {
  background: #2b2018;
  color: #f7efe7;
  padding: 2rem 0 4.5rem;
}

footer a {
  color: #f7efe7;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.top-button {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 40;
}

.top-button.show {
  opacity: 1;
  pointer-events: auto;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  background: #2b2018;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 50;
  font-size: 0.95rem;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-cart-btn {
  position: fixed;
  top: 12px;
  top: calc(env(safe-area-inset-top) + 12px);
  right: 12px;
  right: calc(env(safe-area-inset-right) + 12px);
  left: auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #dfcbb6;
  background: #fff8f1;
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(43, 32, 24, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 2147483640;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-cart-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.mobile-cart-icon {
  line-height: 1;
  display: inline-flex;
  font-size: 1.3rem;
}

.mobile-cart-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}

.mobile-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
}

.mobile-cart-badge[hidden] {
  display: none;
}

.mobile-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 32, 24, 0.42);
  z-index: 2147483638;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-cart-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.meta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }

  .location-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-hours {
    width: 100%;
    text-align: center;
    order: 3;
  }

  .nav-actions .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
  }
}

/* הזמנה אינטראקטיבית */
.order-zone {
  display: grid;
  gap: 1.5rem;
}

.order-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  border: 1px solid #f0dcc9;
  background: #fff8f1;
  border-radius: 999px;
  padding: 0.2rem 0.35rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--accent-3);
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.qty-display {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.menu-item-actions,
.combo-actions,
.buy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
  flex-wrap: wrap;
}

.combo-actions {
  margin-top: 0.6rem;
}

.buy-row .qty,
.menu-item-actions .qty,
.combo-actions .qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.buy-row .price,
.menu-item-actions .price,
.combo-actions .price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
  position: static;
}

.cart-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.cart-panel h3 {
  margin: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.cart-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-close-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #dfcbb6;
  background: #fff;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-close-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.cart-empty {
  color: var(--muted);
  margin: 0;
}

.cart-items {
  display: grid;
  gap: 0.55rem;
}

.cart-scroll {
  min-height: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px dashed #eadfd3;
  padding-bottom: 0.5rem;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-name {
  font-weight: 500;
}

.cart-item-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-line-total {
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #eadfd3;
  font-size: 1.05rem;
}

.cart-footer {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.order-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.order-form label {
  font-weight: 500;
  font-size: 0.95rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dfcbb6;
  background: #fff;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  box-shadow: var(--focus);
}

.order-form select {
  width: 100%;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 999px;
  border: 1px solid #dfcbb6;
  background-color: #fff8f1;
  color: var(--text);
  font: inherit;
  line-height: 1.2;
  min-height: 2.25rem;
  padding-block: 0.5rem;
  padding-inline: 0.75rem 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ctext x='8' y='11' text-anchor='middle' font-size='12' fill='%236f5b4a'%3E%E2%96%BE%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.7rem center;
  background-size: 0.85rem;
}

select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--focus);
}

select::-ms-expand {
  display: none;
}

.select-native-hidden {
  display: none !important;
}

.select-wrap {
  position: relative;
  width: 100%;
  direction: rtl;
  text-align: right;
}

.select-trigger {
  width: 100%;
  min-height: 2.6rem;
  border-radius: 999px;
  border: 1px solid #dfcbb6;
  background: #fff8f1;
  color: #44352a;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.65rem 2.5rem 0.65rem 0.95rem;
  text-align: right;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 18px rgba(64, 45, 29, 0.08);
}

.select-trigger::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #7a624d;
  border-bottom: 2px solid #7a624d;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.select-wrap.is-open .select-trigger::after {
  transform: translateY(-38%) rotate(-135deg);
}

.select-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--focus);
}

.select-wrap.is-open .select-trigger {
  border-color: var(--accent-2);
}

.select-wrap.is-disabled .select-trigger {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.select-trigger-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  margin: 0;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid #dfcbb6;
  background: #fff8f1;
  box-shadow: 0 16px 28px rgba(52, 35, 22, 0.18);
  z-index: 2147483641;
  max-height: min(18rem, 45vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.select-panel[hidden] {
  display: none;
}

.select-option {
  width: 100%;
  display: block;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  text-align: right;
  border-radius: 10px;
  padding: 0.62rem 0.75rem;
  cursor: pointer;
}

.select-option:hover,
.select-option:focus-visible,
.select-option--active {
  background: #f2e2d1;
  color: var(--accent);
}

.select-option[aria-selected='true'] {
  color: var(--accent);
  font-weight: 700;
}

.select-option:disabled {
  color: #a39488;
  cursor: not-allowed;
  background: transparent;
}

.order-form textarea {
  min-height: 80px;
  resize: vertical;
}

.field-hint {
  margin: -0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-error {
  margin: 0;
  color: #9b2f2f;
  font-size: 0.92rem;
  min-height: 1.35rem;
}

.form-error-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.cart-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.reset-all-btn {
  border-color: #d8b6b6;
  color: #8a2f2f;
}

.reset-all-btn:hover {
  box-shadow: 0 10px 18px rgba(138, 47, 47, 0.18);
}

.last-order-link {
  width: 100%;
  margin-top: -0.1rem;
}

.menu-note {
  color: var(--muted);
  margin-top: -0.6rem;
}

.choice-board {
  background: #fff8f1;
  border: 1px solid #f0dcc9;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.choice-board p {
  margin: 0;
}

@media (min-width: 920px) {
  .order-zone {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }

  .cart-panel {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .mobile-cart-btn {
    display: flex !important;
  }

  .cart-panel {
    position: fixed;
    top: env(safe-area-inset-top);
    left: 0.6rem;
    right: 0.6rem;
    bottom: auto;
    z-index: 2147483639;
    border-radius: 18px;
    height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - 12px));
    max-height: min(
      calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px),
      calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px)
    );
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
    box-shadow: 0 14px 36px rgba(43, 32, 24, 0.32);
  }

  .cart-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .cartHeader {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 0;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eadfd3;
    background: var(--card);
  }

  .cartScroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 0.7rem;
  }

  .cartScroll .order-form {
    margin-top: 0.1rem;
  }

  .cartFooter {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 0;
    padding: 0.7rem 1rem calc(env(safe-area-inset-bottom) + 0.6rem);
    border-top: 1px solid #eadfd3;
    background: var(--card);
  }

  .cartFooter .cart-summary {
    margin-top: 0;
  }

  .cart-close-btn {
    display: inline-flex;
  }

  body.mobile-cart-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }
}

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {
  .mobile-cart-btn {
    display: none !important;
  }
}

.shawarma-options {
  margin-top: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.shawarma-group {
  display: grid;
  gap: 0.55rem;
  background: #fff8f1;
  border: 1px solid #f0dcc9;
  border-radius: 14px;
  padding: 0.55rem;
}

.shawarma-group-head {
  display: grid;
  gap: 0.15rem;
}

.option-label {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
  flex: 0 0 auto;
}

.option-hint {
  font-size: 0.79rem;
  color: var(--muted);
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid #dfcbb6;
  border-radius: 999px;
  background: #fff8f1;
  color: var(--text);
  font: inherit;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  text-align: right;
  gap: 0.5rem;
}

.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--focus);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--accent-2);
}

.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1;
  flex: 0 0 auto;
}

.custom-select-list {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  left: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid #dfcbb6;
  border-radius: 14px;
  background: #fff8f1;
  box-shadow: var(--shadow);
  z-index: 25;
  max-height: 200px;
  overflow: auto;
}

.custom-select-option {
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--text);
}

.custom-select-option:hover,
.custom-select-option.is-active {
  background: #f4e6d6;
}

.custom-select-option.is-selected {
  color: var(--accent);
  font-weight: 600;
}

.checks-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.select-arrow {
  display: none;
}

.shawarma-chip {
  display: inline-flex;
  position: relative;
  vertical-align: top;
}

.chip-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  border: 1px solid #d9c2aa;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.25;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  user-select: none;
}

.chip-input:hover + .chip-label {
  border-color: var(--accent-2);
}

.chip-input:checked + .chip-label {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(139, 90, 43, 0.24);
}

.chip-input:focus-visible + .chip-label {
  outline: none;
  box-shadow: var(--focus);
}

.cart-item-options {
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-item-note {
  color: var(--text);
  font-size: 0.88rem;
}

.line-edit-btn {
  margin-top: 0.35rem;
  border: 1px solid var(--accent-3);
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.line-edit-btn:hover {
  box-shadow: var(--shadow);
}

.support-chat-nav-btn {
  position: relative;
}

.support-chat-nav-badge {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8f1e1e;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.35rem;
}

.support-chat-nav-badge[hidden] {
  display: none;
}

.drink-submit-modal {
  z-index: 76;
}

.drink-submit-card {
  width: min(460px, 92vw);
  position: relative;
  border: 1px solid #e6d3be;
  background: #fffaf3;
}

.drink-submit-close {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid #dfcbb6;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
}

.drink-submit-close:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.drink-submit-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.drink-submit-actions {
  margin-top: 1rem;
}

.drink-submit-options {
  display: grid;
  gap: 0.5rem;
  max-height: min(46vh, 300px);
  overflow-y: auto;
  margin-top: 0.85rem;
  padding-left: 0.1rem;
}

.drink-submit-option {
  width: 100%;
  border: 1px solid #dfcbb6;
  border-radius: 12px;
  background: #fff3e5;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: right;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}

.drink-submit-option:hover {
  border-color: #cfb08f;
  background: #f8ecdf;
}

.drink-submit-option:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.cart-reminder-modal {
  z-index: 77;
}

.cart-reminder-card {
  width: min(420px, 92vw);
  border: 1px solid #e6d3be;
  background: #fffaf3;
}

.cart-reminder-card h3 {
  margin-bottom: 0.4rem;
  color: #5f4227;
  text-align: center;
}

.cart-reminder-actions {
  margin-top: 1rem;
  justify-content: center;
}

.btn[disabled],
.qty-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

body.support-chat-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
}

.support-chat-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 32, 24, 0.45);
  z-index: 2147483638;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.support-chat-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.support-chat-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(560px, calc(100vw - 1.2rem));
  max-height: min(88vh, 760px);
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid #e8d8c6;
  border-radius: 18px;
  box-shadow: 0 28px 56px rgba(43, 32, 24, 0.24);
  z-index: 2147483639;
  display: grid;
  grid-template-rows: auto 1fr;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.support-chat-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.support-chat-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eedfce;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.support-chat-head h3 {
  margin: 0;
  font-size: 1.06rem;
}

.support-chat-head p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.support-chat-close-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #dec8b1;
  background: #fff;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.support-chat-close-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.support-chat-intro {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  overflow-y: auto;
}

.support-chat-intro p {
  margin: 0 0 0.2rem;
  color: var(--muted);
}

.support-chat-intro label,
.support-chat-compose label {
  font-weight: 500;
  font-size: 0.92rem;
}

.support-chat-intro input,
.support-chat-compose textarea {
  width: 100%;
  border: 1px solid #dfcbb6;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.6rem 0.75rem;
}

.support-chat-thread {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.support-chat-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 1rem 0.55rem;
  border-bottom: 1px solid #f0e1d0;
}

.support-chat-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 24px;
  padding: 0 0.62rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e3f3ea;
  color: #1c7b45;
}

.support-chat-status-chip.closed {
  background: #f6e6dc;
  color: #8f1e1e;
}

.support-chat-meta-text {
  color: var(--muted);
  font-size: 0.84rem;
}

.support-chat-messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.8rem 0.2rem;
  background: linear-gradient(180deg, #fffdf9 0%, #fef8f1 100%);
}

.support-chat-empty {
  margin: 0;
  border: 1px dashed #dfcbb6;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  background: #fff;
}

.support-chat-message-row {
  display: flex;
}

.support-chat-message-row.customer {
  justify-content: flex-end;
}

.support-chat-message-row.admin {
  justify-content: flex-start;
}

.support-chat-bubble {
  max-width: min(85%, 420px);
  border-radius: 14px;
  border: 1px solid #e3d0bc;
  padding: 0.5rem 0.65rem;
  background: #fff;
  display: grid;
  gap: 0.2rem;
}

.support-chat-message-row.customer .support-chat-bubble {
  background: #f3e5d6;
  border-color: #dfc2a2;
}

.support-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-chat-bubble-meta {
  color: var(--muted);
  font-size: 0.76rem;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.support-chat-compose {
  border-top: 1px solid #efdfce;
  padding: 0.7rem 0.8rem 0.8rem;
  display: grid;
  gap: 0.45rem;
  background: #fffdf9;
}

.support-chat-compose textarea {
  min-height: 78px;
  max-height: 170px;
  resize: vertical;
}

.support-chat-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

#supportChatCharCount {
  color: var(--muted);
  font-size: 0.82rem;
}

#supportChatCharCount.is-limit {
  color: #8f1e1e;
  font-weight: 600;
}

.support-chat-error {
  margin: 0;
  min-height: 1.2rem;
  color: #9b2f2f;
  font-size: 0.86rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(43, 32, 24, 0.45);
  z-index: 70;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: min(520px, 92vw);
  max-height: 85vh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.modal-card-wide {
  width: min(620px, 94vw);
}

.modal-card h3 {
  margin: 0 0 0.8rem;
}

.modal-card textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 12px;
  border: 1px solid #dfcbb6;
  padding: 0.55rem 0.7rem;
  margin-top: 0.35rem;
  font: inherit;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.reset-modal-text {
  margin: 0;
  color: var(--muted);
}

.modal-options-grid {
  margin-bottom: 0.55rem;
}

.confirm-lines {
  display: grid;
  gap: 0.65rem;
}

.confirm-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px dashed #eadfd3;
  padding-bottom: 0.45rem;
}

.confirm-subline {
  font-size: 0.86rem;
  color: var(--muted);
}

.confirm-meta {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.8rem;
}

@media (max-width: 760px) {
  .support-chat-modal {
    width: calc(100vw - 0.7rem);
    max-height: min(90vh, calc(100dvh - 1rem));
    border-radius: 14px;
  }

  .support-chat-compose textarea {
    min-height: 88px;
  }

  .support-chat-compose-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .drink-submit-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .drink-submit-option {
    min-height: 44px;
    font-size: 0.96rem;
  }

  .drink-submit-card {
    width: min(460px, calc(100vw - 0.8rem));
    max-height: min(90vh, calc(100dvh - 1rem));
  }

  .cart-reminder-card {
    width: min(420px, calc(100vw - 0.8rem));
    max-height: min(90vh, calc(100dvh - 1rem));
  }

  .cart-reminder-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .checks-wrap {
    gap: 0.4rem;
  }

  .chip-label {
    min-height: 44px;
    font-size: 0.86rem;
  }
}
