/* ============================================================================
   Site Logic — theme-independent UI stylesheet
   ----------------------------------------------------------------------------
   Loaded by the Site Logic mu-plugin. Styles ONLY markup produced by the
   plugin's logic (menu shortcode, order widget, reservation form, popups,
   status/hours widgets, features, cookie banner).

   COLOR MODEL  — every brand color reads an Astra global token:
       --ast-global-color-0  accent (was gold #c9a96e)
       --ast-global-color-2  dark surface (was grey #2d2d2d)
       --ast-global-color-3  mid-dark / borders (was grey #3a3a3a / #4a4a4a)
       --ast-global-color-4  light surface / text on accent (was white)
       --ast-global-color-5  muted text (was #e0e0e0)
   Change the palette in the theme (Appearance > Customizer > Global Colors)
   and ALL of this UI re-skins automatically.

   SEMANTIC VARS (injected by PHP from the theme's Customizer colors):
       --sl-accent   link/accent color  (theme-color,        fallback token 0)
       --sl-heading  heading color      (heading-base-color, fallback token 2)
       --sl-text     body text color    (text-color,         fallback token 3)

   ALL borders peg directly to --ast-global-color-7 (Astra's Borders slot)
   with no intermediate var, so the theme's Borders color controls every
   border in the plugin (mix ratios preserved where subtlety is needed).

   TYPOGRAPHY    — no font-family declarations: everything inherits the
   theme's (Astra's) body/heading fonts. Component font-SIZES are kept
   because they are layout, not typography.

   SEMANTIC COLORS (functional, not brand — intentionally hardcoded):
       #25D366 / #1da851  WhatsApp brand green (same on every install)
       #4CAF50 / #F44336  open / closed status indicators
       #e06b6b            remove-item action red
       rgba(0,0,0,x)      neutral shadows/overlays
   ============================================================================ */

/* --- Menu category jump navigation --------------------------------------- */
.menu-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  position: sticky;
  top: 0;
  background: var(--ast-global-color-5);
  padding: 15px 10px;
  z-index: 100;
  border-radius: 35px;
  border-bottom: 1px solid var(--ast-global-color-7);
}

.cat-btn {
  background: transparent;
  border: 2px solid var(--ast-global-color-7);
  color: var(--sl-text);
  padding: 10px 20px;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.menu-categories h6 {
  margin: 0;
  display: flex;
}
.cat-btn:hover {
  border-color: var(--ast-global-color-7);
  color: var(--ast-global-color-0);
}

/* --- Category sections ---------------------------------------------------- */
.category-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.category-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 6px;
  max-height: 80px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ast-global-color-7);
}

.category-title {
  color: var(--sl-accent);
  flex-wrap: wrap;
}

.subcategory-title {
  font-style: italic;
  color: var(--sl-accent);
  margin: 20px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--ast-global-color-7) 35%, transparent);
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Category description — shown under the category name when a description exists */
.category-description {
  font-size: 15px;
  color: var(--sl-text-muted);
  margin: 0;
  font-weight: 600;
}
.category-description p {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* --- Menu list (two-column grid) ------------------------------------------ */
.menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  border-bottom: 1px solid var(--ast-global-color-7);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 5px;
}

.menu-item-name {
  color: var(--sl-heading);
  font-weight: 700;
  transition: color 0.3s ease;
}
.menu-item:hover .menu-item-name {
  color: color-mix(in srgb, var(--ast-global-color-0) 70%, var(--ast-global-color-4));
}

.menu-item-price {
  margin: 0;
  color: var(--sl-heading);
  font-weight: 700;
  white-space: nowrap;
}

.menu-item-desc {
  color: var(--ast-global-color-4);
  margin: 0 0 10px;
  line-height: 1.5;
}

.menu-item-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.menu-item-photo-trigger {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* --- Dietary icons -------------------------------------------------------- */
.diet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: var(--ast-global-color-3);
  color: var(--ast-global-color-5);
  position: relative;
}

.diet-icon.gluten-free-icon {
  background: var(--ast-global-color-3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.diet-icon.gluten-free-icon img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
}

/* Force Font Awesome 6 rendering (not Elementor's bundled FA 4.7).
   Functional icon font - intentionally NOT inherited. */
.site-menu-wrapper .diet-icon i,
.site-menu-wrapper .menu-item-icons i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block;
  line-height: 1;
}

