.vg-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 10000;
    display: none;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid rgba(120, 130, 150, 0.28);
    border-radius: 14px;
    background: rgba(252, 248, 251, 0.96);
    color: #1b1b1d;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dark .vg-cookie-banner {
    background: rgba(19, 22, 30, 0.96);
    color: #e1e2eb;
    border-color: rgba(255, 255, 255, 0.1);
}

.vg-cookie-banner.is-visible {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.vg-cookie-banner p {
    margin: 0;
    color: inherit;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.vg-cookie-banner a {
    color: #0058bc;
    font-weight: 700;
    text-decoration: underline;
}

.dark .vg-cookie-banner a {
    color: #4da6ff;
}

.vg-cookie-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.vg-cookie-btn {
    border: 1px solid rgba(120, 130, 150, 0.28);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0 1rem;
    white-space: nowrap;
}

.vg-cookie-btn-secondary {
    background: transparent;
    color: inherit;
}

.vg-cookie-btn-primary {
    background: #0058bc;
    border-color: #0058bc;
    color: #ffffff;
}

.vg-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    place-items: center;
    padding: 1rem;
}

.vg-cookie-modal.is-visible {
    display: grid;
}

.vg-cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
}

.vg-cookie-panel {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.1rem;
    border: 1px solid rgba(120, 130, 150, 0.28);
    border-radius: 16px;
    background: rgba(252, 248, 251, 0.98);
    color: #1b1b1d;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.dark .vg-cookie-panel {
    background: rgba(19, 22, 30, 0.98);
    color: #e1e2eb;
    border-color: rgba(255, 255, 255, 0.1);
}

.vg-cookie-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vg-cookie-kicker {
    margin: 0 0 0.15rem;
    color: #0058bc;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .vg-cookie-kicker {
    color: #4da6ff;
}

.vg-cookie-panel h2,
.vg-cookie-panel h3,
.vg-cookie-panel p {
    margin: 0;
}

.vg-cookie-panel h2 {
    font-size: 1.25rem;
    font-weight: 900;
}

.vg-cookie-panel h3 {
    font-size: 0.92rem;
    font-weight: 900;
}

.vg-cookie-panel p {
    margin-top: 0.25rem;
    color: #4b5563;
    font-size: 0.8125rem;
    line-height: 1.55;
}

.dark .vg-cookie-panel p {
    color: #a8adbd;
}

.vg-cookie-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(120, 130, 150, 0.28);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.vg-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(120, 130, 150, 0.2);
}

.vg-cookie-toggle-row {
    cursor: pointer;
}

.vg-cookie-status {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
}

.dark .vg-cookie-status {
    color: #6ee7b7;
}

.vg-cookie-switch {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
}

.vg-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vg-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.18s ease;
}

.vg-cookie-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease;
}

.vg-cookie-switch input:checked + span {
    background: #0058bc;
}

.vg-cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.vg-cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid rgba(120, 130, 150, 0.2);
}

@media (max-width: 680px) {
    .vg-cookie-banner.is-visible {
        grid-template-columns: 1fr;
    }

    .vg-cookie-actions {
        justify-content: stretch;
    }

    .vg-cookie-btn {
        flex: 1;
    }

    .vg-cookie-modal-actions {
        flex-direction: column;
    }

    .vg-cookie-option {
        align-items: flex-start;
    }
}
