@import "../../../../../styles/definitions/variables";
@import "../../../../../styles/definitions/mixins";
@import "../../../../../styles/definitions/breakpoints";

.headerAnnouncementBar {
    &_wrapper {
        position: relative;
        height: var(--height, 30px);
        display: flex;
        align-items: center;
        color: var(--text-color);
        background-color: var(--background-color, $header-announ-bg-color);

        @include media-md-down {
            height: auto;
            padding: 10px 0;
        }

        &--align-left {
            justify-content: flex-start;
        }
        &--align-center {
            justify-content: center;
            text-align: center;
        }
        &--align-right {
            justify-content: flex-end;
            text-align: right;
        }
        &--small-text {
            @include default($bodyFontSize6);
        }
        &--medium-text {
            @include default($bodyFontSize5);
        }
        &--large-text {
            @include default($bodyFontSize4);
        }

        &::before {
            content: '';
            display: block;
            @include full-window-width;
            background-color: var(--background-color, #{$header-announ-bg-color});
            border-top: 1px solid var(--border-color, transparent);
            border-bottom: 1px solid var(--border-color, transparent);
        }
    }

    &_message {
        margin: 0;
        z-index: 1;
        
        &--small {
            @include default($bodyFontSize6);
        }
        &--medium {
            @include default($bodyFontSize5);
        }
        &--large {
            @include default($bodyFontSize4);
        }
    }

    &_link {
        color: var(--link-color);

        &:hover,
        &:focus {
            text-decoration: underline;
        }
    }
}
