/* Smart Ads CSS */

/* --- Sticky Ads (AdSense Style) --- */
.wpsa-sticky-wrapper {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}

.wpsa-sticky-header,
.wpsa-sticky-ad-content {
    pointer-events: auto;
}

.wpsa-sticky-top {
    top: 0;
}

.wpsa-sticky-bottom {
    bottom: 0;
}

.wpsa-sticky-header {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 10px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: -1px;
}

.wpsa-sticky-top .wpsa-sticky-header {
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    order: 2;
    margin-top: -1px;
    margin-bottom: 0;
}

.wpsa-sticky-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.wpsa-sticky-close-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.wpsa-sticky-close-btn:hover {
    background: #e8eaed;
    color: #202124;
}

.wpsa-sticky-ad-content {
    padding: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    background: #fff;
}

.wpsa-sticky-hidden {
    transform: translateY(100%);
}

.wpsa-sticky-top.wpsa-sticky-hidden {
    transform: translateY(-100%);
}

/* --- Side Ads --- */
.wpsa-side-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99998;
}

.wpsa-side-left {
    left: 10px;
}

.wpsa-side-right {
    right: 10px;
}

/* --- Overlays (Vignette & Popup) --- */
.wpsa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpsa-vignette-container,
.wpsa-popup-container {
    background: #fff;
    padding: 40px 20px 20px 20px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
}

.wpsa-close-overlay-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.3s;
}

.wpsa-close-overlay-btn:hover {
    background: #ddd;
}

/* Optional responsive tweak for side ads */
@media screen and (max-width: 1200px) {
    .wpsa-side-ad {
        display: none;
        /* Hide side ads on smaller screens since they will overlap content */
    }
}