.mpm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.mpm-overlay.is-open {
  display: flex;
}

.mpm-modal {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.mpm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.mpm-modal__title {
  font-size: 20px;
  font-weight: 900;
}

.mpm-modal__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.mpm-modal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mpm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mpm-label {
  font-weight: 700;
  font-size: 14px;
}

.mpm-select,
.mpm-input,
.mpm-textarea {
  width: 100%;
  border: 1px solid #cbd5f5;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
}

.mpm-textarea {
  min-height: 90px;
  resize: vertical;
}

.mpm-price {
  font-size: 14px;
  color: #2563eb;
  font-weight: 700;
}

.mpm-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .mpm-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mpm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.mpm-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  font-size: 15px;
}

.mpm-btn--primary {
  background: #2563eb;
  color: #fff;
}

.mpm-btn--primary:hover {
  background: #1d4ed8;
}

.mpm-btn--ghost {
  background: transparent;
  color: #475569;
}
