[x-cloak] { display: none !important; }

/* Tokens locais alinhados ao site (style.css):
   --font-base = Montserrat | botão padrão = #3c3a3a | accent dourado = #75694b */
.cpv-consent-banner,
.cpv-consent-modal-backdrop {
    --cpv-color-bg: #ffffff;
    --cpv-color-text: #1e2a2e;
    --cpv-color-muted: #5b6b70;
    --cpv-color-border: #e5e7eb;
    --cpv-color-primary: #3c3a3a;
    --cpv-color-primary-hover: #524f4f;
    --cpv-color-accent: #75694b;
    --cpv-radius: 10px;
    --cpv-shadow: 0 -8px 32px rgba(15, 15, 15, 0.10);
    --cpv-shadow-modal: 0 24px 60px rgba(15, 15, 15, 0.22);
}

.cpv-consent-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10000;
    background: var(--cpv-color-bg);
    color: var(--cpv-color-text);
    font-family: var(--font-base, system-ui, sans-serif);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--cpv-color-border);
    box-shadow: var(--cpv-shadow);
}
.cpv-consent-banner__inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap;
}
.cpv-consent-banner__text { flex: 1 1 320px; min-width: 260px; }
.cpv-consent-banner__text strong {
    display: block; font-size: 1rem; font-weight: 600;
    color: var(--cpv-color-text); margin-bottom: .35rem;
}
.cpv-consent-banner__text p {
    font-size: .875rem; line-height: 1.5; margin: 0;
    color: var(--cpv-color-muted);
}
.cpv-consent-banner__text a {
    color: var(--cpv-color-accent); font-weight: 500;
    text-decoration: underline; text-underline-offset: 2px;
}
.cpv-consent-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.cpv-btn {
    font-family: var(--font-base, inherit);
    font-size: .9375rem; font-weight: 500;
    padding: .65rem 1.2rem; border-radius: var(--cpv-radius);
    border: 1px solid transparent; cursor: pointer; line-height: 1.1;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cpv-btn--primary {
    background: var(--cpv-color-primary); color: #fff;
}
.cpv-btn--primary:hover { background: var(--cpv-color-primary-hover); }
.cpv-btn--ghost {
    background: transparent;
    color: var(--cpv-color-text);
    border-color: var(--cpv-color-border);
}
.cpv-btn--ghost:hover {
    background: #f7f7f8;
    border-color: var(--cpv-color-primary);
}

.cpv-consent-modal-backdrop {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(15, 15, 15, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    font-family: var(--font-base, system-ui, sans-serif);
}
.cpv-consent-modal {
    background: #fff; color: var(--cpv-color-text);
    max-width: 560px; width: 100%;
    max-height: 90vh; overflow: auto;
    border-radius: var(--cpv-radius);
    box-shadow: var(--cpv-shadow-modal);
}
.cpv-consent-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--cpv-color-border);
}
.cpv-consent-modal__header h2 {
    font-size: 1.125rem; font-weight: 500; margin: 0;
    color: var(--cpv-color-text);
}
.cpv-consent-modal__close {
    background: transparent; border: 0; cursor: pointer; font-size: 1.75rem;
    line-height: 1; padding: 0; color: var(--cpv-color-muted);
    transition: color .15s ease;
}
.cpv-consent-modal__close:hover { color: var(--cpv-color-text); }
.cpv-consent-modal__body { padding: 1.25rem 1.5rem; }
.cpv-consent-modal__intro {
    font-size: .9375rem; line-height: 1.5; margin: 0 0 1.25rem;
    color: var(--cpv-color-muted);
}

.cpv-consent-category {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f1f1;
}
.cpv-consent-category:last-child { border-bottom: 0; }
.cpv-consent-category__head {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-bottom: .35rem;
}
.cpv-consent-category__title {
    font-weight: 600; font-size: .9375rem;
    color: var(--cpv-color-text);
}
.cpv-consent-category__desc {
    font-size: .8125rem; line-height: 1.5; color: var(--cpv-color-muted); margin: 0;
}
.cpv-consent-category__pill {
    font-size: .6875rem; font-weight: 600; text-transform: uppercase;
    background: #f3f1ec; color: var(--cpv-color-accent);
    padding: .3rem .55rem; border-radius: 4px;
    letter-spacing: .03em;
}

.cpv-toggle {
    position: relative; display: inline-block; width: 40px; height: 22px;
    flex-shrink: 0;
}
.cpv-toggle input { opacity: 0; width: 0; height: 0; }
.cpv-toggle__track {
    position: absolute; cursor: pointer; inset: 0; background: #d6d3cf;
    border-radius: 999px;
    transition: background .2s ease;
}
.cpv-toggle__track::before {
    content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
    transition: transform .2s ease;
}
.cpv-toggle input:checked + .cpv-toggle__track { background: var(--cpv-color-primary); }
.cpv-toggle input:checked + .cpv-toggle__track::before { transform: translateX(18px); }

.cpv-consent-modal__footer {
    display: flex; justify-content: flex-end; gap: .5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cpv-color-border);
    background: #fafafa;
    border-radius: 0 0 var(--cpv-radius) var(--cpv-radius);
}

@media (max-width: 640px) {
    .cpv-consent-banner {
        padding: 1rem 1rem 1.1rem;
    }
    .cpv-consent-banner__actions {
        width: 100%;
    }
    .cpv-consent-banner__actions .cpv-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
