/* Top Banner Styles */
.hello-elementor-pro-top-banner {
    position: relative;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
}

.hello-elementor-pro-top-banner.banner-position-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.hello-elementor-pro-top-banner.banner-position-static {
    position: relative;
}

.hello-elementor-pro-top-banner .banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hello-elementor-pro-top-banner .banner-content {
    flex: 1;
    padding: 10px 0;
}

/* Ensure banner displays even without text */
.hello-elementor-pro-top-banner .banner-container {
    min-height: 30px;
}

.hello-elementor-pro-top-banner .banner-link {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.hello-elementor-pro-top-banner .banner-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

.hello-elementor-pro-top-banner .banner-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
}

.hello-elementor-pro-top-banner .banner-close:hover {
    opacity: 1;
}

.hello-elementor-pro-top-banner .banner-close-icon {
    line-height: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hello-elementor-pro-top-banner {
        font-size: 12px;
    }
    
    .hello-elementor-pro-top-banner .banner-container {
        padding: 0 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .hello-elementor-pro-top-banner .banner-content {
        padding: 5px 0;
    }
    
    .hello-elementor-pro-top-banner .banner-close {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* Body padding for fixed banner */
body.has-fixed-banner {
    padding-top: 60px !important;
}

/* Ensure banner image displays properly */
.hello-elementor-pro-top-banner[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    min-height: 60px !important;
}

/* Fallback for when image doesn't load */
.hello-elementor-pro-top-banner[style*="background-image"] .banner-content {
    position: relative;
    z-index: 2;
}

.hello-elementor-pro-top-banner[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Alternative approach for banner images */
.hello-elementor-pro-top-banner[data-banner-image] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}


