.vh-consent,
.vh-consent-settings {
    --vh-consent-red: #c30d23;
    --vh-consent-red-dark: #97091a;
    --vh-consent-ink: #1a1a1a;
    --vh-consent-muted: #5f6670;
    --vh-consent-line: #c8ccd1;
    --vh-consent-paper: #fff;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.vh-consent *,
.vh-consent *::before,
.vh-consent *::after {
    box-sizing: border-box;
}

.vh-consent[hidden],
.vh-consent-settings[hidden] {
    display: none !important;
}

.vh-consent {
    position: fixed;
    z-index: 2147483000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    color: var(--vh-consent-ink);
}

.vh-consent__panel {
    width: min(1180px, 100%);
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    padding: 24px;
    overflow-y: auto;
    background: var(--vh-consent-paper);
    border: 1px solid var(--vh-consent-line);
    border-top: 4px solid var(--vh-consent-red);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
}

.vh-consent__eyebrow {
    margin: 0 0 5px;
    color: var(--vh-consent-red-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vh-consent__title {
    margin: 0;
    color: var(--vh-consent-ink);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.vh-consent__summary,
.vh-consent__policy,
.vh-consent__description,
.vh-consent__status {
    color: var(--vh-consent-muted);
    font-size: 14px;
    line-height: 1.55;
}

.vh-consent__summary {
    max-width: 980px;
    margin: 10px 0 6px;
}

.vh-consent__policy {
    margin: 0;
}

.vh-consent a {
    color: var(--vh-consent-red-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vh-consent__categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.vh-consent__category {
    display: block;
    min-width: 0;
    padding: 14px;
    cursor: pointer;
    border: 1px solid var(--vh-consent-line);
    background: #fff;
}

.vh-consent__category--locked {
    cursor: default;
    background: #f5f6f7;
}

.vh-consent__category-control {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vh-consent__category-control input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--vh-consent-red);
    flex: 0 0 auto;
}

.vh-consent__category-control strong {
    display: block;
    color: var(--vh-consent-ink);
    font-size: 15px;
    line-height: 1.35;
}

.vh-consent__state {
    display: block;
    margin-top: 2px;
    color: var(--vh-consent-muted);
    font-size: 12px;
    font-weight: 600;
}

.vh-consent__description {
    display: block;
    margin-top: 10px;
}

.vh-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.vh-consent__action {
    min-height: 44px;
    padding: 10px 16px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--vh-consent-red-dark);
    border-radius: 2px;
    background: var(--vh-consent-red-dark);
}

.vh-consent__action:hover {
    background: #7d0716;
    border-color: #7d0716;
}

.vh-consent__action:focus-visible,
.vh-consent-settings:focus-visible,
.vh-consent a:focus-visible,
.vh-consent input:focus-visible {
    outline: 3px solid #1d5faa;
    outline-offset: 3px;
}

.vh-consent__status {
    min-height: 1.55em;
    margin: 8px 0 -8px;
    text-align: center;
}

.vh-consent-settings {
    position: fixed;
    z-index: 2147482999;
    right: 16px;
    bottom: 16px;
    min-height: 44px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid var(--vh-consent-red-dark);
    border-radius: 2px;
    background: var(--vh-consent-red-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

@media (max-width: 760px) {
    .vh-consent {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .vh-consent__panel {
        max-height: calc(100vh - 16px);
        padding: 18px;
    }

    .vh-consent__categories,
    .vh-consent__actions {
        grid-template-columns: 1fr;
    }

    .vh-consent__category {
        padding: 12px;
    }

    .vh-consent-settings {
        right: 8px;
        bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vh-consent *,
    .vh-consent-settings {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
