/* Custom Banner Pro - Frontend Styles */

#cbp-banner {
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
    display: block;
}

#cbp-banner.cbp-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
}

#cbp-banner.cbp-static {
    position: relative;
}

#cbp-banner .cbp-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    word-wrap: break-word;
}

#cbp-banner p {
    margin: 0;
    padding: 0;
}

#cbp-banner a {
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

#cbp-banner a:hover {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    #cbp-banner {
        padding: 12px 15px;
        font-size: 14px !important;
    }
    
    #cbp-banner .cbp-banner-content {
        flex-direction: column;
        text-align: center !important;
        gap: 8px;
    }
}

/* Ensure banner doesn't interfere with admin bar */
body.admin-bar #cbp-banner.cbp-fixed {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #cbp-banner.cbp-fixed {
        top: 46px !important;
    }
}

/* Animation for fixed banners */
#cbp-banner.cbp-fixed {
    animation: cbp-slide-down 0.5s ease-out;
}

@keyframes cbp-slide-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
} 