/* --- Quantity controls ---------------------------------------------------- */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
}

.quantity-control .qty-btn {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--ast-global-color-7);
  background: transparent;
  color: var(--ast-global-color-4);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  background: var(--ast-global-color-0);
  color: var(--ast-global-color-4);
}

.quantity-control .qty-input {
  box-sizing: border-box;
  padding: 0 4px;
  width: 4ch; /* fallback for browsers without field-sizing; appearance:none below removed the hidden native spin-button reservation that clipped even one digit */
  height: 36px;
  flex: 0 0 auto;
  text-align: center;
  border: 2px solid var(--ast-global-color-7);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ast-global-color-4);
  background: transparent;
  appearance: none; /* readonly number input still reserves inner space for the invisible native spin-button box — this clipped the digit against the right edge */
  -webkit-appearance: none;
}
/* Hide native spinner arrows (input is readonly anyway — user sees none) */
.quantity-control .qty-input::-webkit-inner-spin-button,
.quantity-control .qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  margin: 0;
}
/* Adaptive width: box grows and shrinks with the digit count (Chromium 123+, Safari 26+) */
@supports (field-sizing: content) {
  .quantity-control .qty-input {
    width: auto;
    min-width: 36px; /* matches the +/- buttons */
    field-sizing: content;
  }
}
.qty-input:focus {
  outline: none;
  border-color: var(--ast-global-color-7);
}

/* --- Size variants (e.g. Pizzas: 26cm. / 29cm. / 34cm.) -------------------- */
.size-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.size-row .quantity-control {
  flex: 0 0 auto;
}

.size-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ast-global-color-2);
}

/* Items with sauce/extras show only the wide + button */
.menu-item[data-requires-sauce="1"] .qty-minus,
.menu-item[data-requires-sauce="1"] .qty-input,
.menu-item[data-allows-extras="1"] .qty-minus,
.menu-item[data-allows-extras="1"] .qty-input {
    display: none;
}
.menu-item[data-requires-sauce="1"] .quantity-control,
.menu-item[data-allows-extras="1"] .quantity-control {
    gap: 0;
}
.menu-item[data-requires-sauce="1"] .quantity-control::before,
.menu-item[data-allows-extras="1"] .quantity-control::before {
    content: '';
    display: inline-block;
    width: calc(36px + 12px + 7px);
}
.menu-item[data-requires-sauce="1"] .qty-plus,
.menu-item[data-allows-extras="1"] .qty-plus {
    width: 36px;
    height: 36px;
}

/* --- Floating order widget ------------------------------------------------ */
.floating-order {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: none;
  width: 320px;
  max-width: calc(100vw - 32px);
}

.floating-order.visible {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.order-box {
  background: var(--ast-global-color-5);
  color: var(--sl-text);
  border: 1px solid var(--ast-global-color-7);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--ast-global-color-0) 10%, transparent);
  border-bottom: 1px solid var(--ast-global-color-7);
}

.order-heading {
  flex: 1;
  text-align: center;
  color: var(--ast-global-color-0);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.order-clear {
  background: transparent;
  border: 1px solid var(--ast-global-color-7);
  color: var(--ast-global-color-0);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.order-clear:hover { background: color-mix(in srgb, var(--ast-global-color-0) 18%, transparent); }

.order-toggle {
  background: transparent;
  border: none;
  color: var(--ast-global-color-0);
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.25s ease;
}
.order-toggle:hover { background: color-mix(in srgb, var(--ast-global-color-0) 18%, transparent); }

/* --- Order mode selector (Recogida / Entrega) --- */
.order-mode {
  padding: 10px 10px 0;
}

.order-mode-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ast-global-color-7) 25%, transparent);
  overflow: hidden;
}

/* Sliding white pill behind the active option */
.order-mode-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--ast-global-color-4);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
  z-index: 0;
}

.order-mode[data-mode="entrega"] .order-mode-slider {
  transform: translateX(100%);
}

.order-mode-option {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--sl-text);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s ease;
}

.order-mode-option.active {
  color: var(--ast-global-color-0);
  font-weight: 700;
}

/* Neutralize Astra's global button :hover/:focus red fill on the segmented control
   (a lingering red block + red-on-red text after clicking an option) */
