.cookie-consent-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2500;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(30, 54, 92, 0.18);
    border-radius: 16px;
    background: #fff;
    color: #26364d;
    box-shadow: 0 20px 55px rgba(22, 38, 63, 0.24);
}

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

.cookie-consent-banner h2,
.cookie-consent-modal h2 {
    margin: 0 0 8px;
    color: #18345f;
    font-size: 20px;
}

.cookie-consent-banner p,
.cookie-consent-modal p {
    margin: 0;
    line-height: 1.55;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cookie-consent-button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #244b83;
    border-radius: 999px;
    background: #fff;
    color: #244b83;
    cursor: pointer;
    font-weight: 700;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
    background: #eef4fc;
}

.cookie-consent-button.primary {
    background: #244b83;
    color: #fff;
}

.cookie-consent-button.primary:hover,
.cookie-consent-button.primary:focus-visible {
    background: #18345f;
}

.cookie-consent-policy-link {
    color: #244b83;
    font-weight: 700;
    text-decoration: underline;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 28, 50, 0.58);
}

.cookie-consent-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.cookie-consent-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #f8fbff;
}

.cookie-consent-option strong {
    display: block;
    margin-bottom: 3px;
    color: #18345f;
}

.cookie-consent-option small {
    display: block;
    color: #617087;
    line-height: 1.45;
}

.cookie-consent-switch {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: #244b83;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
}

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

@media (max-width: 575px) {
    .cookie-consent-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        padding: 15px;
    }

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

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

    .cookie-consent-modal {
        align-items: flex-end;
        padding: 10px;
    }

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