.menu-select-control {
  align-items: center;
  border-top: 1px solid rgba(116, 66, 27, 0.12);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
}

.menu-select-label {
  align-items: center;
  color: #74421b;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 0.5rem;
}

.menu-select-label input {
  height: 1.15rem;
  width: 1.15rem;
}

.menu-item-quantity {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.menu-item-quantity input {
  border: 1px solid #d9c6a7;
  border-radius: 8px;
  padding: 0.4rem;
  width: 4.5rem;
}

.menu-order-panel,
.contact-enquiry-section {
  background: #f7eedc;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(72, 42, 17, 0.09);
  margin-top: 3rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.menu-order-layout,
.contact-enquiry-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
}

.selected-menu-list {
  background: #fff;
  border-radius: 16px;
  list-style: none;
  margin: 1rem 0;
  min-height: 4rem;
  padding: 1rem;
}

.selected-menu-list li {
  border-bottom: 1px solid rgba(116, 66, 27, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.selected-menu-list li:last-child {
  border-bottom: 0;
}

.selected-menu-empty {
  color: #6b5c3d;
}

.whatsapp-form {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 1.75rem);
}

.whatsapp-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.whatsapp-field {
  margin-bottom: 1rem;
}

.whatsapp-field label {
  color: #3e2c1d;
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.whatsapp-field input,
.whatsapp-field select,
.whatsapp-field textarea {
  background: #fffdf8;
  border: 1px solid #d9c6a7;
  border-radius: 12px;
  color: #2f251c;
  font: inherit;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.whatsapp-field input:focus,
.whatsapp-field select:focus,
.whatsapp-field textarea:focus {
  border-color: #74421b;
  box-shadow: 0 0 0 3px rgba(116, 66, 27, 0.14);
  outline: 0;
}

.whatsapp-form-status {
  color: #8b2e1a;
  font-weight: 700;
  min-height: 1.5em;
}

.contact-enquiry-section {
  margin-left: auto;
  margin-right: auto;
  max-width: 1050px;
}

.contact-enquiry-copy p {
  color: #5f513b;
  line-height: 1.7;
}


.menu-selection-bar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(116, 66, 27, 0.18);
  border-radius: 18px;
  bottom: 1.25rem;
  box-shadow: 0 18px 45px rgba(35, 20, 8, 0.2);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  left: 50%;
  max-width: 920px;
  padding: 0.8rem 1rem;
  position: fixed;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 8rem));
  z-index: 999;
}

.menu-selection-bar[hidden] {
  display: none;
}

.menu-selection-bar strong,
.menu-selection-bar small {
  display: block;
}

.menu-selection-summary {
  min-width: 0;
}

.menu-selection-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.menu-selection-actions .btn {
  border: 1px solid #74421b;
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}

.menu-selection-actions .btn-outline {
  background: #fffdf8;
  color: #74421b;
}

.menu-selection-actions .menu-cart-browse,
.menu-selection-actions .menu-cart-browse:visited,
.menu-selection-actions .menu-cart-browse:hover,
.menu-selection-actions .menu-cart-browse:focus-visible {
  color: #fff;
}

.menu-selection-actions [hidden],
.menu-cart-drawer[hidden],
.menu-cart-items-panel[hidden],
.menu-cart-order-panel[hidden] {
  display: none;
}

.menu-cart-drawer {
  background: #fffdf8;
  border: 1px solid rgba(116, 66, 27, 0.18);
  border-radius: 22px;
  bottom: 7.25rem;
  box-shadow: 0 20px 60px rgba(35, 20, 8, 0.25);
  left: 50%;
  max-height: min(68vh, 680px);
  max-width: 920px;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  position: fixed;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 8rem));
  z-index: 998;
}

.menu-cart-drawer-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(116, 66, 27, 0.12);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.menu-cart-drawer-title {
  color: #2f1c0e;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 0.45rem 0 0;
}

.menu-cart-close {
  align-items: center;
  background: #f7eedc;
  border: 0;
  border-radius: 50%;
  color: #512e15;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.6rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  width: 2.5rem;
}

.menu-cart-drawer-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.menu-cart-drawer-item {
  align-items: center;
  background: #f7eedc;
  border-radius: 14px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.menu-cart-drawer-item strong,
.menu-cart-drawer-item small {
  display: block;
}

.menu-cart-drawer-item small {
  color: #6b5c3d;
  margin-top: 0.2rem;
}

.menu-cart-remove {
  background: transparent;
  border: 0;
  color: #8b2e1a;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
}

.menu-cart-order-intro {
  color: #5f513b;
  margin: 0 0 1rem;
}

.menu-cart-global-form {
  background: #f7eedc;
}

.menu-selection-bar strong {
  color: #512e15;
}

.menu-selection-bar small {
  color: #6b5c3d;
  margin-top: 0.15rem;
}

body.menu-cart-visible {
  padding-bottom: 5.5rem;
}

/* The inline form remains a no-JavaScript fallback; the global drawer replaces it when enhanced. */
body.menu-cart-visible .menu-order-panel,
body.menu-cart-visible .single-menu-order {
  display: none;
}

@media (max-width: 600px) {
  .menu-selection-bar {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 4.75rem;
    transform: none;
    width: auto;
  }

  .menu-selection-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .menu-cart-drawer {
    bottom: 10.5rem;
    left: 0.75rem;
    max-height: calc(100vh - 12rem);
    right: 4.75rem;
    transform: none;
    width: auto;
  }

  .menu-selection-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .menu-selection-bar .btn {
    padding: 0.65rem 0.5rem;
    text-align: center;
  }
}
@media (max-width: 820px) {
  .menu-order-layout,
  .contact-enquiry-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .whatsapp-form-grid {
    grid-template-columns: 1fr;
  }

  .menu-select-control {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-form .btn {
    text-align: center;
    width: 100%;
  }
}
