/* Estilos do Banner de Cookies LGPD - Glassmorphism Moderno e Acessível */
:root {
    --lgpd-bg: rgba(255, 255, 255, 0.94);
    --lgpd-border: rgba(226, 232, 240, 0.9);
    --lgpd-shadow: rgba(15, 23, 42, 0.15);
    --lgpd-text-title: #0f172a;
    --lgpd-text-desc: #334155;
    --lgpd-btn-primary-bg: #10b981;
    --lgpd-btn-primary-hover: #059669;
    --lgpd-btn-primary-text: #ffffff;
    --lgpd-btn-secondary-bg: #f1f5f9;
    --lgpd-btn-secondary-hover: #e2e8f0;
    --lgpd-btn-secondary-text: #1e293b;
    --lgpd-switch-bg: #cbd5e1;
    --lgpd-switch-active: #10b981;
    --lgpd-badge-bg: #e2e8f0;
    --lgpd-badge-text: #475569;
}

@media (prefers-color-scheme: dark) {
    :root {
        --lgpd-bg: rgba(18, 40, 32, 0.96);
        --lgpd-border: rgba(255, 255, 255, 0.12);
        --lgpd-shadow: rgba(0, 0, 0, 0.5);
        --lgpd-text-title: #f8fafc;
        --lgpd-text-desc: #cbd5e1;
        --lgpd-btn-primary-bg: #10b981;
        --lgpd-btn-primary-hover: #34d399;
        --lgpd-btn-primary-text: #062b1e;
        --lgpd-btn-secondary-bg: rgba(255, 255, 255, 0.08);
        --lgpd-btn-secondary-hover: rgba(255, 255, 255, 0.15);
        --lgpd-btn-secondary-text: #f1f5f9;
        --lgpd-switch-bg: #475569;
        --lgpd-switch-active: #34d399;
        --lgpd-badge-bg: rgba(255, 255, 255, 0.1);
        --lgpd-badge-text: #a7f3d0;
    }
}

/* Container do banner */
.lgpd-banner-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 999999;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
}

@media (min-width: 640px) {
    .lgpd-banner-wrapper {
        left: auto;
    }
}

.lgpd-banner-wrapper.lgpd-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Card principal */
.lgpd-banner-card {
    background: var(--lgpd-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--lgpd-border);
    border-radius: 20px;
    box-shadow: 0 12px 30px -4px var(--lgpd-shadow);
    padding: 22px;
    overflow: hidden;
    font-family: inherit;
}

.lgpd-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lgpd-icon {
    font-size: 1.25rem;
}

.lgpd-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lgpd-text-title);
    margin: 0;
    line-height: 1.3;
}

.lgpd-banner-desc {
    font-size: 0.85rem;
    color: var(--lgpd-text-desc);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

/* Ações / Botões */
.lgpd-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.lgpd-btn {
    font-family: inherit;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.lgpd-btn:focus-visible {
    outline: 2px solid var(--lgpd-btn-primary-bg);
    outline-offset: 2px;
}

.lgpd-btn-primary {
    background: var(--lgpd-btn-primary-bg);
    color: var(--lgpd-btn-primary-text);
}

.lgpd-btn-primary:hover {
    background: var(--lgpd-btn-primary-hover);
    transform: translateY(-1px);
}

.lgpd-btn-secondary {
    background: var(--lgpd-btn-secondary-bg);
    color: var(--lgpd-btn-secondary-text);
    border: 1px solid var(--lgpd-border);
}

.lgpd-btn-secondary:hover {
    background: var(--lgpd-btn-secondary-hover);
}

.lgpd-btn-text {
    background: transparent;
    color: var(--lgpd-text-title);
    padding-left: 8px;
    padding-right: 8px;
}

.lgpd-btn-text:hover {
    color: var(--lgpd-btn-primary-bg);
    text-decoration: underline;
}

/* Lista de Preferências */
.lgpd-pref-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.lgpd-pref-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lgpd-border);
}

.lgpd-pref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lgpd-pref-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.lgpd-pref-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lgpd-text-title);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lgpd-badge-always {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--lgpd-badge-bg);
    color: var(--lgpd-badge-text);
}

.lgpd-pref-desc {
    font-size: 0.775rem;
    color: var(--lgpd-text-desc);
    line-height: 1.4;
}

/* Toggle Switch Acessível */
.lgpd-switch-wrapper {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.lgpd-switch-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.lgpd-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--lgpd-switch-bg);
    transition: .25s ease;
    border-radius: 22px;
}

.lgpd-switch-label:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s ease;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lgpd-switch-checkbox:checked + .lgpd-switch-label {
    background-color: var(--lgpd-switch-active);
}

.lgpd-switch-checkbox:checked + .lgpd-switch-label:before {
    transform: translateX(20px);
}

.lgpd-switch-checkbox:focus-visible + .lgpd-switch-label {
    outline: 2px solid var(--lgpd-btn-primary-bg);
    outline-offset: 2px;
}

.lgpd-switch-label.for-disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
