.vs-consent-banner,
.vs-consent-panel {
    font-family: "Rethink Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vs-consent-banner[hidden],
.vs-consent-panel[hidden] {
    display: none !important;
}

.vs-consent-banner {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(38, 38, 38, .62);
    backdrop-filter: blur(3px);
}

.vs-consent-banner__dialog {
    width: min(100%, 44rem);
    padding: 1.75rem;
    border: 1px solid #d1d5db;
    border-radius: 1.25rem;
    background: #fff;
    color: #111827;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

.vs-consent-banner__content {
    min-width: 0;
    flex: 1;
}

.vs-consent-title {
    margin: 0;
    color: #111827;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.35;
}

.vs-consent-copy {
    margin: .55rem 0 0;
    color: #4b5563;
    font-size: .925rem;
    line-height: 1.6;
}

.vs-consent-copy a,
.vs-consent-panel a {
    color: #047857;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vs-consent-actions {
    display: grid;
    width: 100%;
    margin-top: 1.35rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.vs-consent-actions .vs-consent-button--configure {
    grid-column: 1 / -1;
}

.vs-consent-button {
    display: inline-flex;
    min-height: 2.75rem;
    padding: .65rem .9rem;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: .7rem;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

#vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-banner {
    inset: auto 1rem 1rem;
    padding: 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}

#vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-banner__dialog {
    display: flex;
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 1.25rem;
    align-items: center;
    gap: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .22);
    pointer-events: auto;
}

#vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-actions {
    width: auto;
    min-width: min(100%, 31rem);
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-actions .vs-consent-button--configure {
    grid-column: auto;
}

.vs-consent-button:focus-visible,
.vs-consent-close:focus-visible,
.vs-consent-switch input:focus-visible + span {
    outline: 3px solid #34d399;
    outline-offset: 2px;
}

.vs-consent-button--accept {
    border-color: #047857;
    background: #047857;
    color: #fff;
}

.vs-consent-button--accept:hover {
    border-color: #065f46;
    background: #065f46;
}

.vs-consent-button--reject {
    border-color: #334155;
    background: #334155;
    color: #fff;
}

.vs-consent-button--reject:hover {
    border-color: #1e293b;
    background: #1e293b;
}

.vs-consent-button--configure {
    border-color: #64748b;
    background: #fff;
    color: #334155;
}

.vs-consent-button--configure:hover {
    background: #f1f5f9;
}

.vs-consent-panel {
    position: fixed;
    z-index: 10010;
    inset: 0;
    display: flex;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(15, 23, 42, .62);
}

.vs-consent-panel__dialog {
    position: relative;
    width: 100%;
    max-width: 42rem;
    max-height: calc(100vh - 2rem);
    padding: 1.5rem;
    overflow-y: auto;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 25px 65px rgba(15, 23, 42, .35);
}

.vs-consent-close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 1.35rem;
}

.vs-consent-categories {
    display: grid;
    margin: 1.25rem 0;
    gap: .75rem;
}

.vs-consent-category {
    display: flex;
    padding: 1rem;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #dbe2ea;
    border-radius: .8rem;
    background: #fff;
}

.vs-consent-category__content {
    min-width: 0;
    flex: 1;
}

.vs-consent-category__title {
    margin: 0;
    color: #172033;
    font-size: .95rem;
    font-weight: 700;
}

.vs-consent-category__description {
    margin: .2rem 0 0;
    color: #64748b;
    font-size: .8rem;
    line-height: 1.5;
}

.vs-consent-always-active {
    flex: none;
    color: #047857;
    font-size: .75rem;
    font-weight: 700;
}

.vs-consent-switch {
    position: relative;
    display: inline-flex;
    flex: none;
    cursor: pointer;
}

.vs-consent-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vs-consent-switch span {
    position: relative;
    display: block;
    width: 3rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #94a3b8;
    transition: background-color .15s ease;
}

.vs-consent-switch span::after {
    position: absolute;
    top: .2rem;
    left: .2rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .35);
    content: "";
    transition: transform .15s ease;
}

.vs-consent-switch input:checked + span {
    background: #047857;
}

.vs-consent-switch input:checked + span::after {
    transform: translateX(1.3rem);
}

.vs-consent-panel__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

body.vs-consent-modal-open,
body.vs-consent-choice-required {
    overflow: hidden;
}

@media (max-width: 900px) {
    #vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-banner__dialog {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    #vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-actions {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 580px) {
    .vs-consent-banner__dialog {
        padding: 1.25rem;
    }

    #vs-cookie-consent[data-consent-policy-page="true"] .vs-consent-banner {
        right: .65rem;
        bottom: .65rem;
        left: .65rem;
    }

    .vs-consent-actions,
    .vs-consent-panel__actions {
        grid-template-columns: 1fr;
    }

    .vs-consent-actions .vs-consent-button--configure {
        grid-column: auto;
    }

    .vs-consent-panel__dialog {
        padding: 1.2rem;
    }

    .vs-consent-category {
        gap: .75rem;
    }
}
