.hab-announcement-bar {
    position: relative;
    width: 100%;
    z-index: 99999;
    padding: 10px 15px; /* space for close button handled by flex */
    box-sizing: border-box;
    display: flex; /* overridden by JS */
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.hab-inner-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    overflow: hidden;
}

/* MARQUEE STYLES */
.hab-type-marquee .hab-inner-container {
    justify-content: flex-start;
}
.hab-marquee-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.hab-marquee-track {
    display: flex;
    width: max-content;
    animation: hab-marquee linear infinite;
}
.hab-type-marquee:hover .hab-marquee-track {
    animation-play-state: paused;
}
.hab-marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 40px; /* Minimum gap */
    padding: 0 20px; /* Half of gap to maintain perfect loop */
}
@keyframes hab-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* STATIC STYLES */
.hab-type-static .hab-static-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}
.hab-type-static.hab-align-left .hab-inner-container {
    justify-content: flex-start;
}
.hab-type-static.hab-align-center .hab-inner-container {
    justify-content: center;
}
.hab-type-static.hab-align-right .hab-inner-container {
    justify-content: flex-end;
}

/* MESSAGE STYLES */
.hab-message {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.5;
}
.hab-msg-link {
    text-decoration: underline;
    transition: opacity 0.3s;
    font-weight: 600;
}
.hab-msg-link:hover {
    opacity: 0.7;
}

/* CTA STYLES */
.hab-cta-container {
    margin-left: 20px;
    flex-shrink: 0;
}
.hab-cta {
    display: inline-block;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.hab-cta-button {
    border: 2px solid transparent;
}
.hab-cta-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}
.hab-cta-link {
    padding: 0;
    border: none;
    text-decoration: underline !important;
}
.hab-cta-link:hover {
    opacity: 0.8;
}

/* CLOSE BUTTON */
.hab-close-btn {
    position: static;
    margin-left: 15px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 2;
}
.hab-close-btn:hover {
    opacity: 1;
}

/* MOBILE */
@media (max-width: 768px) {
    .hab-inner-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .hab-type-marquee .hab-inner-container {
        flex-direction: row; /* Keep marquee horizontal */
    }
    .hab-cta-container {
        margin-left: 0;
    }
}
