/* Sluitingsmelding (feestdagen), zie includes/closure-notice.php */

:root {
    --closure-notice-h: 48px;
}

.closure-notice {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #223C72;
    color: #fff;
    border-bottom: 3px solid #D33727;
    font-family: 'Open Sans', Helvetica, Roboto, Arial, sans-serif;
}

.closure-notice__inner {
    max-width: 1680px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.closure-notice__icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: #fff;
}

.closure-notice__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.closure-notice__text strong {
    font-family: 'Readex Pro', 'Open Sans', sans-serif;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

.closure-notice__sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 10px 2px;
    border-radius: 50%;
    background: #D33727;
    vertical-align: middle;
}

.closure-notice__wish {
    margin-left: 6px;
    font-style: normal;
    font-weight: 700;
    color: #fff;
}

/*
 * De header ligt absoluut bovenaan en de body houdt er ruimte voor vrij
 * (padding-top 120px, vanaf medium 140px). Schuif beide onder de balk.
 */
body.has-closure-notice {
    padding-top: calc(120px + var(--closure-notice-h));
}

@media screen and (min-width: 40em) {
    body.has-closure-notice {
        padding-top: calc(140px + var(--closure-notice-h));
    }
}

body.has-closure-notice > header {
    top: var(--closure-notice-h) !important;
}

body.admin-bar .closure-notice {
    top: 32px;
}

body.admin-bar.has-closure-notice > header {
    top: calc(32px + var(--closure-notice-h)) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .closure-notice {
        top: 46px;
    }

    body.admin-bar.has-closure-notice > header {
        top: calc(46px + var(--closure-notice-h)) !important;
    }
}

@media screen and (max-width: 639px) {
    .closure-notice__inner {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 10px 16px;
    }

    .closure-notice__icon {
        margin-top: 1px;
    }

    .closure-notice__text {
        font-size: 0.8125rem;
    }

    .closure-notice__text strong {
        display: block;
    }

    .closure-notice__sep {
        display: none;
    }

    .closure-notice__wish {
        margin-left: 4px;
    }
}
