/* WebVox GDPR Cookie Consent — banner, pannello preferenze, floating icon, placeholder */

.webvox-consent-banner,
.webvox-consent-panel,
.webvox-consent-float {
    box-sizing: border-box;
}
.webvox-consent-banner *,
.webvox-consent-panel *,
.webvox-consent-float * {
    box-sizing: border-box;
}

/* ── Banner ──────────────────────────────────────────────────────────── */

.webvox-consent-banner {
    position: fixed;
    z-index: 999999;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--webvox-consent-bg, #1a1a2e);
    color: var(--webvox-consent-text, #fff);
    padding: 18px 24px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.webvox-consent-banner[hidden] { display: none; }

.webvox-consent-banner.webvox-consent-pos-bottom-left,
.webvox-consent-banner.webvox-consent-pos-bottom-right {
    left: auto;
    right: auto;
    max-width: 420px;
    border-radius: 10px;
    margin: 16px;
}
.webvox-consent-banner.webvox-consent-pos-bottom-left { left: 0; }
.webvox-consent-banner.webvox-consent-pos-bottom-right { right: 0; }

.webvox-consent-banner.webvox-consent-pos-center-modal {
    left: 50%;
    right: auto;
    bottom: 50%;
    transform: translate(-50%, 50%);
    max-width: 480px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 12px;
}

.webvox-consent-banner__inner { max-width: 1200px; margin: 0 auto; }
.webvox-consent-banner__title { font-weight: 600; margin: 0 0 6px; font-size: 15px; }
.webvox-consent-banner__text { margin: 0 0 14px; opacity: .92; }
.webvox-consent-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.webvox-consent-btn {
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: inherit;
}
.webvox-consent-btn--accept,
.webvox-consent-btn--save {
    background: var(--webvox-consent-accent, #2271b1);
    color: var(--webvox-consent-accent-text, #fff);
    border-color: var(--webvox-consent-accent, #2271b1);
}
.webvox-consent-btn--reject,
.webvox-consent-btn--customize {
    background: transparent;
    border-color: currentColor;
}
.webvox-consent-btn:hover { filter: brightness(1.1); }

/* ── Pannello preferenze ─────────────────────────────────────────────── */

.webvox-consent-panel {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.webvox-consent-panel[hidden] { display: none; }

.webvox-consent-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.webvox-consent-panel__inner {
    position: relative;
    background: #fff;
    color: #222;
    border-radius: 12px;
    max-width: 560px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.webvox-consent-panel__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.webvox-consent-panel__title { margin: 0 0 16px; font-size: 18px; padding-right: 24px; }

.webvox-consent-category {
    border-top: 1px solid #eee;
    padding: 12px 0;
}
.webvox-consent-category:first-of-type { border-top: none; }
.webvox-consent-category label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.webvox-consent-category input[type="checkbox"] { width: 18px; height: 18px; }
.webvox-consent-category input[type="checkbox"]:disabled { opacity: .5; }
.webvox-consent-category__desc { margin: 6px 0 0 26px; color: #666; font-size: 13px; }

.webvox-consent-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.webvox-consent-panel__actions .webvox-consent-btn--reject {
    border-color: #ccc;
    color: #333;
}

.webvox-consent-panel__links { margin: 18px 0 0; font-size: 12px; color: #777; }
.webvox-consent-panel__links a { color: var(--webvox-consent-accent, #2271b1); }

/* ── Floating icon ───────────────────────────────────────────────────── */

.webvox-consent-float {
    position: fixed;
    bottom: 16px;
    z-index: 999998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--webvox-consent-accent, #2271b1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.webvox-consent-float[hidden] { display: none; }
.webvox-consent-float--bottom-left { left: 16px; }
.webvox-consent-float--bottom-right { right: 16px; }

/* ── Placeholder (script/iframe/embed bloccati) ─────────────────────── */

.wvx-consent-placeholder {
    background: #f0f0f1;
    border: 1px dashed #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #444;
}
.wvx-consent-placeholder__notice { margin-bottom: 10px; }
.wvx-consent-placeholder button {
    border: 1px solid #999;
    background: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    margin: 0 4px;
}
.wvx-consent-placeholder template { display: none; }

/* ── Tabella cookie [webvox_cookie_table] ───────────────────────────── */

.webvox-cookie-table__category { margin-top: 24px; }
.webvox-cookie-table__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.webvox-cookie-table__table th,
.webvox-cookie-table__table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e2e2; }
.webvox-cookie-table__table th { background: #f6f6f6; }
