/* Selbold Notify Plugin Styles */
#selbold-notify-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 3px solid #105aa7;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    width: 320px;
    z-index: 99999999;
    font-family: Arial, sans-serif;
}

/* Öffnen-Button */
#selbold-notify-btn {
    background: #000000;
    color: white;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 17px;
}

/* Eingabefeld */
#selbold-notify-email {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

/* Kategorie-Auswahl */
#selbold-notify-categories {
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    padding: 4px;
}

/* Button-Gruppe */
.selbold-notify-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.selbold-notify-buttons button {
    flex: 1 1 auto;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
    color: white;
    text-align: center;
}

#selbold-notify-submit {
    background: #105aa7;
}

#selbold-notify-optout {
    background: #e74c3c;
}

#selbold-notify-close {
    background: #ccc;
    color: black;
}

/* Textelemente */
.small-label {
    font-size: 12px;
    margin-bottom: 4px;
    display: block;
    color: #333;
}

#selbold-notify-popup h3 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #105aa7;
}

#selbold-notify-popup p {
    margin-top: 4px;
    line-height: 1.4;
    color: #105aa7;
}

#selbold-notify-popup label {
    display: block;
    margin: 10px 0 4px;
    color: #000;
    font-weight: bold;
}

#selbold-notify-popup input[type="radio"] {
    margin-right: 4px;
}

/* Mobile Anpassung */
@media (max-width: 480px) {
    .selbold-notify-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .selbold-notify-buttons button {
        width: 100%;
    }
}

/* === Compact Popup Overrides (nicht entfernen – bewusst am Ende) === */
#selbold-notify-popup {
  width: min(92vw, 420px);
  max-height: min(85dvh, 640px);   /* verhindert "ganze Bildschirmhöhe" */
  overflow-y: auto;
  padding: 16px;                   /* etwas kompakter als vorher */
  line-height: 1.25;
}

/* Überschriften/Absätze enger setzen */
#selbold-notify-popup h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.15;
  color: #105aa7;
}
#selbold-notify-popup p {
  margin: 0 0 10px;
  color: #105aa7;                  /* wie bisher, nur ohne Inline-Style */
}

/* Nur direkte <br> im Popup ausblenden (die als Abstandshalter dienten) */
#selbold-notify-popup > br {
  display: none !important;
}

/* Formgruppen */
.selbold-notify-group { margin-bottom: 10px; }
.selbold-notify-group label { display:block; margin: 6px 0 4px; font-weight: 600; }
#selbold-notify-email { width: 100%; }

/* Kategorien-Liste kompakt & einheitlich */
#selbold-notify-categories {
  width: 100%;
  min-height: 8em;                 /* z.B. ~5-6 Zeilen sichtbar */
}

/* Radio-Gruppe "Häufigkeit" im Flex-Layout */
.selbold-notify-frequency {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.selbold-notify-frequency label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

/* Buttons nebeneinander & rechts ausrichten */
.selbold-notify-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 8px;
}
.selbold-notify-buttons button { margin: 0; }

/* Mobile: Buttons notfalls umbrechen */
@media (max-width: 480px) {
  .selbold-notify-buttons { justify-content: space-between; }
}
