/*
 * Cookie consent: the top bar and the preferences dialog (partials/consent.php, consent.js).
 * Minimal: the bar is an overlay fixed to the top of the window (it covers the top of the page and pushes nothing, so the page does
 * not jump when it goes). The three buttons of the bar and of the dialog look exactly the same: refusing is as easy and as visible as agreeing.
 */
.flye-consent[hidden],
.flye-consent-dialog[hidden] {
    display: none !important;
}

.flye-consent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040; /* above the theme headers (1000), below the card, the dialog and the menu panel */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px 24px;
    background: #f7f9f9;
    border-bottom: 1px solid #cdd3dc;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    color: #0b1934;
    font: 400 14px/1.45 Poppins, "Helvetica Neue", Arial, sans-serif;
}

.flye-consent__text {
    flex: 1 1 360px;
    margin: 0;
}

.flye-consent a {
    color: #2927b9;
    text-decoration: underline;
}

.flye-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.flye-consent__btn {
    box-sizing: border-box;
    min-width: 112px;
    padding: 8px 18px;
    border: 2px solid #2927b9;
    border-radius: 24px;
    background: #fff;
    color: #2927b9;
    font: 600 14px/1.3 Poppins, "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
}

.flye-consent__btn:hover,
.flye-consent__btn:focus-visible {
    background: #2927b9;
    color: #fff;
}

.flye-consent__btn:focus-visible,
.flye-consent a:focus-visible,
.flye-consent-dialog__close:focus-visible,
.flye-consent-dialog input:focus-visible,
.flye-consent-dialog a:focus-visible {
    outline: 3px solid #008aff;
    outline-offset: 2px;
}

.flye-consent-dialog {
    position: fixed;
    z-index: 100000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(11, 25, 52, 0.6);
    color: #0b1934;
    font: 400 14px/1.5 Poppins, "Helvetica Neue", Arial, sans-serif;
}

.flye-consent-dialog__box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    overflow-y: auto;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    outline: none;
}

.flye-consent-dialog h2 {
    margin: 0 36px 8px 0;
    font-size: 20px;
    line-height: 1.3;
    color: #0b1934;
}

.flye-consent-dialog p {
    margin: 0 0 12px;
}

.flye-consent-dialog a {
    color: #2927b9;
    text-decoration: underline;
}

.flye-consent-dialog__category {
    margin: 0 0 12px;
    padding: 12px 0 0;
    border-top: 1px solid #e3e7ee;
}

.flye-consent-dialog__category p {
    margin: 4px 0 0 28px;
}

.flye-consent-dialog__category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}

.flye-consent-dialog__category input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2927b9;
}

.flye-consent-dialog .flye-consent__actions {
    margin-top: 16px;
}

.flye-consent-dialog__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #0b1934;
    font: 400 26px/1 Arial, sans-serif;
    cursor: pointer;
}

.flye-consent-open {
    overflow: hidden;
}

/* The small card in the bottom right corner that reopens the dialog. On a phone only the icon shows, and the card sits above the
   fixed bottom menu bar (about 68px high, shown below 768px). */
.flye-consent-card {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1050; /* above the theme headers (1000), below the dialog and the menu panel */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #cdd3dc;
    border-radius: 12px;
    background: #fff;
    color: #444659;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    opacity: .92;
}

.flye-consent-card:hover,
.flye-consent-card:focus-visible {
    opacity: 1;
    border-color: #2927b9;
    color: #2927b9;
}

.flye-consent-open .flye-consent-card,
.flye-consent-visible .flye-consent-card { /* not while the bar is showing: the bar already offers the choice */
    display: none;
}

@media print {
    .flye-consent-card {
        display: none;
    }
}

@media (max-width: 991px) {
    .flye-consent-card {
        padding: 8px;
    }

    .flye-consent-card__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .flye-consent-card {
        bottom: 84px;
    }
}

@media (max-width: 600px) {
    .flye-consent {
        padding: 12px 16px;
    }

    .flye-consent__actions {
        width: 100%;
    }

    .flye-consent__btn {
        flex: 1 1 30%;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    .flye-consent-dialog__box {
        padding: 20px 16px;
    }
}
