.mm-composer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-bottom, 0px)) 0.75rem 0.75rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.mm-composer-overlay[hidden] {
  display: none !important;
}

.mm-composer-dialog {
  width: min(28rem, 100%);
  max-height: min(88vh, 40rem);
  overflow: auto;
  border-radius: 18px 18px 14px 14px;
  background: #fffaf5;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  color: #1f2937;
}

.mm-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem 0.35rem;
}

.mm-composer-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.mm-composer-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.mm-composer-hint {
  margin: 0;
  padding: 0 1rem 0.65rem;
  color: #64748b;
  font-size: 0.88rem;
}

.mm-composer-count {
  display: grid;
  gap: 0.3rem;
  margin: 0 1rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.mm-composer-count select {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  background: #fff;
}

.mm-composer-slots {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 0.75rem;
}

.mm-composer-slot {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.mm-composer-slot select {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  font: inherit;
  background: #fff;
}

.mm-composer-total {
  margin: 0 1rem 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 133, 0, 0.1);
  border: 1px solid rgba(255, 133, 0, 0.2);
  font-weight: 800;
  font-size: 0.92rem;
}

.mm-composer-foot {
  display: flex;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.mm-composer-cancel,
.mm-composer-confirm {
  flex: 1;
  min-height: 2.7rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mm-composer-cancel {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
  box-shadow: none !important;
}

.mm-composer-confirm {
  background: linear-gradient(180deg, #ff9a2b 0%, #ff8500 55%, #e67600 100%) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.mm-composer-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mm-composer-confirm:not(:disabled) {
  opacity: 1;
}

body.mm-composer-open .ccart-sticky-checkout {
  display: none !important;
}

@media (min-width: 720px) {
  .mm-composer-overlay {
    align-items: center;
  }

  .mm-composer-dialog {
    border-radius: 18px;
  }
}

.cmg-compose-btn {
  background: linear-gradient(180deg, #ff9a2b 0%, #ff8500 55%, #e67600 100%) !important;
}
