/* MENU_MODAL_COMPACT v1 — scoped to options modal only */
.gsts-compact-menu-modal .modal-content {
  border-radius: 0.75rem;
}
.gsts-compact-menu-modal .modal-header {
  padding: 0.75rem 0.75rem 0.25rem;
}
.gsts-compact-menu-modal .modal-body {
  padding: 0.5rem 0.75rem 0.75rem;
}
.gsts-compact-menu-modal .modal-footer {
  padding: 0.5rem 0.75rem 0.75rem;
  gap: 0.5rem;
}

.gsts-compact-menu-modal .modal-title {
  font-size: 1.0rem;
  line-height: 1.2;
  margin: 0;
}
.gsts-compact-menu-modal h5 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.gsts-compact-menu-modal .menu-option {
  margin-bottom: 0.6rem !important;
}
.gsts-compact-menu-modal .option-details {
  margin-bottom: 0.35rem;
}

.gsts-compact-menu-modal .form-check {
  margin-bottom: 0.25rem;
}
.gsts-compact-menu-modal .form-check-label {
  font-size: 0.9rem;
  line-height: 1.2;
}
.gsts-compact-menu-modal .form-check-input {
  margin-top: 0.2rem;
}

.gsts-compact-menu-modal .btn {
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}
.gsts-compact-menu-modal .btn-close {
  transform: scale(0.9);
}

/* Quantity controls (best-effort; do not break if selectors differ) */
.gsts-compact-menu-modal [data-control="quantity"] .btn,
.gsts-compact-menu-modal .quantity-selector .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}
.gsts-compact-menu-modal [data-control="quantity"] input,
.gsts-compact-menu-modal .quantity-selector input {
  height: 2rem;
  padding: 0.25rem 0.5rem;
}

/* --- Compact image + tighter layout (v2) --- */

/* Reduce overall modal width a bit on small screens */
@media (max-width: 576px) {
  .gsts-compact-menu-modal.modal-dialog {
    margin: 0.5rem auto;
    max-width: 420px;
  }
}

/* Make the top image smaller but show the full photo (no crop) */
.gsts-compact-menu-modal .modal-top {
  background: #f3f4f6; /* subtle neutral background */
}

.gsts-compact-menu-modal .modal-top img {
  width: 100%;
  height: 180px;
  object-fit: contain;   /* show full image */
  object-position: center;
  display: block;
  background: transparent;
}

@media (max-width: 576px) {
  .gsts-compact-menu-modal .modal-top img { height: 160px; }
}

/* Tighten description text */
.gsts-compact-menu-modal .modal-body p.text-muted {
  font-size: 0.9rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

/* Optional: clamp description to 2 lines to avoid tall modals */
.gsts-compact-menu-modal .modal-body p.text-muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tighten textarea (comment) */
.gsts-compact-menu-modal .menu-comment textarea.form-control {
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

/* Tighter +/- buttons (override inline width/height safely, scoped) */
.gsts-compact-menu-modal .input-group.input-group-lg > .btn.rounded-circle {
  width: 36px !important;
  height: 36px !important;
}

.gsts-compact-menu-modal .input-group.input-group-lg > input.form-control {
  max-width: 44px !important;
  font-size: 0.95rem;
}
