/* Inline hosts on cards are hidden; options open in modal */
.billing-menu-item-footer .menu-order-options-host,
.to-menu-item-card .menu-order-options-host,
.menu-item-row .menu-order-options-host {
  display: none !important;
}

.mo-modal-body-host.menu-order-options-host {
  display: block !important;
  margin: 0;
}

.menu-order-options-host {
  margin: 0.35rem 0 0.5rem;
}

.menu-order-options-host .mo-group {
  margin-bottom: 0.35rem;
}

.menu-order-options-host .mo-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

.menu-order-options-host .mo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.menu-order-options-host .mo-chip {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  cursor: pointer;
  line-height: 1.3;
}

.menu-order-options-host .mo-chip.is-selected {
  border-color: #0e7e4f;
  background: #0e7e4f;
  color: #fff;
}

.menu-order-options-error {
  font-size: 0.75rem;
  color: #dc3545;
  margin: 0.25rem 0;
}

.cart-line-customizations {
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

.cart-line-customizations span {
  display: inline-block;
  margin-right: 0.5rem;
}

/* Options picker modal (POS, take order, legacy menu) */
.mo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

body.mo-modal-open {
  overflow: hidden;
}

.mo-modal-panel {
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 640px);
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.mo-modal-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #d1d5db;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.mo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.mo-modal-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #1f2428;
}

.mo-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.mo-modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafaf8;
  color: #6b7280;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.mo-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.mo-modal-body-host .mo-group {
  margin-bottom: 14px;
}

.mo-modal-body-host .mo-label {
  font-size: 11px;
}

.mo-modal-body-host .mo-chip {
  font-size: 13px;
  padding: 8px 14px;
}

.mo-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid #e5e7eb;
}

.mo-modal-btn {
  flex: 1;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.mo-modal-btn.mo-modal-confirm {
  background: var(--primary, #f5c21a);
  border-color: var(--primary, #f5c21a);
  color: var(--primary-text, #1f2428);
}

@media (min-width: 640px) {
  .mo-modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .mo-modal-panel {
    border-radius: 16px;
    max-height: 85vh;
  }

  .mo-modal-handle {
    display: none;
  }
}
