.vcc-root,
.vcc-root * {
    box-sizing: border-box;
}

.vcc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(0, 0, 0, 0.42);
}

.vcc-banner {
    position: fixed;
    z-index: 99998;
    max-width: 960px;
    width: calc(100% - 32px);
    padding: 24px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    font-size: 16px;
    line-height: 1.5;
}

.vcc-position-bottom {
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
}

.vcc-position-bottom-left {
    left: 16px;
    bottom: 16px;
    max-width: 520px;
}

.vcc-position-bottom-right {
    right: 16px;
    bottom: 16px;
    max-width: 520px;
}

.vcc-position-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.vcc-banner h2,
.vcc-banner h3,
.vcc-policy h2 {
    margin: 0 0 10px;
    line-height: 1.25;
}

.vcc-banner h2 {
    font-size: 22px;
}

.vcc-banner h3 {
    font-size: 17px;
}

.vcc-message p,
.vcc-category p {
    margin: 0 0 12px;
}

.vcc-policy-link {
    margin-top: 8px;
}

.vcc-actions,
.vcc-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.vcc-button,
.vcc-policy .vcc-button,
.vcc-floating-button {
    appearance: none;
    border: 1px solid #111827;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

.vcc-button-primary {
    background: #111827;
    color: #ffffff;
}

.vcc-button-secondary {
    background: #ffffff;
    color: #111827;
}

.vcc-button-link {
    background: transparent;
    color: #111827;
    border-color: transparent;
    text-decoration: underline;
    border-radius: 4px;
}

.vcc-button:focus-visible,
.vcc-floating-button:focus-visible,
.vcc-switch input:focus-visible + .vcc-slider {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.vcc-panel {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.vcc-category {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.vcc-category:last-of-type {
    border-bottom: 0;
}

.vcc-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.vcc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vcc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #9ca3af;
    border-radius: 999px;
    transition: 0.2s ease;
}

.vcc-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: #ffffff;
    border-radius: 50%;
    transition: 0.2s ease;
}

.vcc-switch input:checked + .vcc-slider {
    background: #111827;
}

.vcc-switch input:checked + .vcc-slider::before {
    transform: translateX(24px);
}

.vcc-switch input:disabled + .vcc-slider {
    cursor: not-allowed;
    opacity: 0.72;
}

.vcc-floating-button {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99996;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.vcc-policy-table-wrap {
    overflow-x: auto;
}

.vcc-policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.vcc-policy-table th,
.vcc-policy-table td {
    padding: 10px;
    border: 1px solid #d1d5db;
    text-align: left;
    vertical-align: top;
}

.vcc-policy-table th {
    font-weight: 700;
}

@media (max-width: 700px) {
    .vcc-banner {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
        transform: none;
        max-width: none;
        padding: 18px;
        border-radius: 14px;
    }

    .vcc-position-center {
        top: auto;
        bottom: 10px;
        transform: none;
        max-height: calc(100vh - 20px);
    }

    .vcc-actions,
    .vcc-panel-actions {
        display: grid;
    }

    .vcc-button,
    .vcc-policy .vcc-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .vcc-category {
        grid-template-columns: 1fr;
    }
}
