.vxs-gl {
    --vxs-gl-blue: #1557b0;
    --vxs-gl-text: #24344d;
    --vxs-gl-muted: #7c8797;
    --vxs-gl-border: #dfe5ec;
    font: inherit;
    color: var(--vxs-gl-text);
}

.vxs-gl__trigger {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    padding: 12px 0;
    margin: 4px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--vxs-gl-border);
    color: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.vxs-gl__trigger:hover .vxs-gl__link,
.vxs-gl__trigger:focus-visible .vxs-gl__link {
    text-decoration-thickness: 2px;
}

.vxs-gl__trigger:focus-visible {
    outline: 2px solid var(--vxs-gl-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.vxs-gl__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 1px;
}

.vxs-gl__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--vxs-gl-blue);
}

.vxs-gl__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.vxs-gl__title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--vxs-gl-text);
}

.vxs-gl__description {
    font-size: 13px;
    line-height: 1.45;
    color: var(--vxs-gl-muted);
}

.vxs-gl__link {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--vxs-gl-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vxs-gl-modal[hidden] {
    display: none !important;
}

.vxs-gl-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.vxs-gl-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 23, 38, .72);
    backdrop-filter: blur(2px);
}

.vxs-gl-modal__panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.vxs-gl-modal__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--vxs-gl-border);
}

.vxs-gl-modal__header h2 {
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.3;
    color: #17253a;
}

.vxs-gl-modal__close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f7;
    color: #445269;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.vxs-gl-modal__close:hover {
    background: #e7ebef;
}

.vxs-gl-modal__close:focus-visible {
    outline: 2px solid var(--vxs-gl-blue);
    outline-offset: 2px;
}

.vxs-gl-modal__body {
    padding: 18px;
}

.vxs-gl-modal__notice {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.vxs-gl-modal__empty {
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: #fff7d6;
    color: #5f4a00;
}

.vxs-gl-modal__official-link {
    margin: 16px 0 0;
    text-align: center;
}

.vxs-gl-modal__official-link a {
    color: var(--vxs-gl-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html.vxs-gl-modal-open,
body.vxs-gl-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .vxs-gl-modal {
        padding: 10px;
    }

    .vxs-gl-modal__panel {
        max-height: 94vh;
        border-radius: 10px;
    }

    .vxs-gl-modal__header {
        padding: 13px 14px;
    }

    .vxs-gl-modal__header h2 {
        font-size: 17px;
    }

    .vxs-gl-modal__body {
        padding: 12px;
    }
}
