/* Adflex cookie consent banner and settings dialog. */

.cc-banner[hidden],
.cc-modal[hidden] {
    display: none !important;
}

.cc-banner,
.cc-modal {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    text-align: left;
}

    .cc-banner a,
    .cc-modal a {
        color: #0d4976;
        font-weight: 700;
        text-decoration: underline;
    }

/* Banner */
.cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background-color: #f3f7fa;
    border-top: 1px solid #e3e6f0;
    box-shadow: 0 -4px 12px rgba(50, 50, 93, .15);
}

.cc-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
}

.cc-banner__text {
    flex: 1 1 480px;
}

    .cc-banner__text p {
        margin: 0;
    }

.cc-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px !important;
}

.cc-banner__actions,
.cc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Buttons: Accept and Reject share one style so neither is favoured. */
.cc-btn {
    min-width: 120px;
    padding: 8px 16px;
    border: 1px solid #0d4976;
    border-radius: 4px;
    background-color: #0d4976;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .cc-btn:hover {
        background-color: #0a3a5e;
    }

    .cc-btn:focus-visible,
    .cc-modal__close:focus-visible,
    .cc-switch:focus-visible {
        outline: 3px solid #f0b429;
        outline-offset: 2px;
    }

.cc-btn--link {
    min-width: 0;
    border-color: transparent;
    background-color: transparent;
    color: #0d4976;
    text-decoration: underline;
}

    .cc-btn--link:hover {
        background-color: transparent;
        color: #0a3a5e;
    }

/* Settings dialog */
.cc-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cc-modal__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5);
}

.cc-modal__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 28px 24px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.cc-modal__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0d4976;
}

.cc-modal__close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #555555;
    cursor: pointer;
}

.cc-category {
    padding: 12px 0;
    border-top: 1px solid #e3e6f0;
}

    .cc-category p {
        margin: 4px 0 0;
        font-size: 13px;
        color: #555555;
    }

.cc-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-category__label {
    margin: 0;
    font-weight: 700;
    cursor: pointer;
}

.cc-switch {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0d4976;
    cursor: pointer;
}

    .cc-switch:disabled {
        cursor: not-allowed;
    }

.cc-modal__actions {
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e3e6f0;
}

body.cc-modal-open {
    overflow: hidden;
}

@media (max-width: 575px) {
    .cc-banner__inner {
        padding: 14px 16px;
    }

    .cc-banner__actions,
    .cc-modal__actions {
        width: 100%;
    }

        .cc-banner__actions .cc-btn:not(.cc-btn--link),
        .cc-modal__actions .cc-btn {
            flex: 1 1 100%;
        }

    .cc-banner__actions .cc-btn--link {
        padding-left: 0;
        padding-right: 0;
    }

    .cc-modal__panel {
        padding: 24px 18px 18px;
    }
}
