/*
 * V480: a bar fixed to the bottom of the window (was a grey block above the page), the same in
 * the old and the Modern template. The text is the article chosen in the plugin (content_id).
 */
#fs_cookies {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1090;
    background: #ffffff;
    color: #333333;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.5;
    max-height: 50vh;
    overflow-y: auto;
}

#fs_cookies_center {
    max-width: 1200px;
    margin: 0 auto;
}

#fs_cookies_inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px;
}

/* The article text takes the free width; headings of a long article stay text-sized. */
#fs_cookies_inner > :not(a) {
    flex: 1 1 320px;
    margin: 0;
}

#fs_cookies_inner h1,
#fs_cookies_inner h2,
#fs_cookies_inner h3 {
    font-size: inherit;
    font-weight: 600;
    margin: 0;
}

#fs_cookies_inner a {
    color: inherit;
    text-decoration: underline;
}

#fs_cookies_inner a#fs_cookies_readmore {
    white-space: nowrap;
}

#fs_cookies_inner a#fs_cookies_agree {
    flex: 0 0 auto;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    background: #333333;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

#fs_cookies_inner a#fs_cookies_agree:hover,
#fs_cookies_inner a#fs_cookies_agree:focus {
    background: #000000;
}

/* A drawn cross; the text stays for screen readers. */
#fs_cookies_inner a#fs_cookies_close {
    flex: 0 0 auto;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    opacity: 0.6;
}

#fs_cookies_inner a#fs_cookies_close:hover,
#fs_cookies_inner a#fs_cookies_close:focus {
    opacity: 1;
    background: #f2f2f2;
}

#fs_cookies_inner a#fs_cookies_close::before,
#fs_cookies_inner a#fs_cookies_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #333333;
}

#fs_cookies_inner a#fs_cookies_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#fs_cookies_inner a#fs_cookies_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#fs_cookies_close span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    border: 0 none !important;
}

@media (max-width: 575.98px) {
    #fs_cookies_inner {
        padding: 12px;
    }

    #fs_cookies_inner a#fs_cookies_agree {
        flex: 1 1 auto;
        text-align: center;
    }
}

/*
 * V754: the consent banner (mode "consent"): the text, the choices (after "Settings") and the buttons — "Reject" and
 * "Accept all" look the same (the choice must be as easy both ways); the round button reopens it.
 */
#fs_cookies[hidden],
#fs_cookies [hidden],
.fs-consent-open[hidden] {
    display: none !important;
}

#fs_cookies.fs-consent .fs-consent-text {
    flex: 1 1 360px;
}

#fs_cookies.fs-consent .fs-consent-text > :first-child {
    margin-top: 0;
}

#fs_cookies.fs-consent .fs-consent-text > :last-child {
    margin-bottom: 0;
}

#fs_cookies.fs-consent .fs-consent-text a#fs_cookies_readmore {
    margin-left: 4px;
}

#fs_cookies.fs-consent .fs-consent-options {
    flex: 1 1 100%;
    display: grid;
    gap: 6px;
    margin: 4px 0;
}

#fs_cookies.fs-consent .fs-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

#fs_cookies.fs-consent .fs-consent-option input {
    margin-top: 4px;
    flex: 0 0 auto;
}

#fs_cookies.fs-consent .fs-consent-option small {
    color: #666666;
    font-size: 13px;
}

#fs_cookies.fs-consent .fs-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

#fs_cookies.fs-consent .fs-consent-button {
    display: inline-block;
    margin: 0;
    padding: 7px 18px;
    border: 1px solid #333333;
    border-radius: 6px;
    background: #333333;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

#fs_cookies.fs-consent .fs-consent-button:hover,
#fs_cookies.fs-consent .fs-consent-button:focus-visible {
    background: #000000;
    border-color: #000000;
}

#fs_cookies.fs-consent .fs-consent-button.fs-consent-link {
    background: transparent;
    color: inherit;
    border-color: transparent;
    text-decoration: underline;
    font-weight: 400;
    padding-left: 6px;
    padding-right: 6px;
}

#fs_cookies.fs-consent .fs-consent-button:focus-visible,
.fs-consent-open:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.fs-consent-open {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #ffffff;
    color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0.85;
}

.fs-consent-open:hover {
    opacity: 1;
    color: #000000;
}

@media (max-width: 575.98px) {
    #fs_cookies.fs-consent .fs-consent-buttons {
        flex: 1 1 100%;
    }

    #fs_cookies.fs-consent .fs-consent-button:not(.fs-consent-link) {
        flex: 1 1 40%;
        text-align: center;
    }
}
