/* Popup Styles for CMS-managed Popups */

/* Overlay for modal popups */
.cms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-popup-overlay.show {
    opacity: 1;
}

/* Base popup styles */
.cms-popup {
    position: fixed;
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.cms-popup.show {
    opacity: 1;
    transform: scale(1);
}

/* Modal positioning */
.cms-popup-modal.cms-popup-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.cms-popup-modal.cms-popup-center.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Banner positioning */
.cms-popup-banner.cms-popup-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    border-radius: 0 0 20px 20px;
    max-width: 100%;
    width: 100%;
}

.cms-popup-banner.cms-popup-top.show {
    transform: translateX(-50%) translateY(0);
}

.cms-popup-banner.cms-popup-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    width: 100%;
}

.cms-popup-banner.cms-popup-bottom.show {
    transform: translateX(-50%) translateY(0);
}

/* Toast positioning */
.cms-popup-toast.cms-popup-top {
    top: 2rem;
    right: 2rem;
    transform: translateX(400px);
}

.cms-popup-toast.cms-popup-top.show {
    transform: translateX(0);
}

.cms-popup-toast.cms-popup-bottom {
    bottom: 2rem;
    right: 2rem;
    transform: translateX(400px);
}

.cms-popup-toast.cms-popup-bottom.show {
    transform: translateX(0);
}

/* Popup content */
.cms-popup-content {
    padding: 2rem;
    position: relative;
}

.cms-popup-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.popup-logo-img {
    max-width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.cms-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cms-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.cms-popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    background: linear-gradient(135deg, #20b2aa 0%, #008b8b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cms-popup-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.cms-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.cms-popup-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #20b2aa 0%, #008b8b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    font-family: inherit;
}

.cms-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .cms-popup {
        width: 95%;
        max-width: none;
    }

    .cms-popup-content {
        padding: 1.5rem;
    }

    .cms-popup-toast.cms-popup-top,
    .cms-popup-toast.cms-popup-bottom {
        right: 1rem;
        left: 1rem;
        width: auto;
        transform: translateY(-100%);
    }

    .cms-popup-toast.cms-popup-top.show,
    .cms-popup-toast.cms-popup-bottom.show {
        transform: translateY(0);
    }
}

