.cookie-consent {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3000;
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
    display: none !important;
}

.cookie-consent-card {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(11,35,56,.10);
    box-shadow: 0 24px 70px rgba(8,24,39,.18);
    backdrop-filter: blur(16px);
}

.cookie-consent-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-consent-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #0b2338;
    color: #fff;
    font-size: 1.35rem;
}

.cookie-consent h3,
.cookie-modal h3 {
    margin: 0 0 8px;
    color: #0b2338;
    font-weight: 800;
}

.cookie-consent p {
    max-width: 720px;
    margin: 0;
    color: #556575;
    line-height: 1.65;
}

.cookie-consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cookie-consent-links a {
    color: #ba0101;
    font-weight: 700;
    font-size: .92rem;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 25, 39, .56);
    backdrop-filter: blur(6px);
}

.cookie-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 760px);
    max-height: min(90vh, 760px);
    overflow: auto;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(11,35,56,.10);
    box-shadow: 0 30px 90px rgba(8,24,39,.30);
}

.cookie-modal-header,
.cookie-modal-footer {
    padding: 22px;
}

.cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(11,35,56,.08);
}

.cookie-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #f2f6fb;
    color: #0b2338;
}

.cookie-modal-body {
    padding: 22px;
    display: grid;
    gap: 14px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(11,35,56,.08);
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    cursor: pointer;
}

.cookie-option strong {
    display: block;
    color: #0b2338;
    font-weight: 800;
    margin-bottom: 5px;
}

.cookie-option p {
    margin: 0;
    color: #637487;
    line-height: 1.55;
}

.cookie-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch {
    width: 58px;
    height: 32px;
    min-width: 58px;
    border-radius: 999px;
    background: #d8e1ea;
    position: relative;
    font-size: 0;
    transition: .2s ease;
}

.cookie-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transition: .2s ease;
}

.cookie-option input:checked + .cookie-switch {
    background: #ba0101;
}

.cookie-option input:checked + .cookie-switch::after {
    transform: translateX(26px);
}

.cookie-switch.locked {
    width: auto;
    height: auto;
    padding: 7px 12px;
    background: #0b2338;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

.cookie-switch.locked::after {
    display: none;
}

.cookie-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(11,35,56,.08);
}

.cookie-preferences-floating {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2200;
    display: none;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #0b2338;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(8,24,39,.22);
}

.cookie-preferences-floating.is-visible {
    display: inline-flex;
}

@media (max-width: 991.98px) {
    .cookie-consent-card {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-consent-card {
        padding: 16px;
        border-radius: 22px;
    }

    .cookie-consent-main {
        flex-direction: column;
    }

    .cookie-modal {
        padding: 10px;
    }

    .cookie-option {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-modal-footer .btn {
        width: 100%;
    }
}