/* ValSolution consent banner — uses shared theme variables from style.css */
.vs-consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 9997;
    display: none;
}

.vs-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9998;
    display: none;
    max-width: 760px;
    margin: 0 auto;
    background: var(--panel);
    color: var(--text-strong);
    border: 1px solid var(--header-border);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
    padding: 18px;
}

.vs-consent-banner.is-open,
.vs-consent-backdrop.is-open { display: block; }

.vs-consent-title {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 700;
}

.vs-consent-copy {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
    font-size: .95rem;
}

.vs-consent-copy a,
.vs-consent-link-btn {
    color: var(--accent);
    text-decoration: none;
}

.vs-consent-copy a:hover,
.vs-consent-link-btn:hover { text-decoration: underline; }

.vs-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.vs-consent-btn {
    border: 1px solid var(--header-border);
    background: var(--panel-soft);
    color: var(--text-strong);
    border-radius: 10px;
    padding: 9px 14px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    min-height: 42px;
}

.vs-consent-btn:hover { background: var(--panel-hover); }

.vs-consent-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.vs-consent-btn.primary:hover { background: var(--accent-strong); }

.vs-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 16px;
}

.vs-consent-modal.is-open { display: grid; }

.vs-consent-dialog {
    width: min(560px, 100%);
    max-height: min(680px, calc(100vh - 32px));
    overflow: auto;
    background: var(--panel);
    color: var(--text-strong);
    border: 1px solid var(--header-border);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0,0,0,.30);
    padding: 20px;
}

.vs-consent-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.vs-consent-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 2px 5px;
}

.vs-consent-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--header-border);
}

.vs-consent-option:first-of-type { margin-top: 14px; }

.vs-consent-option h4 {
    margin: 0 0 4px;
    font-size: .98rem;
}

.vs-consent-option p {
    margin: 0;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.vs-consent-switch {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

.vs-consent-switch input {
    opacity: 0;
    width: 1px;
    height: 1px;
    position: absolute;
}

.vs-consent-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--panel-hover);
    border: 1px solid var(--header-border);
    cursor: pointer;
    transition: .2s ease;
}

.vs-consent-slider::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: .2s ease;
}

.vs-consent-switch input:checked + .vs-consent-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.vs-consent-switch input:checked + .vs-consent-slider::after { transform: translateX(20px); }
.vs-consent-switch input:focus-visible + .vs-consent-slider { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.vs-consent-always {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
}

.vs-consent-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--header-border);
}

.vs-consent-link-btn {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 640px) {
    .vs-consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .vs-consent-actions .vs-consent-btn { flex: 1 1 100%; }
    .vs-consent-dialog { padding: 17px; }
    .vs-consent-modal-actions .vs-consent-btn { flex: 1 1 100%; }
}
