.cookie-consent {
    --cookie-navy: #092643;
    --cookie-blue: #124777;
    --cookie-cyan: #4ebce3;
    --cookie-cyan-strong: #18c3d2;
    --cookie-copy: #555555;
    --cookie-border: #e6e6e6;
    --cookie-muted: #a4a4a4;
    color: var(--cookie-copy);
    font-family: "Avenir Next", Arial, sans-serif;
}

.cookie-consent,
.cookie-consent * {
    box-sizing: border-box;
}

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

body.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent button,
.cookie-settings-link {
    font-family: inherit;
}

.cookie-consent__banner {
    position: fixed;
    z-index: 10500;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex;
    width: calc(100% - 40px);
    max-width: 1280px;
    min-height: 120px;
    align-items: center;
    gap: 32px;
    padding: 16px;
    color: #ffffff;
    background: var(--cookie-navy);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
}

.cookie-consent__banner-copy {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.38;
}

.cookie-consent__text-action,
.cookie-consent__manage,
.cookie-consent__save,
.cookie-consent__inline-link {
    padding: 0;
    color: var(--cookie-blue);
    background: transparent;
    border: 0;
    border-radius: 2px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.cookie-consent__text-action,
.cookie-consent__manage {
    color: var(--cookie-cyan-strong);
}

.cookie-consent__banner-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 32px;
}

.cookie-consent__manage {
    min-height: 44px;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-consent__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    color: var(--cookie-blue);
    background: var(--cookie-cyan);
    border: 1px solid var(--cookie-cyan);
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cookie-consent__primary--banner {
    min-width: 237px;
    font-size: 16px;
}

.cookie-consent__primary:hover {
    background: #68c9eb;
    border-color: #68c9eb;
}

.cookie-consent__primary:active {
    transform: translateY(1px);
}

.cookie-consent button:focus-visible,
.cookie-consent a:focus-visible,
.cookie-settings-link:focus-visible {
    outline: 3px solid #f5be3d;
    outline-offset: 3px;
}

.cookie-consent__modal {
    position: fixed;
    z-index: 10600;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
}

.cookie-consent__dialog {
    position: relative;
    display: flex;
    width: 730px;
    height: 778px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cookie-consent__scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 24px 24px 0;
}

.cookie-consent__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--cookie-blue);
    background: #ffffff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.cookie-consent__close span {
    display: block;
    font-size: 36px;
    font-weight: 300;
    line-height: 0.75;
}

.cookie-consent__header {
    padding-right: 40px;
    box-shadow: none !important;
}

.cookie-consent__title {
    margin: 0 0 16px;
    color: var(--cookie-blue);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.08;
}

.cookie-consent__intro,
.cookie-consent__policy-copy {
    margin: 0;
    color: var(--cookie-copy);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.38;
}

.cookie-consent__policy-copy {
    margin-top: 16px;
    padding-bottom: 16px;
}

.cookie-consent__inline-link {
    font-weight: 500;
}

.cookie-consent__categories {
    border-top: 1px solid var(--cookie-border);
}

.cookie-consent__category {
    border-bottom: 1px solid var(--cookie-border);
}

.cookie-consent__category-row {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookie-consent__accordion-trigger {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--cookie-blue);
    background: transparent;
    border: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.cookie-consent__accordion-icon {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 2px solid var(--cookie-blue);
    border-radius: 50%;
}

.cookie-consent__accordion-icon::before,
.cookie-consent__accordion-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    content: "";
    background: var(--cookie-blue);
    transform: translate(-50%, -50%);
}

.cookie-consent__accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 160ms ease;
}

.cookie-consent__accordion-trigger[aria-expanded="true"] .cookie-consent__accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.cookie-consent__switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cookie-consent__switch--locked {
    cursor: default;
}

