.cfr-consent[hidden],
.cfr-consent__details[hidden],
.cfr-consent__button[hidden] {
    display: none !important;
}

.cfr-consent {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    font-family: "Roboto", Arial, sans-serif;
}

.cfr-consent.cfr-consent,
.cfr-consent.cfr-consent * {
    font-family: "Roboto", Arial, sans-serif !important;
}

.cfr-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 35, 73, .58);
    backdrop-filter: blur(2px);
}

.cfr-consent__panel {
    position: relative;
    width: min(940px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px 30px 24px;
    border: 1px solid rgba(0, 75, 160, .22);
    border-top: 6px solid #0057a8;
    border-radius: 16px;
    background: #fff;
    color: #1c2733;
    box-shadow: 0 24px 70px rgba(0, 27, 58, .32);
    outline: 0;
}

.cfr-consent__heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.cfr-consent.cfr-consent .cfr-consent__heading > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.cfr-consent__icon {
    display: inline-flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0067bd, #00448d);
    box-shadow: 0 7px 18px rgba(0, 75, 160, .22);
}

.cfr-consent.cfr-consent .cfr-consent__icon {
    align-self: center;
}

.cfr-consent__icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.cfr-consent.cfr-consent .cfr-consent__eyebrow {
    display: block;
    margin: 0;
    color: #586a7d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.1;
    text-transform: uppercase;
}

.cfr-consent__summary h2 {
    margin: 0;
    padding: 0;
    color: #003f7d;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.1;
}

.cfr-consent__description {
    margin: 0;
    max-width: 820px;
    color: #34485b;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.cfr-consent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 12px;
}

.cfr-consent__links a {
    color: #004b93;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cfr-consent__details {
    margin-top: 22px;
    border-top: 1px solid #d5dde5;
}

.cfr-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 15px 6px;
    border-bottom: 1px solid #d5dde5;
    color: #1c2733;
    cursor: pointer;
}

.cfr-consent__category div,
.cfr-consent__category span {
    display: block;
}

.cfr-consent__category strong {
    display: block;
    color: #003f7d;
    font-size: 16px;
}

.cfr-consent__category p,
.cfr-consent__category small {
    display: block;
    margin: 4px 0 0;
    color: #44515e;
    font-size: 14px;
    line-height: 1.4;
}

.cfr-consent__category input[type="checkbox"] {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    accent-color: #0057a8;
}

.cfr-consent__always {
    flex: 0 0 auto;
    color: #37633b;
    font-size: 13px;
    font-weight: 700;
}

.cfr-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.cfr-consent__button {
    min-height: 46px;
    padding: 11px 20px;
    border: 2px solid #0057a8;
    border-radius: 8px;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cfr-consent__button--primary {
    background: linear-gradient(135deg, #0067bd, #004c9b);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 75, 160, .2);
}

.cfr-consent__button--secondary {
    background: #fff;
    color: #004b93;
}

.cfr-consent__button:hover {
    background: #003f7d;
    color: #fff;
    transform: translateY(-1px);
}

.cfr-consent__button:active {
    transform: translateY(0);
}

.cfr-consent__button:focus-visible,
.cfr-consent-open-settings:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

.cfr-consent-open-settings {
    margin-left: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cfr-consent-embed {
    width: 100%;
    margin: 26px 0;
    overflow: hidden;
    border: 1px solid #c9dbea;
    border-radius: 14px;
    background: #f4f8fc;
    box-shadow: 0 8px 24px rgba(0, 63, 125, .09);
    font-family: "Roboto", Arial, sans-serif;
}

.cfr-consent-embed,
.cfr-consent-embed * {
    font-family: "Roboto", Arial, sans-serif !important;
}

.cfr-consent-embed__placeholder {
    display: flex;
    min-height: 360px;
    padding: 36px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: center;
    background: linear-gradient(145deg, #f8fbfe, #edf5fb);
}

.cfr-consent-embed__placeholder[hidden] {
    display: none !important;
}

.cfr-consent-embed__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #0067bd, #00448d);
    box-shadow: 0 8px 20px rgba(0, 75, 160, .22);
}

.cfr-consent-embed__icon .cfr-icon {
    width: 32px;
    height: 32px;
}

.cfr-consent-embed__copy {
    max-width: 620px;
}

.cfr-consent-embed__copy strong {
    display: block;
    color: #003f7d;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.2;
}

.cfr-consent-embed__copy p {
    margin: 9px 0 0;
    color: #40566b;
    font-size: 15px;
    line-height: 1.55;
}

.cfr-consent-embed .cfr-consent-embed__button {
    min-height: 46px;
    margin: 0;
    padding: 11px 18px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #0057a8;
    box-shadow: 0 6px 16px rgba(0, 75, 160, .2);
    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.cfr-consent-embed .cfr-consent-embed__button:hover,
.cfr-consent-embed .cfr-consent-embed__button:focus-visible {
    color: #fff;
    background: #003f7d;
}

.cfr-consent-embed.is-active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.cfr-consent-embed iframe:not([hidden]) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 480px;
    margin: 0;
    border: 0;
}

@media (max-width: 640px) {
    .cfr-consent {
        padding: 0;
    }

    .cfr-consent__panel {
        max-height: 92vh;
        padding: 22px 18px 18px;
        border-radius: 14px 14px 0 0;
    }

    .cfr-consent__summary h2 {
        font-size: 20px;
    }

    .cfr-consent__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .cfr-consent__icon svg {
        width: 26px;
        height: 26px;
    }

    .cfr-consent__eyebrow {
        font-size: 10px;
    }

    .cfr-consent__category {
        align-items: flex-start;
    }

    .cfr-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cfr-consent__button {
        width: 100%;
    }

    .cfr-consent-embed__placeholder {
        min-height: 300px;
        padding: 28px 20px;
    }

    .cfr-consent-embed iframe:not([hidden]) {
        min-height: 380px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cfr-consent *,
    .cfr-consent *::before,
    .cfr-consent *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
