/* di base: invisibile */
.modal-overlay {
  display: none; /* <-- niente hidden, niente conflitti */
  position: fixed;
  inset: 0;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9999;
}

/* quando aperto */
.modal-overlay.is-open {
  display: grid; /* visibile */
}

/* Card */
.modal-card {
  width: min(92vw, 480px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 15px rgba(2, 6, 23, 0.12), 0 4px 6px rgba(2, 6, 23, 0.06);
  padding: 24px;
  z-index: 9999;
}

/* Titolo e testo */
.modal-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}
.modal-desc {
  margin: 0 0 18px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #334155;
}

/* Azioni */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.btn-cancel {
  background: transparent;
  border: none;
  font: inherit;
  color: #475569;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-cancel:hover {
  background: #f1f5f9;
}

@media only screen and (max-width: 600px) {
  .modal-card {
    width: 85vw;
    padding: 18px;
  }
  .modal-title {
    font-size: 18px;
  }
  .modal-desc {
    font-size: 14px;
  }
}
