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

.cookie-consent-shell {
    position: relative;
    z-index: 9998;
}

.cookie-consent-manage-button {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(30, 31, 54, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #1e1f36;
    box-shadow: 0 18px 40px rgba(31, 38, 135, 0.14);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-consent-manage-button:hover,
.cookie-consent-manage-button:focus-visible {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(31, 38, 135, 0.18);
}

.cookie-consent-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(460px, calc(100vw - 32px));
    padding: 28px 28px 24px;
    border: 1px solid rgba(112, 89, 223, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(18px);
    z-index: 9999;
}

.cookie-consent-banner__close,
.cookie-consent-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(30, 31, 54, 0.1);
    border-radius: 50%;
    background: #ffffff;
    color: #1e1f36;
    font-size: 26px;
    line-height: 1;
}

.cookie-consent-banner__eyebrow {
    margin-bottom: 12px;
    color: #ec167f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cookie-consent-banner h2,
.cookie-consent-modal h2 {
    margin-bottom: 10px;
    color: #1e1f36;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.cookie-consent-banner p,
.cookie-consent-modal p,
.cookie-consent-category p {
    margin-bottom: 0;
    color: #5f657a;
    line-height: 1.7;
}

.cookie-consent-banner__link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    color: #4169e1;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.cookie-consent-banner__actions,
.cookie-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.cookie-consent-banner__actions .cookie-consent-button {
    flex: 1 1 0;
}

.cookie-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.cookie-consent-button--primary {
    border: 1px solid #1e94ff;
    background: #1e94ff;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(30, 148, 255, 0.25);
}

.cookie-consent-button--secondary {
    border: 1px solid rgba(30, 31, 54, 0.18);
    background: #ffffff;
    color: #1e1f36;
    box-shadow: 0 14px 30px rgba(31, 38, 135, 0.12);
}

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

.cookie-consent-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 26, 52, 0.54);
    backdrop-filter: blur(4px);
}

.cookie-consent-modal__dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(31, 38, 135, 0.24);
}

.cookie-consent-modal__header {
    margin-bottom: 24px;
    padding-right: 44px;
}

.cookie-consent-modal__categories {
    display: grid;
    gap: 16px;
}

.cookie-consent-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(30, 31, 54, 0.08);
    border-radius: 18px;
    background: #fafbff;
}

.cookie-consent-category h3 {
    margin-bottom: 6px;
    color: #1e1f36;
    font-size: 20px;
    font-weight: 700;
}

.cookie-consent-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    color: #1e1f36;
    font-weight: 600;
}

.cookie-consent-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-toggle__slider {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 32px;
    border-radius: 999px;
    background: #d7def4;
    transition: background 0.2s ease;
}

.cookie-consent-toggle__slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider {
    background: linear-gradient(90deg, #7059df 0%, #ec167f 100%);
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider::before {
    transform: translateX(24px);
}

.cookie-consent-toggle input:disabled + .cookie-consent-toggle__slider {
    background: linear-gradient(90deg, rgba(112, 89, 223, 0.36) 0%, rgba(236, 22, 127, 0.42) 100%);
}

.cookie-consent-toggle__label {
    font-size: 14px;
}

.cookie-consent-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(30, 31, 54, 0.08);
}

@media only screen and (max-width: 767px) {
    .cookie-consent-manage-button {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: 70px;
        width: auto;
        padding: 22px 18px 18px;
        border-radius: 20px;
    }

    .cookie-consent-banner h2,
    .cookie-consent-modal h2 {
        font-size: 24px;
    }

    .cookie-consent-banner__actions,
    .cookie-consent-modal__actions,
    .cookie-consent-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-category {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        padding: 22px 16px;
        border-radius: 20px;
    }
}
