.cookie-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 65;
    border: 0;
    border-radius: 999px;
    padding: 0.66rem 1rem;
    background: linear-gradient(130deg, #02b1db, #0186a6);
    color: #fff;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 177, 219, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-fab.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translate(-50%, 14px);
    width: min(980px, 94%);
    z-index: 70;
    border-radius: 18px;
    border: 1px solid rgba(2, 177, 219, 0.22);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 252, 255, 0.98));
    box-shadow: 0 24px 44px rgba(5, 42, 92, 0.2);
    padding: 1rem 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.cookie-banner.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cookie-banner h3 {
    font-family: "Sora", sans-serif;
    color: #062047;
}

.cookie-banner p {
    margin-top: 0.42rem;
    color: #2b425e;
}

.cookie-banner-actions {
    margin-top: 0.82rem;
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.cookie-btn {
    min-width: 160px;
}

.cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 32, 71, 0.38);
    backdrop-filter: blur(2px);
    z-index: 80;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cookie-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal {
    width: min(640px, 94%);
    background: #fff;
    border: 1px solid rgba(2, 177, 219, 0.2);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(7, 25, 61, 0.25);
}

.cookie-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.cookie-modal-head h3 {
    font-family: "Sora", sans-serif;
    color: #062047;
}

.cookie-close {
    border: 0;
    background: rgba(2, 177, 219, 0.12);
    color: #062047;
    width: 36px;
    height: 36px;
    border-radius: 99px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-modal-text {
    margin-top: 0.45rem;
    color: #344b67;
}

.cookie-option {
    margin-top: 0.75rem;
    border: 1px solid rgba(2, 177, 219, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.cookie-option strong {
    color: #062047;
    font-family: "Sora", sans-serif;
}

.cookie-option p {
    margin-top: 0.2rem;
    color: #3a506d;
    font-size: 0.92rem;
}

.cookie-option input[type="checkbox"] {
    width: 21px;
    height: 21px;
    accent-color: #02b1db;
}

.cookie-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.36rem 0.62rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.cookie-pill-fixed {
    background: rgba(255, 204, 7, 0.24);
    color: #7b5a15;
}

.cookie-modal-actions {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.55rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.open-cookies-link {
    border: 0;
    background: transparent;
    color: #02b1db;
    text-decoration: underline;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.25rem;
}

@media (max-width: 760px) {
    .cookie-banner {
        width: 96%;
        bottom: 12px;
        padding: 0.86rem;
    }

    .cookie-banner-actions,
    .cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-btn {
        width: 100%;
        min-width: 0;
    }

    .cookie-option {
        align-items: flex-start;
    }
}
