.cookie-consent {
    position: fixed;
    z-index: 1050;
    bottom: 18px;
    left: 50%;
    width: min(calc(100% - 36px), 1180px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    transform: translateX(-50%);
    padding: 22px 26px;
    border: 1px solid #d7e2e8;
    border-top: 3px solid var(--ao-blue-dark);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 48px rgba(34, 66, 85, 0.2);
    color: #334d5b;
    font-family: "Lato", Arial, sans-serif;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px 30px; }
.cookie-consent h2,.cookie-preferences h2 { margin: 0 0 7px; font-family: "Lato", Arial, sans-serif; font-size: 1.25rem; font-weight: 700; color: #294e62; }
.cookie-consent p,.cookie-preferences p { margin: 0; color: #617581; font-size: .9rem; line-height: 1.55; }
.cookie-consent .cookie-policy-link { display: inline-block; margin-top: 8px; }
.cookie-policy-link { color: var(--ao-blue-dark); font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent-actions,.cookie-preferences-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-consent-actions button,.cookie-preferences-actions button,.consent-media-message button,.cookie-policy-preferences {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #cbdbe3;
    border-radius: 6px;
    color: #335d72;
    background: #fff;
    font: 600 .84rem/1.35 "Lato", Arial, sans-serif;
    cursor: pointer;
}
.cookie-consent-actions button:hover,.cookie-preferences-actions button:hover,.consent-media-message button:hover,.cookie-policy-preferences:hover { background: #edf4f7; border-color: #93b0bf; }
.cookie-consent-actions .cookie-consent-accept,.cookie-preferences-actions .cookie-consent-accept { color: #fff; background: var(--ao-blue-dark); border-color: var(--ao-blue-dark); }
.cookie-consent-actions .cookie-consent-accept:hover,.cookie-preferences-actions .cookie-consent-accept:hover { background: #294f63; border-color: #294f63; }
.cookie-preferences-link { display: block; min-height: 44px; border: 0; padding: 4px 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.cookie-preferences {
    width: min(620px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #d0dfe7;
    border-radius: 12px;
    color: #334d5b;
    background: #fff;
    box-shadow: 0 24px 80px rgba(24, 55, 73, .2);
    font-family: "Lato", Arial, sans-serif;
}
.cookie-preferences::backdrop { background: rgba(23, 47, 62, .48); }
.cookie-preferences-inner { position: relative; padding: 32px; }
.cookie-preferences .cookie-preferences-eyebrow { margin-bottom: 10px; color: #7c98a6; font-size: .7rem; text-transform: uppercase; letter-spacing: 1.4px; }
.cookie-preferences h2 { font-size: 1.5rem; padding-right: 35px; }
.cookie-preferences-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #577586; font-size: 1.65rem; }
.cookie-preferences-close:hover { background: #edf4f7; }
.cookie-preferences-choice { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid #e1e9ee; cursor: pointer; }
.cookie-preferences-choice:first-of-type { margin-top: 12px; }
.cookie-preferences-choice span { flex: 1; min-width: 0; }
.cookie-preferences-choice strong { display: block; margin-bottom: 5px; color: #31566c; font-size: .95rem; }
.cookie-preferences-choice small { display: block; color: #738793; font-size: .83rem; line-height: 1.6; }
.cookie-preferences-choice input { flex: 0 0 24px; width: 24px; height: 24px; accent-color: var(--ao-blue-dark); }
.cookie-preferences .cookie-preferences-note { margin: 19px 0 12px; font-size: .8rem; }
.cookie-preferences-actions { justify-content: flex-end; margin-top: 25px; }
.cookie-consent button:focus-visible,.cookie-preferences button:focus-visible,.cookie-preferences input:focus-visible,.cookie-preferences-link:focus-visible,.cookie-policy-preferences:focus-visible,.consent-media-message button:focus-visible { outline: 3px solid #3e6d84; outline-offset: 3px; }
.cookie-no-script { margin: 0; padding: 16px 24px; background: #edf4f7; color: #33576a; text-align: center; }
.consent-media { position: relative; display: grid; place-items: center; width: 100%; min-height: 250px; aspect-ratio: 16 / 9; margin-block: 20px; border: 1px solid #d4e4ed; border-radius: 8px; background: #edf5f9; overflow: hidden; }
.consent-media-message { max-width: 480px; padding: 28px; text-align: center; }
.consent-media-message[hidden] { display: none; }
.imported-content .consent-media-message h2 { margin: 0 0 14px; color: var(--ao-blue-dark); font-family: "Lato", Arial, sans-serif; font-size: 1.3rem; }
.consent-media-message p { color: #637d8c; font-size: .95rem; line-height: 1.6; }
.imported-content .consent-media > iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; border: 0; }
@media (max-width: 991.98px) {
    .cookie-consent-inner { grid-template-columns: 1fr; gap: 16px; }
    .cookie-consent-actions { justify-content: flex-end; }
}
@media (max-width: 575.98px) {
    .cookie-consent { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-height: calc(100dvh - 20px - env(safe-area-inset-bottom)); padding: 18px; }
    .cookie-consent-actions,.cookie-preferences-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cookie-consent-accept { grid-column: 1 / -1; }
    .cookie-preferences-inner { padding: 27px 21px 22px; }
    .cookie-preferences-choice { gap: 12px; }
    .cookie-preferences-actions button { padding-inline: 8px; }
    .consent-media { min-height: 240px; }
    .consent-media-message { padding: 22px 18px; }
}
