.custom-header-promo {
    background-color: transparent;
    text-align: center;
    padding: 10px;
    overflow: hidden;
    position: relative;
    height: 40px; /* Ensure container has a defined height */
    width: 100%;
}

.custom-header-promo .promo-text {
    font-weight: bold;
    position: absolute;
    white-space: nowrap;
}

.custom-header-promo .promo-text.scrolling {
    /* animation-name is now set dynamically */
}

.custom-header-promo .promo-text.no-scroll {
    animation: none;
    padding-left: 0;
    text-align: center;
    width: 100%;
}


/* Responsive design */
@media (max-width: 768px) {
    .custom-header-promo {
        padding: 6px 0;
    }
    
    .custom-header-promo .promo-text {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .custom-header-promo {
        padding: 4px 0;
    }
    
    .custom-header-promo .promo-text {
        font-size: 11px !important;
    }
}

.hook-displayNav1 .custom-header-promo {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
}

.hook-displayNav1 .custom-header-promo {
    display: inline-block !important;
    width: auto !important;
    vertical-align: middle !important;
    margin-left: 20px !important;
}