/* Cookie Consent Banner — AP Vistoria Predial (LGPD) */

#site-notice-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #001F3F;
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    font-family: 'Inter', sans-serif;
}

#site-notice-banner.spx-visible {
    transform: translateY(0);
}

.spx-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.spx-banner-text {
    flex: 1 1 280px;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.spx-banner-text a {
    color: #0EA5E9;
    text-decoration: underline;
}

.spx-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex-shrink: 0;
}

.spx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #ffffff;
    background: #ffffff;
    color: #001F3F;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    font-family: inherit;
}

.spx-btn:hover,
.spx-btn:focus {
    opacity: 0.88;
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}

/* Overlay do modal */
#site-notice-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#site-notice-modal-overlay.spx-open {
    display: flex;
}

#site-notice-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    max-height: 90vh;
    overflow-y: auto;
}

#site-notice-modal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #001F3F;
    margin: 0 0 0.5rem;
}

#site-notice-modal p.spx-modal-desc {
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.spx-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.spx-category:last-of-type {
    border-bottom: none;
}

.spx-category-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #001F3F;
    margin: 0 0 0.25rem;
}

.spx-category-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Toggle switch */
.spx-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.spx-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.spx-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: background 0.25s;
}

.spx-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s;
}

.spx-toggle input:checked + .spx-toggle-slider {
    background: #001F3F;
}

.spx-toggle input:checked + .spx-toggle-slider::before {
    transform: translateX(22px);
}

.spx-toggle input:focus + .spx-toggle-slider {
    outline: 2px solid #0EA5E9;
    outline-offset: 2px;
}

.spx-toggle.spx-disabled .spx-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.spx-modal-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.spx-modal-actions .spx-btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 576px) {
    .spx-banner-actions {
        width: 100%;
    }

    .spx-btn {
        flex: 1;
        min-width: unset;
    }

    .spx-modal-actions .spx-btn {
        width: 100%;
    }
}
