/**
 * The cookie notice as a window in the middle of the screen (inc/cookie-notice.php): Pedro's option A of 20/11/2026,
 * the bar's #212529 as a card, «Aceitar» and «Rejeitar» gold and alike, «Definições» outlined, the page dimmed behind.
 *
 * Every rule starts at body and the notice with the plugin's full-screen class and its dark scheme (the scheme set in
 * its settings). The body is what outranks the plugin: its own full-screen rules use the same selectors and load after
 * this file. With the light scheme chosen there, none of this applies and the plugin's look comes back. The plugin
 * shows and hides the notice by its inline display, so nothing here sets display on it.
 */

/* The dim over the whole page. Under the plugin's «Definições» window (z-index 9990), over the header (990). */
body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    min-height: 0;
    max-height: none;
    background: rgba(33, 37, 41, .6);
    border: 0 !important; /* the plugin's bar border carries !important */
    box-shadow: none;
    overscroll-behavior: contain;
    z-index: 9900;
}

/* The card, in the middle at every width: absolute on all four sides with automatic margins. */
body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 560px;
    height: max-content;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 36px 36px 32px;
    overflow: auto;
    background: #212529;
}

/* The plugin gives the card the focus when it opens: no ring around the whole card. */
body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container:focus {
    outline: none;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content {
    display: block;
    padding: 0;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice {
    margin: 0 0 24px;
    padding: 0;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice p {
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-cookie-notice button.change-settings-button {
    color: #fff;
    font-size: 16px;
    text-decoration: underline;
}

/* The buttons: «Aceitar» and «Rejeitar» the same size and colour, «Definições» outlined. */
body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-button-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-button-holder button.mgbutton {
    flex: 1 1 0;
    justify-content: center;
    min-width: 120px;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    float: none;
    border: 1px solid #AD8D5C;
    border-radius: 0;
    background: #AD8D5C;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 1;
    transition: background-color .2s, border-color .2s, color .2s;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-button-holder button.mgbutton.moove-gdpr-infobar-settings-btn {
    border-color: #fff;
    background: transparent;
    color: #fff;
}

/* Gold on a dark background, and the outline too: white with ink text. */
body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-button-holder button.mgbutton:hover,
body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-button-holder button.mgbutton:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #212529;
}

body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container {
        padding: 28px 22px 22px;
    }

    body #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar.moove-gdpr-dark-scheme .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .moove-gdpr-button-holder button.mgbutton.moove-gdpr-infobar-settings-btn {
        flex-basis: 100%;
    }
}

/* While the window waits for an answer, the page behind it stays still (the plugin puts the class on body then). */
body.twf-cookie-wall.gdpr-infobar-visible {
    overflow: hidden;
}