.order-mode-option:hover,
.order-mode-option:focus,
.order-mode-option:active {
  background: transparent;
  border-color: transparent;
  color: var(--sl-text);
  outline: 2px solid var(--ast-global-color-0);
  outline-offset: 1px;
}

.order-mode-option.active:hover,
.order-mode-option.active:focus,
.order-mode-option.active:active {
  background: transparent;
  border-color: transparent;
  color: var(--ast-global-color-0);
}

/* Keep keyboard accessibility with a clean focus ring (no red fill) */
.order-mode-option:focus-visible {
  outline: 2px solid var(--ast-global-color-0);
  outline-offset: 1px;
}

.order-mode-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-mode-icon {
  font-size: 0.8rem;
}

.order-mode-label {
  font-size: 0.78rem;
  letter-spacing: 0.2px;
}

.order-mode-time {
  font-size: 0.66rem;
  opacity: 0.75;
  font-weight: 400;
  white-space: nowrap;
}

/* --- Delivery address box (only when Entrega is active) --- */
.order-address {
  padding: 10px 0 2px;
}

.order-address input {
  width: 100%;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--ast-global-color-7) 20%, transparent);
  border: 1px solid var(--ast-global-color-7);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--sl-text);
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.2s ease;
}

.order-address input::placeholder {
  color: color-mix(in srgb, var(--sl-text) 65%, transparent);
}

.order-address input:focus {
  border-color: var(--ast-global-color-0);
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  max-height: 108px;
  overflow-y: auto;
}

.order-list::-webkit-scrollbar { width: 8px; }
.order-list::-webkit-scrollbar-thumb { background: var(--ast-global-color-0); border-radius: 8px; }
.order-list::-webkit-scrollbar-track { background: var(--ast-global-color-7); }

.order-list.collapsed { display: none; }
.order-list.expanded { max-height: 288px; }

.order-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--ast-global-color-7);
  font-size: 0.82rem;
  line-height: 1.2;
}
.order-row:last-child { border-bottom: none; }

.cat-tag { font-size: 10px; margin-right: 0; opacity: 0.75; white-space: nowrap; }
.order-row-text { flex: 1; min-width: 0; }
.order-row-qty { color: var(--ast-global-color-0); font-weight: 600; white-space: nowrap; }
.order-row-price { color: var(--sl-text); white-space: nowrap; font-size: 0.78rem; }

.order-row-extra {
    padding-left: 20px;
    opacity: 0.8;
    font-size: 0.9em;
}
.order-row-extra .order-row-qty {
    color: var(--ast-global-color-0);
}

