/* (c) 2026 SnartHost - Internet Services - CNPJ 24.151.343/0001-15 - All rights reserved.
   Author: Antonio Santos - E-mail: suporte@softpax.com.br - URL: https://softpax.com.br
   Cookie and privacy consent banner (LGPD/GDPR) of the public shell. */

.sp-lgpd-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 980px;
    margin: 0 auto;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    padding: 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    animation: spLgpdSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes spLgpdSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sp-lgpd-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.sp-lgpd-icon {
    font-size: 2rem;
    line-height: 1;
}
.sp-lgpd-text strong {
    font-size: 1.05rem;
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}
.sp-lgpd-text p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}
.sp-lgpd-text a {
    color: var(--ps-brand, #0059a9);
    text-decoration: underline;
    font-weight: 500;
}
.sp-lgpd-prefs {
    margin: 16px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sp-lgpd-pref-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sp-lgpd-pref-desc strong {
    font-size: 0.9rem;
    color: #1e293b;
    display: block;
}
.sp-lgpd-pref-desc p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}
.sp-lgpd-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}
.sp-lgpd-switch input { opacity: 0; width: 0; height: 0; }
.sp-lgpd-slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 22px;
}
.sp-lgpd-slider:before {
    position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.sp-lgpd-switch input:checked + .sp-lgpd-slider {
    background-color: var(--ps-brand, #0059a9);
}
.sp-lgpd-switch input:checked + .sp-lgpd-slider:before {
    transform: translateX(16px);
}
.sp-lgpd-switch input:disabled + .sp-lgpd-slider {
    opacity: 0.7;
    cursor: not-allowed;
}
.sp-lgpd-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.sp-lgpd-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}
.sp-lgpd-btn-primary {
    background: var(--ps-brand, #0059a9);
    color: #ffffff;
    border: 1px solid transparent;
}
.sp-lgpd-btn-primary:hover {
    filter: brightness(1.1);
}
.sp-lgpd-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.sp-lgpd-btn-secondary:hover {
    background: #e2e8f0;
}
.sp-lgpd-btn-link {
    background: transparent;
    color: #64748b;
    border: none;
}
.sp-lgpd-btn-link:hover {
    color: #0f172a;
}
.sp-lgpd-floating-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sp-lgpd-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.14);
    color: var(--ps-brand, #0059a9);
}
@media (max-width: 640px) {
    .sp-lgpd-actions {
        flex-direction: column;
        width: 100%;
    }
    .sp-lgpd-btn {
        width: 100%;
        text-align: center;
    }
}
