/* ################################################## */
/* Popup-Overlay */
/* ################################################## */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 600px;
    min-height: 500px;
    height: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;

    display: flex;
    /* Flexbox-Layout */
    flex-direction: column;
    /* Elemente untereinander anordnen */
    justify-content: space-between;
    /* Platz zwischen Inhalt und Buttons */
    max-height: 80%;
    overflow-y: auto;
    /* Scrollen bei Überlauf */
    text-align: center;
}

.popup-content {
    flex: 1;
    /* Nimmt den verfügbaren Platz ein */
    overflow-y: auto;
    margin-bottom: 20px;
    text-align: left;
}

.hidden {
    display: none !important;
}

.btn-confirm {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-exit {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-confirm:hover {
    background-color: #218838;
}

.btn-exit:hover {
    background-color: #c82333;
}


#unsubscribe-popup.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    text-align: center;
}

#unsubscribe-popup .popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#unsubscribe-popup .success-icon {
    font-size: 36px;
    color: #28a745;
}

#unsubscribe-popup h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #222;
}

#unsubscribe-popup p {
    margin: 0;
    font-size: 1rem;
    color: #444;
}

#unsubscribe-popup .btn-confirm {
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#unsubscribe-popup .btn-confirm:hover {
    background-color: #218838;
}


.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}