/* Remove-item action red — semantic, intentionally hardcoded */
.order-remove,
.order-remove-complex {
  background: transparent;
  border: none;
  color: #e06b6b;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.order-remove:hover,
.order-remove-complex:hover { background: rgba(224,107,107,0.18); }

.order-empty {
  padding: 10px 4px;
  font-size: 0.8rem;
  color: var(--sl-text);
  text-align: center;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid color-mix(in srgb, var(--ast-global-color-7) 20%, transparent);
  background: color-mix(in srgb, var(--ast-global-color-0) 8%, transparent);
}

.order-total {
  font-size: 0.82rem;
  color: var(--sl-text);
}
.order-total #orderTotal {
  color: var(--ast-global-color-0);
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- WhatsApp send button (WhatsApp brand green — semantic) --------------- */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: var(--ast-global-color-4);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.btn-whatsapp i { font-size: 1rem; }
.btn-whatsapp:hover { background: #1da851; }

/* --- Cookie banner -------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ast-global-color-2);
  color: var(--ast-global-color-4);
  padding: 20px;
  z-index: 1000;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  border-top: 1px solid var(--ast-global-color-7);
}

.cookie-banner.show {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--ast-global-color-0);
  text-decoration: underline;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cookie-btn.accept {
  background: var(--ast-global-color-0);
  color: var(--ast-global-color-2);
}

.cookie-btn.reject {
  background: transparent;
  border: 1px solid var(--ast-global-color-7);
  color: var(--ast-global-color-4);
}

.cookie-btn.settings {
  background: transparent;
  color: var(--ast-global-color-0);
  text-decoration: underline;
}

/* --- Features section ([site_features]) ----------------------------------- */
.site-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 40px;
}
.site-feature {
  background: var(--ast-global-color-2);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}
.site-feature-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.site-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.site-feature:hover .site-feature-img img {
  transform: scale(1.06);
}
.site-feature-title {
  color: var(--ast-global-color-0);
  font-size: 1.7rem;
  text-align: center;
  margin: 26px 0 12px;
}
.site-feature-text {
  color: var(--ast-global-color-5);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
  padding: 0 22px 30px;
  margin: 0;
}
@media (max-width: 768px) {
  .site-features { grid-template-columns: 1fr; padding: 50px 22px; }
}

/* --- Hours widgets ([site_today_hours], [site_full_hours], [site_status]) - */
.hours-table,
.hours-table th,
.hours-table td,
.hours-table tr {
    border: 0;
}
.hours-table td {
    padding: 2px 0;
    font-size: 1rem;
}
.hours-table td:last-child {
    color: var(--ast-global-color-0);
    font-weight: 500;
}
.hours-table tr:last-child td {
    border-bottom: none;
}

.site-today-hours {
    font-size: 1rem;
    color: var(--sl-text);
    font-weight: 400;
}

.site-status {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}
.site-status.status-open {
    color: #4CAF50;   /* semantic: open */
}
.site-status.status-closed {
    color: #F44336;   /* semantic: closed */
}

/* ============================================================================
   RESERVATION — floating widget + inline form
   Same visual language as the order widget (shares .order-* classes)
   ============================================================================ */
.floating-reserva {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: none;
  width: 340px;
  max-width: calc(100vw - 32px);
}

.floating-reserva.visible {
  display: block;
  animation: slideUp 0.3s ease;
}

.reserva-box-wide {
  width: 340px;
  max-width: calc(100vw - 32px);
}

.reserva-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
}
.reserva-row:last-child { border-bottom: none; }

.reserva-row label {
  font-size: 0.78rem;
  color: var(--ast-global-color-0);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.reserva-input {
  background: color-mix(in srgb, var(--ast-global-color-4) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 25%, transparent);
  border-radius: 6px;
  color: var(--ast-global-color-4);
  padding: 8px 10px;
  font-size: 0.85rem;
  width: 100%;
  transition: border-color 0.2s;
}
.reserva-input:focus {
  outline: none;
  border-color: var(--ast-global-color-7);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ast-global-color-0) 15%, transparent);
}
.reserva-input::placeholder {
  color: var(--ast-global-color-5);
  opacity: 0.5;
}

/* Hide number input spinners */
.reserva-input[type="number"]::-webkit-outer-spin-button,
.reserva-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.reserva-input[type="number"] {
  -moz-appearance: textfield;
}

/* Minimized state */
.floating-reserva.minimized .reserva-box-wide {
  display: none;
}
.floating-reserva.minimized {
  max-height: 60px;
  overflow: hidden;
  opacity: 0.7;
  height: 50px;
}
.floating-reserva.minimized .order-header {
  cursor: pointer;
}

/* Datepicker / timepicker containers inside the floating widget */
.reserva-datepicker,
.reserva-timepicker {
  background: color-mix(in srgb, var(--ast-global-color-4) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 25%, transparent);
  border-radius: 6px;
  color: var(--ast-global-color-4);
  padding: 8px 10px;
  font-size: 0.85rem;
  width: 100%;
}

.ui-datepicker-trigger {
  display: none;
}

/* --- Inline reservation form ([site_reserva_form]) ------------------------- */
.reserva-inline-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.reserva-inline-form .order-box {
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  background: var(--ast-global-color-2);
  color: var(--ast-global-color-4);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 35%, transparent);
}

.reserva-inline-form .order-header {
  cursor: default;
}

.reserva-inline-form .order-list {
  max-height: none;
  padding: 10px 12px;
}

.reserva-inline-form .reserva-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ast-global-color-7) 6%, transparent);
}
.reserva-inline-form .reserva-row:last-child {
  border-bottom: none;
}

.reserva-inline-form .reserva-row label {
  font-size: 0.78rem;
  color: var(--ast-global-color-0);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.reserva-inline-form .reserva-input {
  background: color-mix(in srgb, var(--ast-global-color-4) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 25%, transparent);
  border-radius: 6px;
  color: var(--ast-global-color-4);
  padding: 10px 12px;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reserva-inline-form .reserva-input:focus {
  outline: none;
  border-color: var(--ast-global-color-7);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ast-global-color-0) 18%, transparent);
}
.reserva-inline-form .reserva-input::placeholder {
  color: var(--ast-global-color-5);
  opacity: 0.5;
}

