.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 32px));
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(12, 33, 58, 0.18);
    z-index: 1000;
    overflow: hidden;
}

.cookie-consent-banner.is-visible {
    display: block;
}

.cookie-consent-banner__title {
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    background: #0c213a;
}

.cookie-consent-banner__body {
    padding: 20px;
}

.cookie-consent-banner__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #373737;
}

.cookie-consent-banner__text a {
    color: #3fb6ff;
    text-decoration: underline;
}

.cookie-consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.cookie-consent-btn:hover {
    opacity: 0.9;
}

.cookie-consent-btn--primary {
    color: #fff;
    background: #3fb6ff;
}

.cookie-consent-btn--secondary {
    color: #0c213a;
    background: #eef5fb;
    border-color: #d7e6f2;
}

.cookie-consent-btn--ghost {
    color: #0c213a;
    background: transparent;
    border-color: #d7e6f2;
}

.cookie-consent-settings {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.cookie-consent-settings.is-open {
    display: block;
}

.cookie-consent-settings__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 33, 58, 0.55);
}

.cookie-consent-settings__dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(12, 33, 58, 0.24);
}

.cookie-consent-settings__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 0;
}

.cookie-consent-settings__title {
    margin: 0;
    font-size: 22px;
    color: #0c213a;
}

.cookie-consent-settings__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #eef5fb;
    color: #0c213a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent-settings__body {
    padding: 16px 20px 20px;
}

.cookie-consent-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.cookie-consent-category:last-child {
    border-bottom: none;
}

.cookie-consent-category__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #0c213a;
}

.cookie-consent-category__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5f6b7a;
}

.cookie-consent-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-toggle__slider {
    position: absolute;
    inset: 0;
    background: #d7e6f2;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.cookie-consent-toggle__slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-consent-toggle input:checked + .cookie-consent-toggle__slider {
    background: #3fb6ff;
}

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

.cookie-consent-toggle input:disabled + .cookie-consent-toggle__slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-consent-settings__footer {
    padding: 0 20px 20px;
}

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

@media (max-width: 640px) {
    .cookie-consent-banner__actions {
        flex-direction: column;
    }

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

.form-consent {
    margin: 12px 0;
}

.form-consent__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: #373737;
    cursor: pointer;
}

.form-consent__item input {
    margin-top: 3px;
    flex-shrink: 0;
}

.form-consent__item a {
    color: #3fb6ff;
    text-decoration: underline;
}

button[type="submit"]:disabled,
input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