.cookie-consent__switch-label {
    color: var(--cookie-copy);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.cookie-consent__switch--locked .cookie-consent__switch-label {
    color: var(--cookie-muted);
}

.cookie-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent__switch-track {
    position: relative;
    display: block;
    width: 52px;
    height: 32px;
    flex: 0 0 52px;
    background: #d2d2d2;
    border: 1px solid #c3c3c3;
    border-radius: 999px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.cookie-consent__switch-track::after {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 16px;
    height: 16px;
    content: "";
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
    transition: left 160ms ease;
}

.cookie-consent__switch input:checked + .cookie-consent__switch-track {
    background: var(--cookie-cyan-strong);
    border-color: var(--cookie-cyan-strong);
}

.cookie-consent__switch input:checked + .cookie-consent__switch-track::after {
    left: 28px;
}

.cookie-consent__switch input:focus-visible + .cookie-consent__switch-track {
    outline: 3px solid #f5be3d;
    outline-offset: 3px;
}

.cookie-consent__category-panel {
    padding: 0 0 16px 44px;
    color: var(--cookie-copy);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42;
}

.cookie-consent__category-panel p {
    margin: 0;
}

.cookie-consent__footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 24px 24px;
    background: #ffffff;
}

.cookie-consent__save {
    min-height: 48px;
    padding: 8px 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-consent__primary--modal {
    width: min(300px, 48vw);
    min-height: 56px;
    padding: 14px 20px;
    font-size: 18px;
}

.cookie-consent__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.cookie-settings-link {
    display: inline;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.footer .link-ft .list .cookie-settings-link {
    width: 50%;
    margin-bottom: 16px;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.footer-main .cookie-settings-link {
    margin-top: 12px;
    color: #ffffff;
}

@media (max-width: 1199px) {
    .cookie-consent__banner {
        gap: 20px;
    }

    .cookie-consent__banner-actions {
        gap: 20px;
    }

    .cookie-consent__primary--banner {
        min-width: 210px;
    }

    .cookie-consent__scroll {
        padding-right: 24px;
        padding-left: 24px;
    }

    .cookie-consent__footer {
        padding: 16px 24px 24px;
    }
}

@media (max-width: 991px) {
    .cookie-consent__banner {
        width: calc(100% - 32px);
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px;
    }

    .cookie-consent__banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cookie-consent__modal {
        align-items: flex-end;
        padding: 12px;
    }

    .cookie-consent__dialog {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .cookie-consent__scroll {
        padding: 42px 24px 0;
    }

    .cookie-consent__close {
        top: 18px;
        right: 18px;
    }

    .cookie-consent__header {
        padding-right: 42px;
    }

    .cookie-consent__title {
        margin-bottom: 24px;
    }

    .cookie-consent__policy-copy {
        margin-top: 24px;
        padding-bottom: 24px;
    }

    .cookie-consent__category-row {
        min-height: 92px;
    }

    .cookie-consent__accordion-trigger {
        gap: 16px;
    }

    .cookie-consent__accordion-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .cookie-consent__category-panel {
        padding: 0 0 24px 52px;
    }

    .cookie-consent__footer {
        gap: 22px;
        padding: 24px;
    }

    .cookie-consent__primary--modal {
        min-height: 64px;
    }
}

@media (max-width: 640px) {
    .cookie-consent__banner {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        padding: 16px;
    }

    .cookie-consent__banner-copy {
        font-size: 14px;
        line-height: 1.45;
    }

    .cookie-consent__banner-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-consent__manage,
    .cookie-consent__primary--banner {
        width: 100%;
        min-width: 0;
    }

    .cookie-consent__modal {
        padding: 0;
    }

    .cookie-consent__dialog {
        width: 100%;
        max-width: none;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
    }

    .cookie-consent__scroll {
        padding: 32px 16px 0;
    }

    .cookie-consent__close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
    }

    .cookie-consent__close span {
        font-size: 44px;
    }

    .cookie-consent__header {
        padding-right: 38px;
    }

    .cookie-consent__title {
        margin-bottom: 20px;
        font-size: 34px;
    }

    .cookie-consent__intro,
    .cookie-consent__policy-copy {
        font-size: 16px;
        line-height: 1.5;
    }

    .cookie-consent__category-row {
        min-height: 86px;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 16px 0;
    }

    .cookie-consent__accordion-trigger {
        width: 100%;
        gap: 12px;
        padding: 0;
        font-size: 19px;
    }

    .cookie-consent__accordion-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .cookie-consent__accordion-icon::before,
    .cookie-consent__accordion-icon::after {
        width: 15px;
    }

    .cookie-consent__switch {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
    }

    .cookie-consent__switch-label {
        font-size: 16px;
    }

    .cookie-consent__switch-track {
        width: 52px;
        height: 32px;
        flex-basis: 52px;
    }

    .cookie-consent__switch-track::after {
        left: 6px;
        width: 16px;
        height: 16px;
    }

    .cookie-consent__switch input:checked + .cookie-consent__switch-track::after {
        left: 28px;
    }

    .cookie-consent__category-panel {
        padding: 0 0 20px;
        font-size: 16px;
        line-height: 1.5;
    }

    .cookie-consent__footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--cookie-border);
    }

    .cookie-consent__save,
    .cookie-consent__primary--modal {
        width: 100%;
        min-height: 50px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent *,
    .cookie-consent *::before,
    .cookie-consent *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
