/* Frontend Popup Styles */

#spb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#spb-popup-overlay.spb-active {
    display: flex;
}

#spb-popup-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    max-height: 90vh;
    overflow: visible;
    top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) !important;
    opacity: 0;
    transition: all 0.3s ease;
}

#spb-popup-overlay.spb-active #spb-popup-container {
    transform: scale(1);
    opacity: 1;
}

/* Animation variants */
#spb-popup-overlay.spb-animation-slide-down #spb-popup-container {
    transform: translateY(-100px);
}

#spb-popup-overlay.spb-active.spb-animation-slide-down #spb-popup-container {
    transform: translateY(0);
}

#spb-popup-overlay.spb-animation-slide-up #spb-popup-container {
    transform: translateY(100px);
}

#spb-popup-overlay.spb-active.spb-animation-slide-up #spb-popup-container {
    transform: translateY(0);
}

#spb-popup-overlay.spb-animation-zoom #spb-popup-container {
    transform: scale(0.3);
}

#spb-popup-overlay.spb-active.spb-animation-zoom #spb-popup-container {
    transform: scale(1);
}

/* Close button */
#spb-close-btn {
    position: absolute;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

#spb-close-btn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

#spb-close-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Close button positions */
.spb-top-right #spb-close-btn.spb-close-top-right {
    top: -15px;
    right: -15px;
}

.spb-top-left #spb-close-btn.spb-close-top-left {
    top: -15px;
    left: -15px;
}

/* Popup content */
.spb-popup-content {
    padding: 40px 30px 30px 30px;
}

.spb-popup-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.spb-popup-body {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Content styling */
.spb-popup-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.spb-popup-body video,
.spb-popup-body iframe {
    max-width: 100%;
    border-radius: 4px;
    margin: 15px 0;
}

.spb-popup-body p {
    margin: 15px 0;
}

.spb-popup-body a {
    color: #2271b1;
    text-decoration: none;
}

.spb-popup-body a:hover {
    text-decoration: underline;
}

.spb-popup-body ul,
.spb-popup-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.spb-popup-body h1,
.spb-popup-body h2,
.spb-popup-body h3,
.spb-popup-body h4,
.spb-popup-body h5,
.spb-popup-body h6 {
    margin: 20px 0 15px 0;
    color: #333;
}

/* Scrollbar styling */
#spb-popup-container::-webkit-scrollbar {
    width: 8px;
}

#spb-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

#spb-popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#spb-popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    #spb-popup-overlay {
        padding: 10px;
    }
    
    #spb-popup-container {
        max-height: 95vh;
    }
    
    .spb-popup-content {
        padding: 30px 20px 20px 20px;
    }
    
    .spb-popup-title {
        font-size: 24px;
    }
    
    .spb-popup-body {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .spb-popup-content {
        padding: 25px 15px 15px 15px;
    }
    
    .spb-popup-title {
        font-size: 20px;
    }
    
    .spb-popup-body {
        font-size: 14px;
    }
}