.reserva-inline-form input[type="number"]::-webkit-outer-spin-button,
.reserva-inline-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.reserva-inline-form input[type="number"] {
  -moz-appearance: textfield;
}

.reserva-inline-form .order-footer {
  justify-content: flex-end;
  padding: 10px 12px;
}

.reserva-inline-form .btn-whatsapp {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Inline datepicker — dark themed */
.reserva-inline-form .ui-datepicker {
  background: var(--ast-global-color-2);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 35%, transparent);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 8px;
}
.reserva-inline-form .ui-datepicker-header {
  background: color-mix(in srgb, var(--ast-global-color-0) 10%, transparent);
  border: none;
  color: var(--ast-global-color-0);
  border-radius: 6px;
}
.reserva-inline-form .ui-datepicker-title {
  color: var(--ast-global-color-0);
}
.reserva-inline-form .ui-datepicker-prev,
.reserva-inline-form .ui-datepicker-next {
  color: var(--ast-global-color-0);
}
.reserva-inline-form .ui-datepicker-calendar th {
  color: var(--ast-global-color-0);
  font-weight: 600;
}
.reserva-inline-form .ui-datepicker-calendar td a {
  color: var(--ast-global-color-4);
  background: transparent;
  border-radius: 4px;
}
.reserva-inline-form .ui-datepicker-calendar td a:hover {
  background: color-mix(in srgb, var(--ast-global-color-0) 20%, transparent);
  color: var(--ast-global-color-0);
}
.reserva-inline-form .ui-datepicker-calendar td.ui-datepicker-today a {
  background: var(--ast-global-color-0);
  color: var(--ast-global-color-2);
  font-weight: 600;
}
.reserva-inline-form .ui-datepicker-calendar td.ui-datepicker-current-day a {
  background: color-mix(in srgb, var(--ast-global-color-0) 35%, transparent);
  color: var(--ast-global-color-0);
}
.reserva-inline-form .ui-datepicker-calendar td.ui-datepicker-unselectable span {
  color: var(--ast-global-color-5);
  opacity: 0.4;
}

/* --- Time picker ----------------------------------------------------------- */
.reserva-time-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.reserva-time-input {
  flex: 1;
  text-align: center;
}

.reserva-time-btn {
  flex: 0 0 auto;
  width: 3.75em;
  text-align: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--ast-global-color-4) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 25%, transparent);
  border-radius: 6px;
  color: var(--ast-global-color-4);
  padding: 10px 4px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.reserva-inline-form .reserva-time-btn {
  flex: 0 0 auto;
  width: 3.75em;
}
.reserva-time-btn:focus {
  outline: none;
  border-color: var(--ast-global-color-7);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ast-global-color-0) 18%, transparent);
}
.reserva-time-btn:not([data-value=""]) {
  border-color: var(--ast-global-color-7);
  color: var(--ast-global-color-4);
}
.reserva-time-btn[data-value=""] {
  color: var(--ast-global-color-5);
  opacity: 0.5;
}

/* Time dropdown panel */
.reserva-time-dropdown {
  position: absolute;
  z-index: 99999;
  background: var(--ast-global-color-2);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 35%, transparent);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.reserva-time-dropdown-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.reserva-time-dropdown-item {
  background: color-mix(in srgb, var(--ast-global-color-4) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--ast-global-color-7) 15%, transparent);
  border-radius: 6px;
  color: var(--ast-global-color-4);
  padding: 8px 4px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}
.reserva-time-dropdown-item:hover {
  background: color-mix(in srgb, var(--ast-global-color-0) 20%, transparent);
  color: var(--ast-global-color-0);
  border-color: var(--ast-global-color-7);
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 768px) {
  .menu-list {
    grid-template-columns: 1fr;
  }
  .floating-order {
    bottom: 20px;
    right: 20px;
    left: 20px;
  }
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .menu-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px 10px;
    border-radius: 25px;
  }
  .cat-btn {
    white-space: nowrap;
    padding: 3px 7px;
    border-radius: 25px;
  }
}
