.cookie-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10000;
    width: 100%;
    padding: 0 16px 14px;
    color: #142033;
    font-family: inherit;
    pointer-events: none;
}

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

.cookie-consent__banner,
.cookie-consent__modal {
    position: relative;
    border: 1px solid rgba(18, 39, 72, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(2, 8, 23, 0.18);
    pointer-events: auto;
}

.cookie-consent__banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(1120px, 100%);
    margin: 0 auto;
    overflow: hidden;
    padding: 15px 18px 15px 22px;
}

.cookie-consent__banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #1170ff, #2bd6ff 54%, #31ff91);
}

.cookie-consent__copy {
    display: grid;
    gap: 0;
    min-width: 0;
    padding-right: 0;
}

.cookie-consent__banner h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.cookie-consent h2 {
    margin: 0;
    color: #101828;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
}

.cookie-consent p {
    margin: 0;
    color: #27364a;
    font-size: 13px;
    line-height: 1.42;
}

.cookie-consent a {
    color: #116be9;
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
}

.cookie-consent__actions--modal {
    margin-top: 20px;
}

.cookie-consent__button {
    min-height: 36px;
    border: 1px solid rgba(17, 112, 255, 0.16);
    border-radius: 8px;
    background: rgba(17, 112, 255, 0.06);
    color: #17314f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    padding: 9px 13px;
    white-space: nowrap;
}

.cookie-consent__button:hover {
    background: #e9f1fc;
}

.cookie-consent__button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.cookie-consent__button--primary {
    border-color: #116be9;
    background: linear-gradient(90deg, #1170ff, #0b62e8);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 112, 255, 0.26);
}

.cookie-consent__banner .cookie-consent__button--primary {
    order: 3;
}

.cookie-consent__button--primary:hover {
    background: linear-gradient(90deg, #0f66ea, #0a55d8);
}

.cookie-consent__button--ghost {
    border-color: transparent;
    background: transparent;
    color: #116be9;
}

.cookie-consent__icon-button {
    position: absolute;
    top: 7px;
    right: 7px;
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #748198;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.cookie-consent__icon-button:hover {
    background: #e0e9f5;
}

.cookie-consent__banner .cookie-consent__icon-button {
    display: none;
}

.cookie-consent__backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(7, 18, 36, 0.42);
    pointer-events: auto;
}

.cookie-consent__modal {
    width: min(560px, calc(100vw - 32px));
    margin: 0 auto 14px;
    padding: 24px;
}

.cookie-consent__modal .cookie-consent__icon-button {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: #eef3f9;
    font-size: 24px;
}

.cookie-consent__modal h2 {
    padding-right: 38px;
}

.cookie-consent__options {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid rgba(18, 39, 72, 0.1);
    border-radius: 12px;
    background: #f7faff;
    padding: 14px;
}

.cookie-consent__option input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #116be9;
}

.cookie-consent__option strong,
.cookie-consent__option small {
    display: block;
}

.cookie-consent__option strong {
    color: #172033;
    font-size: 14px;
    line-height: 1.35;
}

.cookie-consent__option small {
    margin-top: 4px;
    color: #5d6b7d;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-consent__option--disabled {
    opacity: 0.72;
}

.cookie-consent__status {
    min-height: 18px;
    margin-top: 12px;
    color: #b42318;
    font-size: 13px;
}

.cookie-settings-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    padding: 0;
    text-align: left;
}

.cookie-settings-link:hover {
    color: #2bd6ff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 0 10px 10px;
    }

    .cookie-consent__banner,
    .cookie-consent__modal {
        border-radius: 8px;
    }

    .cookie-consent__banner,
    .cookie-consent__modal {
        padding: 16px;
    }

    .cookie-consent__banner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-top: 18px;
    }

    .cookie-consent p {
        font-size: 12px;
        line-height: 1.45;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-consent__button {
        width: 100%;
    }

    .cookie-consent__banner .cookie-consent__button--primary {
        order: 0;
    }
}
