/* =========================================================
   WG NOTICE MODAL – Responsive popup
   ========================================================= */

.wg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.wg-modal.is-open {
  display: block;
}

.wg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* Dialog */
.wg-modal__dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 32px);
  margin: 24px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  outline: none;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

/* Content */
.wg-modal__content {
  padding: 20px 18px 16px;
}

.wg-modal__close {
  position: sticky;
  top: 10px;
  margin-left: auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.06);
  cursor: pointer;

  font-size: 28px;
  line-height: 1; /* non influisce più */
}

.wg-modal__title {
  margin: 10px 0 8px;
  font-size: 28px;
}

.wg-modal__body {
  font-size: 15px;
  line-height: 1.45;
}

.wg-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.wg-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.wg-btn--primary {
  background: #111;
  color: #fff;
}

.wg-btn--ghost {
  background: rgba(0,0,0,.06);
  color: #111;
}

/* Checkbox */
.wg-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  opacity: .9;
}

/* Mobile */
@media (max-width: 480px) {
  .wg-modal__dialog {
    margin: 14px auto;
    width: calc(100% - 20px);
    border-radius: 12px;
  }

  .wg-modal__content {
    padding: 16px 14px 14px;
  }

  .wg-modal__title {
    font-size: 18px;
  }
}

/* Lock scroll */
.wg-lock-scroll {
  overflow: hidden !important;
}