@font-face {
    font-family: "Lexend";
    src: url("../fonts/lexend/Lexend-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.cookie-consent {
    --cc-primary: #075bc2;
    --cc-primary-dark: #004aad;
    --cc-ink: #102d47;
    --cc-muted: #657b90;
    --cc-line: #cfdae4;
    --cc-accent: #f59e0b;
    position: relative;
    z-index: 10050;
    font-family: "Lexend", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent[hidden],
.cookie-banner[hidden],
.cookie-modal-backdrop[hidden],
.cookie-category-detail[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: min(560px, calc(100% - 44px));
    padding: 23px 24px 20px;
    border: 1px solid rgba(182, 196, 208, .72);
    border-radius: 13px;
    color: var(--cc-ink);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 55px rgba(7, 31, 52, .19);
    animation: cookie-in .25s ease-out both;
}

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-brand { display: flex; align-items: center; margin-bottom: 17px; }
.cookie-banner-brand img { display: block; width: 103px; height: auto; }
.cookie-banner-message { margin: 0; color: #233f58; font-size: 13px; font-weight: 430; line-height: 1.68; }
.cookie-banner-message a { color: var(--cc-ink); font-weight: 650; text-decoration: underline; text-decoration-color: #9db0c0; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 21px; }

.cookie-btn,
.cookie-text-button {
    min-height: 39px;
    padding: 0 17px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color .17s ease, background .17s ease, color .17s ease, box-shadow .17s ease, transform .17s ease;
}
.cookie-btn { border: 1px solid transparent; }
.cookie-btn-choice { color: #fff; background: var(--cc-primary); }
.cookie-btn-choice:hover, .cookie-btn-save:hover { background: var(--cc-primary-dark); box-shadow: 0 8px 18px rgba(0, 74, 173, .20); transform: translateY(-1px); }
.cookie-btn-soft { color: var(--cc-ink); border-color: #d5e0e8; background: #f3f7fa; }
.cookie-btn-soft:hover { border-color: #b9c9d5; background: #eaf1f5; }
.cookie-btn:disabled, .cookie-text-button:disabled { opacity: .58; cursor: wait; transform: none; }
.cookie-btn:focus-visible, .cookie-text-button:focus-visible, .cookie-modal-close:focus-visible, .cookie-category-copy:focus-visible, .cookie-switch-control input:focus-visible + .cookie-switch { outline: 3px solid rgba(37, 99, 235, .22); outline-offset: 2px; }

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 22, 38, .64);
    backdrop-filter: blur(5px);
}

.cookie-modal {
    width: min(760px, 100%);
    min-height: min(590px, calc(100svh - 40px));
    max-height: calc(100svh - 40px);
    overflow-y: auto;
    padding: 28px 30px 25px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 16px;
    color: var(--cc-ink);
    background: linear-gradient(103deg, #f0f4ff 0%, #f8faff 43%, #ffffff 100%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .31);
}

.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.cookie-modal-logo { display: block; width: 87px; height: auto; }
.cookie-modal-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 8px; color: #172c40; background: transparent; cursor: pointer; }
.cookie-modal-close:hover { background: rgba(222, 231, 240, .72); }
.cookie-modal-close svg { width: 20px; height: 20px; }

.cookie-modal-intro { margin-top: 16px; }
.cookie-modal-intro h2 { margin: 0; color: #16354f; font-size: 17px; font-weight: 620; letter-spacing: -.02em; }
.cookie-heading-line { display: block; width: 164px; height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--cc-primary) 0 82%, var(--cc-accent) 82%); }
.cookie-modal-intro p { margin: 12px 0 0; color: var(--cc-muted); font-size: 11px; line-height: 1.55; }

.cookie-category-list { margin-top: 18px; }
.cookie-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    column-gap: 12px;
    min-height: 64px;
    border-bottom: 1px solid rgba(168, 184, 198, .64);
}
.cookie-category-copy { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 19px 2px; border: 0; color: #102b43; background: transparent; font-family: inherit; font-size: 13px; font-weight: 590; text-align: left; cursor: pointer; }
.cookie-category-chevron { flex: 0 0 auto; width: 16px; height: 16px; transition: transform .18s ease; }
.cookie-category-copy[aria-expanded="true"] .cookie-category-chevron { transform: rotate(90deg); }
.cookie-category-state { color: #8193a3; font-size: 8px; font-weight: 680; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.cookie-category-unavailable .cookie-category-copy { color: #536b80; }
.cookie-category-detail { grid-column: 1 / -1; padding: 0 70px 16px 31px; color: #6c8194; font-size: 10px; line-height: 1.55; }

.cookie-switch-control { position: relative; display: block; width: 42px; height: 24px; cursor: pointer; }
.cookie-switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cookie-switch { position: relative; display: block; width: 42px; height: 24px; border-radius: 999px; background: #c9d3dc; transition: background .18s ease; }
.cookie-switch > span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(19, 42, 61, .20); transition: transform .18s ease; }
.cookie-switch-control input:checked + .cookie-switch, .cookie-switch-locked { background: var(--cc-primary); }
.cookie-switch-control input:checked + .cookie-switch > span, .cookie-switch-locked > span { transform: translateX(18px); }
.cookie-switch-disabled { opacity: .76; }

.cookie-modal-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 38px; }
.cookie-modal-links { display: flex; gap: 14px; padding-bottom: 9px; }
.cookie-modal-links a { color: #667d91; font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }
.cookie-modal-actions { display: flex; align-items: center; gap: 10px; }
.cookie-text-button { border: 0; color: #526c82; background: transparent; }
.cookie-text-button:hover { color: var(--cc-primary); }
.cookie-btn-save { min-height: 44px; padding: 0 20px; color: #fff; background: linear-gradient(105deg, var(--cc-primary), var(--cc-primary-dark)); box-shadow: 0 8px 20px rgba(0, 74, 173, .16); }
.cookie-consent-status { min-height: 16px; margin: 8px 0 0; color: #a33a2c; font-size: 10px; text-align: right; }

body.cookie-preferences-open { overflow: hidden; }
.cookie-footer-link { display: inline; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cookie-footer-link:hover { color: var(--cc-primary); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 620px) {
    .cookie-banner { right: 10px; bottom: 10px; left: 10px; width: auto; padding: 20px 18px 17px; }
    .cookie-banner-brand { margin-bottom: 14px; }
    .cookie-banner-message { font-size: 12px; }
    .cookie-banner-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .cookie-btn { width: 100%; padding: 0 9px; }
    .cookie-modal-backdrop { align-items: end; padding: 0; }
    .cookie-modal { width: 100%; min-height: min(620px, 94svh); max-height: 94svh; padding: 23px 18px 19px; border-radius: 17px 17px 0 0; }
    .cookie-category { grid-template-columns: minmax(0, 1fr) 42px; }
    .cookie-category-state { display: none; }
    .cookie-category-detail { padding-right: 8px; padding-left: 31px; }
    .cookie-modal-footer { align-items: stretch; flex-direction: column; margin-top: 26px; }
    .cookie-modal-links { order: 2; justify-content: center; padding: 0; }
    .cookie-modal-actions { display: grid; grid-template-columns: 1fr 1.3fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { animation: none; }
    .cookie-category-chevron, .cookie-switch > span { transition: none; }
}
