.hdv2-consent,
.hdv2-consent-fab {
    --hdv2-consent-bg: hsl(0 0% 100%);
    --hdv2-consent-border: hsl(220 13% 91%);
    --hdv2-consent-text: hsl(240 5.3% 26.1%);
    --hdv2-consent-strong: hsl(222 47% 11%);
    --hdv2-consent-muted: hsl(240 3.8% 46.1%);
    --hdv2-consent-primary: hsl(221 83% 53%);
    --hdv2-consent-primary-hover: hsl(224 76% 48%);
    --hdv2-consent-primary-fg: hsl(0 0% 100%);
    --hdv2-consent-soft: hsl(214 100% 97%);
    --hdv2-consent-ghost-hover: hsl(240 4.8% 95.9%);
    --hdv2-consent-shadow: 0 12px 32px -8px rgba(10, 37, 64, 0.18), 0 2px 6px rgba(10, 37, 64, 0.06);
    font-family: inherit;
    box-sizing: border-box;
}

:root[data-hdv2-theme="dark"] .hdv2-consent,
:root[data-hdv2-theme="dark"] .hdv2-consent-fab {
    --hdv2-consent-bg: hsl(220 5% 17%);
    --hdv2-consent-border: hsl(220 4% 26%);
    --hdv2-consent-text: hsl(220 5% 86%);
    --hdv2-consent-strong: hsl(220 5% 96%);
    --hdv2-consent-muted: hsl(220 4% 68%);
    --hdv2-consent-primary: hsl(217 91% 60%);
    --hdv2-consent-primary-hover: hsl(213 94% 68%);
    --hdv2-consent-primary-fg: hsl(0 0% 100%);
    --hdv2-consent-soft: hsl(220 4% 24%);
    --hdv2-consent-ghost-hover: hsl(220 4% 23%);
    --hdv2-consent-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.hdv2-consent {
    position: fixed;
    z-index: 2147483000;
    left: 20px;
    bottom: 20px;
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 16px;
    border: 1px solid var(--hdv2-consent-border);
    border-radius: 14px;
    background: var(--hdv2-consent-bg);
    color: var(--hdv2-consent-text);
    box-shadow: var(--hdv2-consent-shadow);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hdv2-consent[hidden] {
    display: none !important;
}

.hdv2-consent.is-visible {
    opacity: 1;
    transform: none;
}

.hdv2-consent__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
}

.hdv2-consent__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--hdv2-consent-soft);
    color: var(--hdv2-consent-primary);
}

.hdv2-consent__icon svg,
.hdv2-consent__close svg,
.hdv2-consent-fab svg {
    width: 18px;
    height: 18px;
}

.hdv2-consent__title {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--hdv2-consent-strong);
}

.hdv2-consent__close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hdv2-consent-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hdv2-consent__close:hover {
    background: var(--hdv2-consent-ghost-hover);
    color: var(--hdv2-consent-strong);
}

.hdv2-consent__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--hdv2-consent-muted);
}

.hdv2-consent__text a {
    color: var(--hdv2-consent-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hdv2-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.hdv2-consent__btn {
    appearance: none;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--hdv2-consent-border);
    border-radius: 9px;
    background: var(--hdv2-consent-bg);
    color: var(--hdv2-consent-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hdv2-consent__btn:hover {
    background: var(--hdv2-consent-ghost-hover);
}

.hdv2-consent__btn--primary {
    border-color: var(--hdv2-consent-primary);
    background: var(--hdv2-consent-primary);
    color: var(--hdv2-consent-primary-fg);
}

.hdv2-consent__btn--primary:hover {
    border-color: var(--hdv2-consent-primary-hover);
    background: var(--hdv2-consent-primary-hover);
}

.hdv2-consent__btn:focus-visible,
.hdv2-consent__close:focus-visible,
.hdv2-consent-fab:focus-visible {
    outline: 2px solid var(--hdv2-consent-primary);
    outline-offset: 2px;
}

.hdv2-consent-fab {
    position: fixed;
    z-index: 2147482999;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--hdv2-consent-border);
    border-radius: 50%;
    background: var(--hdv2-consent-bg);
    color: var(--hdv2-consent-muted);
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.12);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hdv2-consent-fab:hover {
    color: var(--hdv2-consent-primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.16);
}

.hdv2-consent-fab[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .hdv2-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }

    .hdv2-consent-fab {
        left: 12px;
        bottom: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdv2-consent,
    .hdv2-consent-fab {
        transition: none;
    }
}
