.vf-cookie-manager {
    --vf-cookie-banner-bg: #222222;
    --vf-cookie-banner-text: #ffffff;
    --vf-cookie-banner-size: 14px;
    --vf-cookie-modal-bg: #ffffff;
    --vf-cookie-modal-text: #000000;
    --vf-cookie-modal-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vf-cookie-manager [hidden] { display: none !important; }
.vf-cookie-button:focus-visible,
.vf-cookie-reopen:focus-visible,
.vf-cookie-shortcode-button:focus-visible,
.vf-cookie-modal__dismiss:focus-visible { outline: 3px solid #b79658; outline-offset: 3px; }
.vf-cookie-banner { max-height: calc(100dvh - 48px); overflow-y: auto; line-height: 1.55; }
.vf-cookie-button { font: inherit; font-weight: 600; }
.vf-cookie-banner .vf-cookie-button--primary { background: var(--vf-cookie-banner-text); color: var(--vf-cookie-banner-bg); }
.vf-cookie-modal__actions .vf-cookie-button--secondary { border-color: currentColor; }

.vf-cookie-banner,
.vf-cookie-modal__dialog,
.vf-cookie-reopen,
.vf-cookie-shortcode-button {
    box-sizing: border-box;
}

.vf-cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 20px;
    background: var(--vf-cookie-banner-bg);
    color: var(--vf-cookie-banner-text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
    font-size: var(--vf-cookie-banner-size);
}

.vf-cookie-position-top .vf-cookie-banner {
    top: 24px;
    bottom: auto;
}

.vf-cookie-position-modal .vf-cookie-banner {
    inset: 50% auto auto 50%;
    width: min(680px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
}

.vf-cookie-banner__copy p:last-child,
.vf-cookie-modal__description p:last-child {
    margin-bottom: 0;
}

.vf-cookie-banner__actions,
.vf-cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vf-cookie-button,
.vf-cookie-reopen,
.vf-cookie-shortcode-button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
    transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
    text-decoration: none;
}

.vf-cookie-button:hover,
.vf-cookie-reopen:hover,
.vf-cookie-shortcode-button:hover {
    transform: translateY(-1px);
}

.vf-cookie-button--primary,
.vf-cookie-shortcode-button {
    background: #111111;
    color: #ffffff;
}

.vf-cookie-button--secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: inherit;
}

.vf-cookie-button--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: inherit;
}

.vf-cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    opacity: 0.8;
    font-size: 0.92em;
}

.vf-cookie-links a {
    color: inherit;
}

.vf-cookie-link-separator {
    opacity: 0.4;
}

.vf-cookie-reopen {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99998;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.vf-cookie-reopen__icon {
    display: none;
}

.vf-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.vf-cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.48);
    backdrop-filter: blur(10px);
}

.vf-cookie-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: auto;
    padding: 28px;
    border-radius: 24px;
    background: var(--vf-cookie-modal-bg);
    color: var(--vf-cookie-modal-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    font-size: var(--vf-cookie-modal-size);
}

.vf-cookie-modal__dismiss {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 24px;
}

.vf-cookie-modal__title {
    margin: 0 0 14px;
}

.vf-cookie-categories {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.vf-cookie-category {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.02);
}

.vf-cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vf-cookie-category__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vf-cookie-category__name {
    font-weight: 600;
}

.vf-cookie-category__badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vf-cookie-category__description {
    opacity: 0.82;
    line-height: 1.5;
}

.vf-cookie-category__toggle input {
    width: 20px;
    height: 20px;
}

@media (min-width: 860px) {
    .vf-cookie-banner {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 640px) {
    .vf-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
        border-radius: 18px;
    }

    .vf-cookie-modal__dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .vf-cookie-banner__actions,
    .vf-cookie-modal__actions {
        flex-direction: column;
    }

    .vf-cookie-button,
    .vf-cookie-shortcode-button {
        width: 100%;
        justify-content: center;
    }

    .vf-cookie-reopen:not(.vf-cookie-reopen--compact-mobile) {
        width: 100%;
        justify-content: center;
    }

    .vf-cookie-reopen--compact-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
    }

    .vf-cookie-reopen--compact-mobile .vf-cookie-reopen__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .vf-cookie-reopen--compact-mobile .vf-cookie-reopen__icon {
        display: block;
        width: 24px;
        height: 24px;
    }
}
