/* Floating Side Banner — smooth slide drawer + toggle */
.floating_box {
    position: fixed;
    right: 0;
    bottom: 20px;
    z-index: 9999;
}

.float_banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Drawer: slides in/out to the right, height collapses after slide */
.float-promo-drawer {
    overflow: hidden;
    max-height: 560px;
    transform: translateX(0);
    opacity: 1;
    transition:
        max-height 0.52s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
        opacity 0.42s ease 0.06s;
    transform-origin: right center;
    will-change: transform, opacity, max-height;
}

.floating_box.float-banner-collapsed .float-promo-drawer {
    max-height: 0;
    transform: translateX(85px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.34s ease,
        max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.float-promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.float-promo-list .promo {
    margin: 0;
}

.banner_wrap {
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.banner_wrap:hover {
    transform: scale(1.05);
}

.banner_wrap img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner_wrap i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.banner_wrap:hover i {
    background: linear-gradient(135deg, #b8941f, #d4af37);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.float-toggle-btn.toggle-promo {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    height: 50px;
    width: 50px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid #f1f1f1;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.float-toggle-btn.toggle-promo i {
    font-size: 16px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-toggle-btn.toggle-promo:hover {
    background-color: rgba(0, 0, 0, 0.92);
}

.floating_box.float-banner-collapsed .float-toggle-btn.toggle-promo i {
    transform: rotate(180deg);
}

/* Modal */
#exampleModalCenter .modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#exampleModalCenter .modal-header {
    padding: 15px 20px;
    border-bottom: none;
}

#exampleModalCenter .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#popup-promo .popup {
    display: flex;
    flex-direction: column;
}

#popup-promo .popup > div {
    margin-bottom: 0;
}

.promo-img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease;
}

.promo-img:hover {
    opacity: 0.9;
}

.promo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ababab;
    transition: all 0.3s ease;
}

.promo-link:hover {
    background: rgba(255, 255, 255, 1);
    color: #d4af37;
    transform: translateX(5px);
}

.promo-icon {
    font-size: 32px;
    margin-right: 15px;
    color: #d4af37;
}

.promo-text {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

#exampleModalCenter .modal-footer {
    padding: 10px 20px;
    border-top: none;
}

#exampleModalCenter .modal-footer input[type="checkbox"] {
    margin-right: 5px;
}

@media (max-width: 768px) {
    .floating_box {
        bottom: 10px;
    }

    .banner_wrap i {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .float-toggle-btn.toggle-promo {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-promo-drawer,
    .floating_box.float-banner-collapsed .float-promo-drawer,
    .float-toggle-btn.toggle-promo i {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}
