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

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

.cookie-consent-banner,
.cookie-consent-dialog,
.cookie-consent-button,
.cookie-consent-switch {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.cookie-consent-banner {
    position: fixed;
    z-index: 140;
    right: clamp(16px, 3vw, 40px);
    bottom: clamp(16px, 3vw, 32px);
    left: clamp(16px, 3vw, 40px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    width: min(1180px, calc(100% - clamp(32px, 6vw, 80px)));
    margin-inline: auto;
    padding: 22px 24px;
    color: #13233d;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(17, 38, 67, 0.13);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(8, 24, 47, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: cookie-consent-enter 280ms ease-out both;
}

.cookie-consent-kicker {
    display: block;
    margin-bottom: 5px;
    color: #a87622;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.cookie-consent-banner h2,
.cookie-consent-dialog h2 {
    margin: 0;
    color: #10294c;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 700;
    line-height: 1.2;
}

.cookie-consent-banner p,
.cookie-consent-dialog p {
    margin: 8px 0 0;
    color: #5f6875;
    font-size: 0.86rem;
    line-height: 1.65;
}

.cookie-consent-banner a {
    color: #10294c;
    font-weight: 650;
    text-underline-offset: 3px;
}

.cookie-consent-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 9px;
    min-width: 390px;
}

.cookie-consent-banner-actions .is-text {
    grid-column: 1 / -1;
}

.cookie-consent-button {
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cookie-consent-button:hover {
    transform: translateY(-1px);
}

.cookie-consent-button:focus-visible,
.cookie-consent-close:focus-visible,
.cookie-consent-switch input:focus-visible + .cookie-consent-switch-control,
.footer-cookie-settings:focus-visible {
    outline: 3px solid rgba(196, 144, 49, 0.35);
    outline-offset: 3px;
}

.cookie-consent-button.is-primary {
    color: #fff;
    background: #10294c;
    border-color: #10294c;
}

.cookie-consent-button.is-primary:hover {
    background: #183b68;
    border-color: #183b68;
}

.cookie-consent-button.is-secondary {
    color: #10294c;
    background: #fff;
    border-color: rgba(16, 41, 76, 0.22);
}

.cookie-consent-button.is-secondary:hover {
    border-color: #b4842f;
    background: #fcf8f0;
}

.cookie-consent-button.is-text {
    min-height: 36px;
    padding-block: 7px;
    color: #647083;
    background: transparent;
    border-color: transparent;
}

.cookie-consent-button.is-text:hover {
    color: #10294c;
    background: rgba(16, 41, 76, 0.06);
}

.cookie-consent-modal {
    position: fixed;
    z-index: 170;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

.cookie-consent-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(7, 20, 39, 0.62);
    border: 0;
    cursor: default;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cookie-consent-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: clamp(22px, 4vw, 34px);
    color: #13233d;
    background: #fff;
    border: 1px solid rgba(17, 38, 67, 0.14);
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(4, 17, 35, 0.32);
    animation: cookie-consent-dialog-enter 240ms ease-out both;
}

.cookie-consent-dialog-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-consent-close {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    color: #10294c;
    background: #f5f3ef;
    border: 1px solid rgba(16, 41, 76, 0.12);
    border-radius: 50%;
    font: inherit;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.cookie-consent-close:hover {
    background: #ede7dc;
    transform: rotate(4deg);
}

.cookie-consent-intro {
    max-width: 600px;
}

.cookie-consent-form {
    margin-top: 24px;
    border-top: 1px solid #e5e0d6;
}

.cookie-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e0d6;
}

.cookie-consent-category strong {
    display: block;
    color: #10294c;
    font-size: 0.94rem;
    font-weight: 700;
}

.cookie-consent-category p {
    max-width: 500px;
    margin-top: 5px;
    font-size: 0.8rem;
}

.cookie-consent-switch {
    position: relative;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #566274;
    font-size: 0.72rem;
    font-weight: 650;
    cursor: pointer;
}

.cookie-consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-switch-control {
    position: relative;
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
    background: #d7dbe1;
    border: 1px solid rgba(16, 41, 76, 0.12);
    border-radius: 999px;
    transition: background-color 180ms ease, border-color 180ms ease;
}

.cookie-consent-switch-control::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    content: "";
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(7, 20, 39, 0.2);
    transition: transform 180ms ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-control {
    background: #b4842f;
    border-color: #b4842f;
}

.cookie-consent-switch input:checked + .cookie-consent-switch-control::before {
    transform: translateX(20px);
}

.cookie-consent-switch.is-locked {
    cursor: default;
    opacity: 0.78;
}

.cookie-consent-switch.is-locked .cookie-consent-switch-control {
    background: #10294c;
    border-color: #10294c;
}

.cookie-consent-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 22px;
}

.footer-cookie-settings {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
    opacity: 0.76;
    transition: color 180ms ease, opacity 180ms ease;
}

.footer-cookie-settings:hover {
    color: #d0a14b;
    opacity: 1;
}

@keyframes cookie-consent-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cookie-consent-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 820px) {
    .cookie-consent-banner {
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: stretch;
    }

    .cookie-consent-banner-actions {
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .cookie-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        padding: 18px;
        border-radius: 12px;
    }

    .cookie-consent-banner-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent-banner-actions .is-text {
        grid-column: auto;
    }

    .cookie-consent-category {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 17px 0;
    }

    .cookie-consent-switch {
        justify-content: space-between;
        width: 100%;
    }

    .cookie-consent-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent-dialog-actions .is-primary {
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-consent-dialog {
        animation: none;
    }

    .cookie-consent-button,
    .cookie-consent-close,
    .cookie-consent-switch-control,
    .cookie-consent-switch-control::before {
        transition: none;
    }
}
