﻿/* ============================================
   BANK ADVERTISING POPUPS - popup-ads.css
   ============================================ */

/* ---- POPUP 1: CENTER MODAL ---- */
.bank-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.bank-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Thay đổi kích thước hiển thị popup center  */
.bank-popup-modal {
    position: relative;
    width: 30%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(-20px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.bank-popup-overlay.is-active .bank-popup-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.bank-popup-modal a {
    display: block;
    line-height: 0;
}

.bank-popup-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Close button - popup 1 */
.bank-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bank-popup-close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: rotate(90deg) scale(1.1);
}


/* ---- POPUP 2: FIXED BOTTOM-LEFT STICKY ---- */
.bank-sticky-popup {
    position: fixed;
    bottom: 13px;
    left: 13px;
    width: 255px;
/*     border-radius: 12px;
    overflow: hidden; */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
    z-index: 99997;
    transform: translateX(-120%) scale(0.9);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.bank-sticky-popup.is-active {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.bank-sticky-popup a {
    display: block;
    line-height: 0;
}

.bank-sticky-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Close button - popup 2 */
.bank-sticky-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bank-sticky-close:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: rotate(90deg);
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .bank-popup-modal {
        width: 60%;
    }
    .bank-sticky-popup {
        width: 250px;
        bottom: 16px;
        left: 16px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .bank-popup-modal {
        width: 80%;
        border-radius: 10px;
    }
    .bank-sticky-popup {
        width: 200px;
        bottom: 12px;
        left: 12px;
        border-radius: 10px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .bank-popup-modal {
        width: 96%;
    }
    .bank-sticky-popup {
        width: 160px;
        left: 8px;
        bottom: 8px;
    }
}