/* Overlay */
.custom-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.custom-modal-overlay.is-open {
  display: flex;
}

/* Box */
.custom-modal-box {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px 28px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Chiudi */
.custom-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

/* Contenuto */
.custom-modal-content h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.custom-modal-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #444;
}

/* Checkbox */
.custom-modal-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  font-size: 15px;
}

.custom-modal-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Bottone trigger */
.modal-trigger-btn {
  background: #2a7ae2;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 28px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-trigger-btn:hover {
  background: #1a5fbb;
}

/* Bottone conferma */
.modal-confirm-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #2a7ae2;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.modal-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal-confirm-btn:not(:disabled):hover {
  background: #1a5fbb;
}
.custom-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  margin: 0 !important;
  padding: 0 !important;
}