/* Common wrapper */
.sa-loaded-ad {
    z-index: 9999;
}

/* Alignment helpers */
.sa-align-left {
    text-align: left;
}
.sa-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.sa-align-right {
    text-align: right;
}

/* Sticky footer */
.sa-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 5px 0;
    background: rgba(255,255,255,0.70);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.25);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}
.sa-sticky.show {
    transform: translateY(0);
    opacity: 1;
}

/* Popup */
.sa-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 90%;
    transform: translate(-50%, 150%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
}
.sa-popup.show {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Vertical (left/right) */
.sa-float_left,
.sa-float_right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    max-width: 160px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.sa-float_left {
    left: -220px;
}
.sa-float_left.show {
    left: 0;
    opacity: 1;
}

.sa-float_right {
    right: -220px;
}
.sa-float_right.show {
    right: 0;
    opacity: 1;
}

/* Overlay for popup */
.sa-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
}

/* Close button */
.sa-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 999px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10002;

    /* button reset */
    border: 0;
    padding: 0;
    appearance: none;
}

.sa-close-btn:hover {
    background: rgba(0,0,0,0.88);
}

.sa-close-btn:focus {
    outline: 2px solid rgba(0,0,0,0.35);
    outline-offset: 2px;
}

/* Mobile: hide vertical floating ads */
@media (max-width: 768px) {
    .sa-float_left,
    .sa-float_right {
        display: none !important;
    }
}

