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

.cookie-consent-banner,
.cookie-consent-modal {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2a33;
}

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

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

.cookie-consent-banner {
    position: fixed;
    z-index: 2147483000;
    right: 24px;
    bottom: 24px;
    width: calc(100% - 48px);
    max-width: 640px;
    padding: 25px 28px;
    background: #ffffff;
    border: 1px solid #d8e2e8;
    border-top: 4px solid #1686c5;
    box-shadow: 0 16px 46px rgba(20, 48, 64, 0.24);
}

.cookie-consent-banner__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #1d2a32;
}

.cookie-consent-banner__text {
    margin: 0;
    color: #576873;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-banner__text a,
.cookie-consent-modal a {
    color: #0878b8;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.cookie-consent-button {
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid #1686c5;
    border-radius: 3px;
    background: #ffffff;
    color: #0878b8;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus {
    opacity: 0.88;
}

.cookie-consent-button--primary {
    border-color: #1686c5;
    background: #1686c5;
    color: #ffffff;
}

.cookie-consent-button--secondary {
    border-color: #aebdc6;
    color: #40535f;
}

.cookie-consent-button:focus-visible,
.cookie-consent-switch input:focus-visible + .cookie-consent-switch__slider,
.cookie-settings-link:focus-visible {
    outline: 3px solid rgba(22, 134, 197, 0.25);
    outline-offset: 3px;
}

.cookie-consent-modal {
    position: fixed;
    z-index: 2147483001;
    inset: 0;
    padding: 20px;
}

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 34, 44, 0.7);
}

.cookie-consent-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 690px;
    max-height: calc(100vh - 40px);
    margin: 0 auto;
    overflow-y: auto;
    background: #ffffff;
    border-top: 4px solid #1686c5;
    box-shadow: 0 18px 60px rgba(12, 31, 42, 0.38);
}

.cookie-consent-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    border-bottom: 1px solid #e3eaee;
}

.cookie-consent-modal__title {
    margin: 0;
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
}

.cookie-consent-modal__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #40535f;
    font: inherit;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent-modal__body {
    padding: 23px 26px 8px;
}

.cookie-consent-modal__intro {
    margin: 0 0 18px;
    color: #576873;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px;
    padding: 19px 0;
    border-top: 1px solid #e3eaee;
}

.cookie-consent-category:first-of-type {
    border-top: 0;
}

.cookie-consent-category__title {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.cookie-consent-category__text {
    margin: 0;
    color: #637680;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent-category__required {
    display: inline-block;
    padding: 7px 10px;
    background: #eaf3f8;
    color: #466272;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.cookie-consent-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 27px;
}

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

.cookie-consent-switch__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #aebbc2;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-consent-switch__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__slider {
    background: #1686c5;
}

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

.cookie-consent-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 19px 26px 25px;
    border-top: 1px solid #e3eaee;
}

#footer .cookie-settings-link,
.cookie-settings-link {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: inherit !important;
    text-align: left !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 20px;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .cookie-consent-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 21px 20px;
    }

    .cookie-consent-banner__actions,
    .cookie-consent-modal__footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-consent-button {
        width: 100%;
    }

    .cookie-consent-modal {
        padding: 10px;
    }

    .cookie-consent-modal__dialog {
        max-height: calc(100vh - 20px);
    }

    .cookie-consent-modal__header,
    .cookie-consent-modal__body,
    .cookie-consent-modal__footer {
        padding-left: 19px;
        padding-right: 19px;
    }

    .cookie-consent-category {
        gap: 14px;
    }
}
