/* File: assets/popup.css */

.cps-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
}

.cps-popup-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* passt sich dem Inhalt an */
    min-height: auto;
    max-width: 500px;
    width: 100%;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* wenn ein Bild da ist */
.cps-popup-modal.has-bg {
    min-height: 600px;
}

.cps-popup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    margin: 20px 0;
}

/* nur bei aktiviertem Overlay */
.cps-popup-body.has-overlay {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.cps-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}
.cps-close:hover {
    background-color: transparent !important;
}

.cps-popup-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.2;
}

.cps-popup-content {
    margin-bottom: 1rem;
    /* optionales Styling */
}

.cps-popup-btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: opacity 0.2s ease;
    margin-top: auto;
    align-self: center;
}

/* Hover-Farbe (Inline wird hier überschrieben) */
.cps-popup-btn:hover {
    opacity: 0.9;
}

p {
    margin: 0 !important;
}