/* =====================================================
   YETU A YETU — SISTEMA DE COOKIES
===================================================== */

.cookie-banner,
.cookie-preferences {
    font-family: inherit;
    box-sizing: border-box;
}

.cookie-banner *,
.cookie-preferences * {
    box-sizing: border-box;
}

.cookie-banner {
    position: fixed;
    z-index: 99990;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e9e5ef;
    border-radius: 16px;
    box-shadow: 0 12px 45px rgba(20, 10, 35, .16);
    display: none;
}

.cookie-banner.is-visible {
    display: block;
    animation: cookieSlideUp .35s ease;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2eafa;
    color: #7543a6;
    border-radius: 14px;
    font-size: 23px;
}

.cookie-text {
    flex: 1;
    min-width: 180px;
}

.cookie-text h2 {
    margin: 0 0 7px;
    color: #21182b;
    font-size: 17px;
    font-weight: 700;
}

.cookie-text p {
    margin: 0;
    color: #6d6873;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-text a {
    color: #7543a6;
    font-weight: 600;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.cookie-btn {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-reject {
    color: #514b59;
    background: #fff;
    border-color: #ded9e4;
}

.cookie-reject:hover {
    background: #f7f5f9;
}

.cookie-customize {
    color: #7543a6;
    background: #f5effb;
}

.cookie-customize:hover {
    background: #eee3f8;
}

.cookie-accept {
    color: #fff;
    background: #7543a6;
}

.cookie-accept:hover {
    background: #60328f;
}

/* JANELA DE PREFERÊNCIAS */

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.cookie-preferences.is-visible {
    display: flex;
}

.cookie-preferences-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 22, .62);
}

.cookie-preferences-panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 27px;
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .2);
    animation: cookiePanelIn .25s ease;
}

.cookie-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.cookie-preferences-label {
    color: #7543a6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cookie-preferences-header h2 {
    margin: 6px 0 0;
    color: #21182b;
    font-size: 21px;
}

.cookie-close {
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 9px;
    background: #f3f0f6;
    color: #514b59;
    cursor: pointer;
}

.cookie-preferences-description {
    margin: 15px 0 20px;
    color: #77717e;
    font-size: 13px;
    line-height: 1.6;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 0;
    border-top: 1px solid #eeeaf1;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h3 {
    margin: 0 0 5px;
    color: #302738;
    font-size: 14px;
}

.cookie-option-info p {
    margin: 0;
    color: #77717e;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-always-active {
    flex-shrink: 0;
    color: #39815d;
    font-size: 11px;
    font-weight: 700;
}

/* INTERRUPTORES */

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 43px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: #d8d4dd;
    border-radius: 30px;
    cursor: pointer;
    transition: .2s;
}

.cookie-slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.cookie-switch input:checked + .cookie-slider {
    background: #7543a6;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(19px);
}

.cookie-switch input:focus-visible + .cookie-slider {
    outline: 3px solid rgba(117, 67, 166, .25);
    outline-offset: 3px;
}

.cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 20px;
    border-top: 1px solid #eeeaf1;
}

/* LINK PARA REABRIR AS PREFERÊNCIAS */

.cookie-settings-link {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cookie-settings-link:hover {
    color: #7543a6;
    text-decoration: underline;
}

/* ANIMAÇÕES */

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cookiePanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TELEMÓVEIS */

@media (max-width: 760px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
        border-radius: 14px;
    }

    .cookie-banner-content {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .cookie-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 19px;
    }

    .cookie-text {
        flex: 1;
        min-width: 0;
    }

    .cookie-text h2 {
        font-size: 15px;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-actions .cookie-accept {
        grid-column: 1 / -1;
    }

    .cookie-btn {
        min-height: 43px;
        padding: 0 9px;
        font-size: 11px;
    }

    .cookie-preferences-panel {
        padding: 21px;
    }

    .cookie-preferences-header h2 {
        font-size: 19px;
    }

    .cookie-preferences-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-preferences-footer .cookie-btn {
        width: 100%;
    }
}