/* ── Push Notification Consent Modal ── */

#push-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  pointer-events: none;
}
#push-consent-overlay.push-consent-visible {
  background: rgba(0,0,0,0.25);
  pointer-events: auto;
}

.push-consent-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  text-align: center;
  font-family: 'Quicksand', sans-serif;
}
.push-consent-visible .push-consent-card {
  transform: translateY(0);
}

.push-consent-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.push-consent-close:hover { color: #333; }

.push-consent-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.push-consent-title {
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 8px;
}

.push-consent-text {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.5;
}

.push-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.push-consent-btn-yes {
  background: linear-gradient(135deg, #e8b4b8, #d4a0a0);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.push-consent-btn-yes:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(232,180,184,0.4);
  color: #fff;
}

.push-consent-btn-no {
  background: transparent;
  color: #999;
  border: none;
  padding: 8px;
  font-size: 13px;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
}
.push-consent-btn-no:hover {
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  #push-consent-overlay { padding: 12px; }
  .push-consent-card { padding: 24px 20px 18px; border-radius: 16px; }
  .push-consent-icon { font-size: 36px; }
  .push-consent-title { font-size: 18px; }
}

/* ── Notification Preferences (area_personale) ── */
.notif-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0e8ef;
}
.notif-pref-row:last-child { border-bottom: none; }
.notif-pref-row .form-check-input:checked {
  background-color: #e8b4b8;
  border-color: #e8b4b8;
}
