.consent-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid rgba(31, 25, 84, 0.14);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(31, 25, 84, 0.18);
}

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

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

.consent-banner__content {
    max-width: 680px;
}

.consent-banner__title {
    margin: 0 0 8px;
    color: #1F1954;
    font-size: 1.15rem;
    font-weight: 700;
}

.consent-banner__text {
    margin: 0;
    color: #4b4b59;
    font-size: 0.94rem;
    line-height: 1.6;
}

.consent-banner__text a {
    color: #2E2F79;
    font-weight: 600;
}

.consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.consent-button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 9px;
    border: 1px solid #2E2F79;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.consent-button--primary {
    background: #2E2F79;
    color: #ffffff;
}

.consent-button--secondary {
    background: #ffffff;
    color: #2E2F79;
}

.consent-button--plain {
    background: transparent;
    border-color: transparent;
    color: #4D539F;
}

.consent-preferences {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.consent-preferences__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 45, 0.55);
}

.consent-preferences__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(18, 16, 45, 0.28);
}

.consent-preferences__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #ececf3;
}

.consent-preferences__header h2 {
    margin: 0 0 6px;
    color: #1F1954;
    font-size: 1.3rem;
}

.consent-preferences__header p {
    margin: 0;
    color: #60606d;
    line-height: 1.5;
    font-size: 0.92rem;
}

.consent-preferences__close {
    border: 0;
    background: transparent;
    color: #1F1954;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

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

.consent-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ececf3;
}

.consent-option:last-child {
    border-bottom: 0;
}

.consent-option__copy h3 {
    margin: 0 0 5px;
    color: #1F1954;
    font-size: 1rem;
}

.consent-option__copy p {
    margin: 0;
    color: #646472;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-option__toggle {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex: 0 0 auto;
    accent-color: #2E2F79;
}

.consent-preferences__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px 24px;
    border-top: 1px solid #ececf3;
}

.site-footer__cookie-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }

    .consent-banner__inner {
        display: block;
    }

    .consent-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .consent-button {
        width: 100%;
    }

    .consent-preferences {
        align-items: flex-end;
        padding: 0;
    }

    .consent-preferences__dialog {
        width: 100%;
        max-height: 90vh;
        border-radius: 18px 18px 0 0;
    }

    .consent-preferences__footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}
