/* Website Popup Styles */

.website-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.website-popup-overlay.is-visible {
    opacity: 1;
}

.website-popup-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.website-popup-overlay.is-visible .website-popup-container {
    transform: scale(1);
}

.website-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.website-popup-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.website-popup-close:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.website-popup-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Scrollbar styling for content */
.website-popup-content::-webkit-scrollbar {
    width: 8px;
}

.website-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.website-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.website-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive styles */
@media (max-width: 768px) {
    .website-popup-overlay {
        padding: 10px;
    }

    .website-popup-container {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 4px;
    }

    .website-popup-content {
        padding: 15px;
        max-height: 95vh;
    }

    .website-popup-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

/* Ensure content doesn't have unexpected margins */
.website-popup-content > *:first-child {
    margin-top: 0;
}

.website-popup-content > *:last-child {
    margin-bottom: 0;
}
