/*
Template:astra
Theme Name:astra_child
*/

#time-banner-container {
        z-index: 99999;
        font-family: sans-serif;
    }

    .banner-link {
        display: block;
        width: 100%;
        height: 100%;
        text-decoration: none;
        cursor: pointer;
    }

    .banner-content picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    #banner-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    #floating-banner {
        position: fixed;
        bottom: 100px;
        right: 20px;
        width: 160px;
        height: 160px;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.5s ease, transform 0.3s ease, opacity 0.3s ease;
        
        color: #fff;
    }

    #floating-banner.theme-red {
        background-color: #bf0000;
    }

    #floating-banner.theme-blue {
        background-color: #0051E0;
    }

    #close-btn {
        position: absolute;
        top: -10px;
        right: -10px;
        width: 25px;
        height: 25px;
        background: #333;
        color: #fff;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-weight: bold;
        line-height: 1;
        z-index: 10;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #open-btn {
        position: fixed;
        bottom: 100px;
        right: 20px;
        background: #bf0000;
        color: #fff;
        padding: 10px 15px;
        border-radius: 30px;
        cursor: pointer;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
        display: none;
        z-index: 99999;
    }

    @media (max-width: 767px) {
        #floating-banner {
            width: 100% !important;
            height: 80px !important;
            bottom: 0 !important;
            right: 0 !important;
            left: 0 !important;
            border-radius: 0 !important;
        }
        
        #floating-banner .banner-content {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #close-btn {
            top: 5px;
            right: 5px;
            background: rgba(0,0,0,0.5);
        }

        #open-btn {
            bottom: 10px;
            right: 10px;
        }
    }

    .hidden-banner {
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
    }