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

.cookie-consent-banner,
.cookie-consent-modal {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.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;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #d8dbe3;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    color: #252a34;
}

.cookie-consent-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent-banner__content {
    flex: 1 1 auto;
    min-width: 0;
}

.cookie-consent-banner__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.cookie-consent-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4a505c;
}

.cookie-consent-banner__text a,
.cookie-consent-modal a,
.cookie-settings-link {
    color: #c8141d;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent-button {
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid #c8141d;
    border-radius: 6px;
    background: #ffffff;
    color: #c8141d;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.cookie-consent-button:focus-visible,
.cookie-consent-switch input:focus-visible + .cookie-consent-switch__slider,
.cookie-settings-link:focus-visible {
    outline: 3px solid rgba(200, 20, 29, 0.28);
    outline-offset: 2px;
}

.cookie-consent-button--primary {
    background: #c8141d;
    color: #ffffff;
}

.cookie-consent-button--secondary {
    background: #ffffff;
    color: #252a34;
    border-color: #8b909a;
}

.cookie-consent-button--link {
    border-color: transparent;
    background: transparent;
    color: #4a505c;
    text-decoration: underline;
}

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

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.cookie-consent-modal__dialog {
    position: relative;
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
    color: #252a34;
}

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

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

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

.cookie-consent-modal__body {
    padding: 22px 24px 8px;
}

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

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

.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: #59606c;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-consent-category__required {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef0f4;
    color: #59606c;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

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

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

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

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

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

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

.cookie-consent-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 24px 24px;
    border-top: 1px solid #e2e4e9;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 900px) {
    .cookie-consent-banner__inner {
        display: block;
    }

    .cookie-consent-banner__actions {
        margin-top: 18px;
        justify-content: flex-start;
    }
}

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

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

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

    .cookie-consent-modal__dialog {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

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

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