/* ── Cookie Banner ─────────────────────────────────────────────────────── */
.lgpd-banner {
    position: fixed;
    left: 0; right: 0;
    z-index: 999999;
    padding: 16px 20px;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,.25);
    font-family: inherit;
    transition: transform .3s ease;
}
.lgpd-banner--bottom { bottom: 0; }
.lgpd-banner--top    { top: 0; box-shadow: 0 4px 20px rgba(0,0,0,.25); }

.lgpd-banner__content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.lgpd-banner__text {
    flex: 1;
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}
.lgpd-banner__policy {
    color: #90caf9;
    text-decoration: underline;
    margin-left: 6px;
}
.lgpd-banner__options {
    width: 100%;
    display: flex;
    gap: 16px;
    padding: 8px 0;
}
.lgpd-cookie-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: .88rem;
}
.lgpd-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Botões ────────────────────────────────────────────────────────────── */
.lgpd-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    transition: opacity .2s;
    white-space: nowrap;
}
.lgpd-btn:hover { opacity: .88; }
.lgpd-btn--primary   { background: #0073aa; color: #fff; }
.lgpd-btn--secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.lgpd-btn--ghost     { background: transparent; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.3); }

/* ── Portal do Titular ─────────────────────────────────────────────────── */
.lgpd-portal {
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
}
.lgpd-portal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.lgpd-portal p  { color: #555; }

.lgpd-portal__tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e4e7;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.lgpd-tab-btn {
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: .9rem;
    color: #646970;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    transition: color .2s, border-color .2s;
}
.lgpd-tab-btn:hover  { color: #0073aa; }
.lgpd-tab-btn.active { color: #0073aa; border-bottom-color: #0073aa; font-weight: 600; }

.lgpd-tab-panel { display: none; }
.lgpd-tab-panel.active { display: block; }

/* Form */
.lgpd-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: .9rem;
}
.lgpd-form input[type="email"],
.lgpd-form input[type="text"],
.lgpd-form select,
.lgpd-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: .95rem;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.lgpd-form textarea { resize: vertical; min-height: 80px; }
.lgpd-form .lgpd-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}
.lgpd-form .lgpd-submit:disabled { opacity: .6; cursor: default; }

/* Mensagens */
.lgpd-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    font-size: .9rem;
}
.lgpd-message--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.lgpd-message--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Register form */
.lgpd-register-field,
.lgpd-comment-consent { margin: 10px 0; }
.lgpd-register-field label,
.lgpd-comment-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .9rem;
    cursor: pointer;
}
.lgpd-required-note { color: #888; font-weight: 400; font-size: .82em; }

/* Flash messages */
.lgpd-flash {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 6px;
    z-index: 999999;
    font-size: .95rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    animation: lgpdFadeIn .3s ease;
}
.lgpd-flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.lgpd-flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

@keyframes lgpdFadeIn {
    from { opacity:0; transform: translateY(10px); }
    to   { opacity:1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .lgpd-banner__content { flex-direction: column; align-items: stretch; }
    .lgpd-banner__actions { justify-content: stretch; }
    .lgpd-btn { flex: 1; text-align: center; }
    .lgpd-portal__tabs { overflow-x: auto; }
}
