/* ===========================================
   CONSENTIMENTO DE COOKIES
   =========================================== */

/* Popup principal */
.consent-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 20px;
    font-family: inherit;
    animation: consent-slidein 0.35s ease;
}

.consent-popup.consent-hidden {
    display: none;
}

@keyframes consent-slidein {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabeçalho */
.consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.consent-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.consent-minimize {
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.consent-minimize:hover {
    background: #F3F4F6;
    color: #374151;
}

/* Texto */
.consent-text {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.55;
    margin: 0 0 16px;
}

.consent-text a {
    color: var(--color-primary, #0EA5E9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-text a:hover {
    opacity: 0.8;
}

/* Botões */
.consent-actions {
    display: flex;
    gap: 10px;
}

.consent-btn-reject {
    flex: 1;
    padding: 9px 16px;
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: center;
}

.consent-btn-reject:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
}

.consent-btn-accept {
    flex: 1;
    padding: 9px 16px;
    background: var(--color-primary, #F59E0B);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-align: center;
}

.consent-btn-accept:hover {
    opacity: 0.88;
}

/* Botão flutuante (minimizado) */
.consent-reopen-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    width: 48px;
    height: 48px;
    background: var(--color-primary, #F59E0B);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.consent-reopen-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.consent-reopen-btn.consent-hidden {
    display: none;
}

/* Mobile */
@media (max-width: 480px) {
    .consent-popup {
        bottom: 12px;
        left: 12px;
        width: calc(100vw - 24px);
        max-width: none;
    }

    .consent-reopen-btn {
        bottom: 12px;
        left: 12px;
    }
}
