﻿.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 2000;
}

.cookie-banner-content {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}



.cookie-banner-text {
    min-width: 0;
    grid-column: 1;
}

    .cookie-banner-text h2 {
        margin: 0 0 0.35rem;
        font-size: 1rem;
        font-weight: 900;
    }

    .cookie-banner-text p {
        max-width: 680px;
        margin: 0;
        color: #495057;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .cookie-banner-text a {
        color: #212529;
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 0.18rem;
    }

        .cookie-banner-text a:hover,
        .cookie-banner-text a:focus-visible {
            opacity: 0.75;
        }

.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
}

.cookie-button {
    min-width: 105px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .cookie-button:hover {
        transform: translateY(-1px);
    }

    .cookie-button:focus-visible {
        outline: 3px solid rgba(33, 37, 41, 0.2);
        outline-offset: 2px;
    }

.cookie-button-primary {
    border: 1px solid #212529;
    background: #212529;
    color: #ffffff;
}

    .cookie-button-primary:hover {
        border-color: #000000;
        background: #000000;
    }

.cookie-button-secondary {
    border: 1px solid #ced4da;
    background: #ffffff;
    color: #212529;
}

    .cookie-button-secondary:hover {
        background: #f8f9fa;
    }

@media (max-width: 767.98px) {
    .cookie-banner {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .cookie-banner-content {
        padding: 1rem;
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 1rem;
        border-radius: 18px;
        max-height: calc(100vh - 1.5rem);
    }

    .cookie-banner-text,
    .cookie-banner-actions,
    .cookie-preferences {
        grid-column: 1;
    }

    .cookie-banner-text h2 {
        font-size: 0.95rem;
    }

    .cookie-banner-text p {
        font-size: 0.88rem;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .cookie-button {
        width: 100%;
        min-width: 0;
        padding: 0.7rem 0.5rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 430px) {
    .cookie-banner-actions {
        grid-template-columns: 1fr;
    }
}

.cookie-preferences {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

    .cookie-preferences[hidden] {
        display: none;
    }

.cookie-preference {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
}

    .cookie-preference strong {
        display: block;
        margin-bottom: .25rem;
    }

    .cookie-preference p {
        margin: 0;
        font-size: .9rem;
        color: #6c757d;
    }

.cookie-switch {
    position: relative;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

    .cookie-switch input {
        display: none;
    }

    .cookie-switch span {
        position: absolute;
        inset: 0;
        background: #ced4da;
        border-radius: 999px;
        transition: .2s;
        cursor: pointer;
    }

        .cookie-switch span::after {
            content: "";
            position: absolute;
            left: 4px;
            top: 4px;
            width: 22px;
            height: 22px;
            background: #fff;
            border-radius: 50%;
            transition: .2s;
        }

    .cookie-switch input:checked + span {
        background: #212529;
    }

        .cookie-switch input:checked + span::after {
            transform: translateX(22px);
        }

#cookieSavePreferences {
    margin-top: 1rem;
}

@media (max-width:767.98px) {

    .cookie-preference {
        align-items: flex-start;
    }
}

.cookie-banner.is-configuring .cookie-banner-actions {
    display: none;
}

.cookie-banner.is-configuring .cookie-preferences {
    margin-top: 0;
}

.cookie-preferences #cookieSavePreferences {
    display: block;
    width: fit-content;
    margin: 1rem 0 0 auto;
}

@media (max-width: 767.98px) {
    .cookie-preferences #cookieSavePreferences {
        width: 100%;
        margin-top: 1rem;
    }
}

.site-footer-legal {
    margin-top: 1.25rem;
    text-align: center;
    font-size: .9rem;
    color: #6c757d;
}

    .site-footer-legal a {
        color: inherit;
        text-decoration: none;
        transition: color .2s ease;
    }

        .site-footer-legal a:hover {
            color: #212529;
        }

    .site-footer-legal span {
        margin: 0 .35rem;
        color: #adb5bd;
    }

@media (max-width:768px) {

    .site-footer-legal {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

        .site-footer-legal span {
            display: none;
        }
}