.guest-body { padding-bottom: 90px; background: #f9fafb; }

.guest-header {
  background: #1f2937; color: white; padding: 16px 20px; text-align: center;
}
.guest-header h1 { margin: 0; font-size: 20px; justify-content: center; }
.guest-table-label { color: #a5b4fc; margin-top: 4px; font-size: 14px; }

.guest-layout { padding: 14px; }
.guest-menu-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.guest-menu-grid .guest-card-photo { height: 130px; }
.guest-menu-grid .item-name { font-weight: bold; margin-top: 2px; }
.guest-menu-grid .item-description {
  font-size: 12px; color: #6b7280; margin: 4px 0; line-height: 1.35;
}

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #2563eb; color: white;
  padding: 14px 20px; display: flex; justify-content: space-between; align-items: center;
}
.cart-bar button { background: white; color: #2563eb; border: none; padding: 10px 16px; font-weight: bold; }

.cart-box {
  background: white; border-radius: 12px; padding: 24px; width: 90%; max-width: 400px;
  max-height: 80vh; overflow-y: auto;
}
.cart-box h2 { margin-top: 0; }
.cart-box ul { list-style: none; padding: 0; }
.cart-box li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; }
.cart-box li button { background: none; border: none; color: #dc2626; font-size: 18px; }
.cart-total { font-weight: bold; font-size: 18px; margin: 14px 0; }
.cart-box input { width: 100%; margin-bottom: 10px; }
.cart-box button:not(li button) { width: 100%; margin-top: 6px; padding: 12px; }
#submit-order-btn { background: #2563eb; color: white; border: none; }
#request-bill-btn { background: #059669; color: white; border: none; }

#bill-requested-banner {
  position: fixed; top: 0; left: 0; right: 0; background: #059669; color: white;
  text-align: center; padding: 8px; font-size: 14px;
}
#bill-requested-banner.hidden { display: none; }

.qty-controls { display: flex; align-items: center; gap: 6px; margin-top: 6px; justify-content: center; }
.qty-controls button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d1d5db; background: white;
}

.suggestion-strip {
  position: fixed; bottom: 66px; left: 0; right: 0; background: white;
  border-top: 1px solid #e5e7eb; padding: 10px 14px; box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
}
.suggestion-label { font-size: 12px; font-weight: bold; color: #6b7280; margin-bottom: 6px; }
#suggestion-items { display: flex; gap: 8px; overflow-x: auto; }
.suggestion-card {
  flex: 0 0 auto; width: 90px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 6px; text-align: center; font-size: 12px;
}
.suggestion-card img { width: 100%; height: 50px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.suggestion-card .price { color: #6b7280; }

.guest-header { position: relative; }
.guest-lang-btn {
  position: absolute; top: 14px; right: 14px; font-size: 12px;
}
[dir="rtl"] .guest-lang-btn { right: auto; left: 14px; }
[dir="rtl"] .guest-menu-grid { direction: rtl; }
[dir="rtl"] .cart-box { direction: rtl; }
[dir="rtl"] .cart-box li { flex-direction: row-reverse; }

.track-layout { padding: 24px 16px; text-align: center; }
.track-status {
  background: #f9fafb; border-radius: 10px; padding: 16px; margin: 16px 0;
  font-size: 14px; color: #374151; min-height: 20px;
}
.track-layout button { width: 100%; padding: 14px; margin-top: 8px; font-size: 16px; }
#start-sharing-btn { background: #059669; color: white; border: none; }

#member-qr-img { width: 180px; height: 180px; margin: 16px 0; border: 1px solid #e5e7eb; border-radius: 10px; }
#signup-success { text-align: center; }


/* Premium document-style digital menu, based on the supplied QR menu card. */
.menu-document-body { background: #f3efe7; color: #202020; padding-bottom: 32px; }
.menu-document-header { position: relative; text-align: center; padding: 34px 20px 24px; background: #fbfaf6; border-bottom: 1px solid #ded8cc; }
.menu-welcome { font-family: "Cormorant Garamond", serif; font-size: 18px; letter-spacing: .22em; }
.menu-document-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; font-size: clamp(30px, 7vw, 56px); font-weight: 500; letter-spacing: -.04em; }
.menu-document-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; }
.menu-document-subtitle { margin-top: 4px; font-family: "Cormorant Garamond", serif; font-size: 18px; letter-spacing: .12em; color: #746f66; }
.menu-document-shell { width: min(1100px, calc(100% - 24px)); margin: 18px auto 0; }
.menu-document-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 13px; padding: 10px 2px; color: #6d675e; }
.menu-document-toolbar a { color: #111; font-weight: 700; text-decoration: none; border-bottom: 1px solid #111; }
.menu-document-frame-wrap { height: min(78vh, 980px); background: white; border: 1px solid #d8d2c7; box-shadow: 0 16px 50px rgba(44,36,25,.08); overflow: hidden; }
.menu-document-frame { width: 100%; height: 100%; border: 0; background: white; }
.menu-document-note { text-align: center; padding: 18px 10px 0; color: #777065; font-size: 13px; }
@media (max-width: 640px) { .menu-document-header { padding-top: 26px; } .menu-document-logo { width: 42px; height: 42px; } .menu-document-toolbar { align-items: flex-start; flex-direction: column; } .menu-document-frame-wrap { height: 72vh; } }


/* Guest identity gate */
.guest-profile-box{max-width:420px;width:calc(100vw - 28px);text-align:left}
.guest-profile-box input{width:100%;margin:6px 0 10px}
.guest-profile-box button{width:100%;margin-top:4px}
.guest-welcome-banner{margin:10px auto 0;max-width:1180px;padding:10px 14px;background:#fff7d6;border:1px solid #d4a91e;border-radius:10px;font-weight:700}
[dir="rtl"] .guest-profile-box{text-align:right}
