.velischat-wizard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.velischat-wizard-logo img {
    width: 44px;
    height: 44px;
    flex: none;
}

.velischat-wizard-logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.velischat-wizard-logo-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #13161C;
}

.velischat-wizard-logo-name span {
    color: #1F5BFF;
}

.velischat-wizard-logo-tagline {
    font-size: 12px;
    color: #646970;
}

/* Plugin admin pages */
/* Popups printed at the end of the page, outside the plugin's wrapper, share its colors */
.velischat-admin,
.velischat-dialog {
    --vc-blue: #1F5BFF;
    --vc-blue-soft: #EAF0FF;
    --vc-ink: #13161C;
    --vc-muted: #646970;
    --vc-line: #E3E6EC;
    --vc-radius: 14px;
}

.velischat-admin {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 40px;
    color: var(--vc-ink);
}

.velischat-admin-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 0 28px;
}

.velischat-admin-header .velischat-wizard-logo {
    position: relative;
    margin-bottom: 18px;
}

.velischat-admin-header .velischat-wizard-logo-text {
    text-align: left;
}

.velischat-admin .velischat-admin-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vc-muted);
    padding: 6px 14px;
    margin: 0;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--vc-line);
}

.velischat-admin .notice {
    margin: 0 0 20px;
    border-radius: 10px;
}

.velischat-card {
    background: #fff;
    border: 1px solid var(--vc-line);
    border-radius: var(--vc-radius);
    box-shadow: 0 1px 2px rgba(19, 22, 28, 0.04), 0 6px 20px rgba(19, 22, 28, 0.04);
    padding: 28px 32px 32px;
    margin-bottom: 20px;
}

.velischat-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

/* Cards with only text, no fields below the head */
.velischat-card-info .velischat-card-head {
    margin-bottom: 0;
}

.velischat-card-info .velischat-card-head h2 {
    margin-bottom: 8px;
}

.velischat-card-icon.dashicons {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
    font-size: 20px;
    line-height: 40px;
    text-align: center;
}

.velischat-card-head h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--vc-ink);
}

.velischat-card-head p {
    margin: 0;
    color: var(--vc-muted);
}

.velischat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.velischat-field {
    margin-bottom: 22px;
}

.velischat-card > .velischat-field:last-child,
.velischat-card > .velischat-grid:last-child .velischat-field {
    margin-bottom: 0;
}

.velischat-field > label,
.velischat-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.velischat-admin input[type=text],
.velischat-admin input[type=email],
.velischat-admin input[type=url],
.velischat-admin input[type=password],
.velischat-admin input[type=search],
.velischat-admin input[type=number],
.velischat-admin input[type=time],
.velischat-admin select,
.velischat-admin textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #D5D9E0;
    border-radius: 10px;
    background: #FAFBFC;
    box-shadow: none;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.velischat-admin input[type=text]:focus,
.velischat-admin input[type=email]:focus,
.velischat-admin input[type=url]:focus,
.velischat-admin input[type=password]:focus,
.velischat-admin input[type=search]:focus,
.velischat-admin input[type=number]:focus,
.velischat-admin input[type=time]:focus,
.velischat-admin select:focus,
.velischat-admin textarea:focus {
    border-color: var(--vc-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.15);
    outline: none;
}

.velischat-help {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--vc-muted);
}

.velischat-admin select {
    width: auto;
    max-width: none;
    padding-right: 32px;
    background-position: right 10px top 55%;
}

.velischat-admin textarea {
    display: block;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.velischat-card-head h2 label {
    cursor: default;
}

.velischat-subfields {
    padding: 20px 20px 0;
    margin: -8px 0 22px;
    border-radius: 12px;
    background: #F6F8FB;
    border: 1px solid var(--vc-line);
}

.velischat-subfields[hidden],
.velischat-field-error {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #D63638;
}

.velischat-field-success {
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: #00A32A;
}

.velischat-admin .velischat-field.has-error input {
    border-color: #D63638;
    box-shadow: 0 0 0 1px #D63638;
}

.velischat-help[hidden] {
    display: none;
}

.velischat-subfields input[type=text],
.velischat-subfields input[type=number] {
    background: #fff;
}

/* Toggle switch */
.velischat-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: #F6F8FB;
    border: 1px solid var(--vc-line);
    cursor: pointer;
}

.velischat-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.velischat-toggle-text span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--vc-muted);
}

.velischat-switch {
    position: relative;
    flex: none;
    width: 46px;
    height: 26px;
}

.velischat-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.velischat-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #C9CED6;
    transition: background .2s;
    pointer-events: none;
}

.velischat-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform .2s;
}

.velischat-switch input:checked + .velischat-switch-track {
    background: var(--vc-blue);
}

.velischat-switch input:checked + .velischat-switch-track::after {
    transform: translateX(20px);
}

.velischat-switch input:focus-visible + .velischat-switch-track {
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.25);
}

/* Buttons */
.velischat-btn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--vc-blue);
    border-radius: 8px;
    background: var(--vc-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.velischat-btn:hover {
    background: #1749D6;
    border-color: #1749D6;
}

.velischat-btn-ghost {
    background: transparent;
    border-color: #D5D9E0;
    color: var(--vc-ink);
}

.velischat-btn-ghost:hover {
    background: #F6F8FB;
    border-color: #C9CED6;
    color: var(--vc-ink);
}

/* "Colori" card: the fields on the left, the preview on the right, which follows the page while scrolling */
.velischat-colors-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.velischat-colors-preview {
    position: sticky;
    top: 48px;
}

.velischat-choices-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Styles: a card per style, with a tiny chatbot drawn with its colors (--sp-* set inline) */
.velischat-styles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.velischat-style {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid #D5D9E0;
    border-radius: 12px;
    background: #FAFBFC;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.velischat-style input {
    position: absolute;
    opacity: 0;
}

.velischat-style:hover {
    border-color: #A9B4C6;
    background: #fff;
}

.velischat-style:has(input:checked) {
    border-color: var(--vc-blue);
    background: var(--vc-blue-soft);
    box-shadow: 0 0 0 1px var(--vc-blue);
}

.velischat-style:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.25);
}

.velischat-style-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #1D2327;
}

.vs-sample {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 92px;
    overflow: hidden;
    padding: 0 0 7px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: var(--sp-bg);
}

.vs-header {
    flex: none;
    height: 14px;
    border-bottom: 1px solid var(--sp-line);
    background: var(--sp-surface);
}

.vs-user {
    align-self: flex-end;
    width: 46%;
    height: 11px;
    margin-right: 7px;
    border-radius: 6px 6px 2px 6px;
    background: var(--sp-principal);
}

.vs-agent {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 64%;
    margin-left: 7px;
    padding: 4px 5px;
    border: 1px solid var(--sp-line);
    border-radius: 2px 6px 6px 6px;
    background: var(--sp-surface);
}

.vs-agent span {
    height: 3px;
    border-radius: 2px;
    background: var(--sp-text);
}

.vs-agent span + span {
    width: 60%;
}

.vs-input {
    margin: auto 7px 0;
    height: 14px;
    border: 2px solid transparent;
    border-radius: 99px;
    background: linear-gradient(var(--sp-surface), var(--sp-surface)) padding-box, linear-gradient(90deg, #ff6b6b, #f36fff, #8b5ff7, #268aff, #00d4ff, #00ff88) border-box;
}

.vs-sample:not([data-border="colorful"]) .vs-input {
    background: linear-gradient(var(--sp-surface), var(--sp-surface)) padding-box, linear-gradient(90deg, var(--sp-border-1), var(--sp-border-2)) border-box;
}

/* Live preview: a small copy of the open chatbot, colored through the --vp-* properties set by admin.js */
@property --vp-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes vp-spin {
    to { --vp-angle: 360deg; }
}

.velischat-preview {
    --vp-principal: #1f5bff;
    --vp-on-principal: #fff;
    --vp-hover: #1a4bd1;
    --vp-on-hover: #fff;
    --vp-bg: #f6f7fb;
    --vp-on-bg: #1e1e1e;
    --vp-on-bg-muted: #6b7080;
    --vp-border-1: #1f5bff;
    --vp-border-2: #f36fff;
    --vp-surface: #ffffff;
    --vp-surface-alt: #f8f9fb;
    --vp-surface-muted: #f1f3f8;
    --vp-line: #e7e9f0;
    --vp-text: #1e1e1e;
    --vp-text-muted: #6b7280;
    --vp-text-faint: #757575;
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #D5D9E0;
    border-radius: 16px;
    background: var(--vp-bg);
    box-shadow: 0 8px 24px rgba(31, 40, 80, 0.08);
    color: var(--vp-text);
    font-size: 13px;
    line-height: 1.5;
    transition: background .2s;
}

.velischat-preview * {
    box-sizing: border-box;
}

.vp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--vp-line);
    background: var(--vp-surface);
}

.vp-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--vp-surface-muted);
}

.vp-avatar img,
.vp-agent-avatar img {
    width: 20px;
    height: auto;
}

.vp-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.vp-identity strong {
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vp-identity span {
    font-size: 11px;
    color: var(--vp-text-muted);
}

.vp-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--vp-surface-muted);
    font-size: 16px;
    line-height: 1;
    color: var(--vp-text);
}

.vp-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 12px 6px;
}

.vp-user {
    align-self: flex-end;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 16px 16px 4px 16px;
    background: var(--vp-principal);
    color: var(--vp-on-principal);
    transition: background .2s, color .2s;
}

.vp-agent-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.vp-agent-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 26px;
    height: 26px;
    border: 1px solid var(--vp-line);
    border-radius: 50%;
    background: var(--vp-surface);
}

.vp-agent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--vp-line);
    border-radius: 4px 16px 16px 16px;
    background: var(--vp-surface);
}

.vp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid var(--vp-line);
    border-radius: 10px;
    background: var(--vp-surface-alt);
    font-weight: 600;
}

.vp-link-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--vp-principal) 12%, transparent);
    color: var(--vp-principal);
}

.vp-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vp-button {
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--vp-principal);
    font-size: 12px;
    font-weight: 600;
    color: var(--vp-on-principal);
    transition: background .2s, color .2s;
}

.vp-button.is-hover {
    background: var(--vp-hover);
    color: var(--vp-on-hover);
}

.vp-note {
    margin: 0 0 0 34px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--vp-on-bg-muted);
}

.vp-input {
    padding: 8px 12px 14px;
}

.vp-ring {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 6px 0 14px;
    border: 2px solid transparent;
    border-radius: 99px;
    background: linear-gradient(var(--vp-surface), var(--vp-surface)) padding-box, conic-gradient(from var(--vp-angle), #120020 0deg, #ff6b6b 45deg, #f36fff 90deg, #8b5ff7 135deg, #268aff 180deg, #00d4ff 225deg, #52eaea 270deg, #00ff88 315deg, #120020 360deg) border-box;
    animation: vp-spin 8s linear infinite;
}

.velischat-preview:not([data-border="colorful"]) .vp-ring {
    background: linear-gradient(var(--vp-surface), var(--vp-surface)) padding-box, conic-gradient(from var(--vp-angle), #120020 0deg, var(--vp-border-1) 60deg, var(--vp-border-2) 180deg, var(--vp-border-1) 300deg, #120020 360deg) border-box;
}

.vp-placeholder {
    color: var(--vp-text-faint);
}

.vp-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vp-principal);
    color: var(--vp-on-principal);
}

@media (prefers-reduced-motion: reduce) {
    .vp-ring {
        animation: none;
    }
}

@media (max-width: 1280px) {
    .velischat-colors-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .velischat-colors-preview {
        position: static;
        max-width: 420px;
    }
}

@media (max-width: 960px) {
    .velischat-choices-3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Font picker */
.velischat-font-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.velischat-font-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 130px;
    padding: 16px 20px 12px;
    border: 1px solid #D5D9E0;
    border-radius: 12px;
    background: #FAFBFC;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.velischat-font-option input {
    position: absolute;
    opacity: 0;
}

.velischat-font-sample {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;
}

.velischat-font-name {
    font-size: 12px;
    color: var(--vc-muted);
}

.velischat-font-option:hover {
    border-color: #A9B4C6;
}

.velischat-font-option:has(input:checked) {
    border-color: var(--vc-blue);
    background: var(--vc-blue-soft);
    box-shadow: 0 0 0 1px var(--vc-blue);
}

.velischat-font-option:has(input:checked) .velischat-font-name {
    color: var(--vc-blue);
    font-weight: 600;
}

.velischat-font-option:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.25);
}

/* Example questions */
.velischat-questions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.velischat-question {
    display: flex;
    align-items: center;
    gap: 10px;
}

.velischat-question-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
    font-size: 12px;
    font-weight: 700;
}

.velischat-question input[type=text] {
    flex: 1;
    min-width: 0;
}

/* Emoji picker of the example questions */
.velischat-emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--vc-line);
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.velischat-emoji-btn:hover,
.velischat-emoji-btn[aria-expanded=true] {
    border-color: var(--vc-blue);
    background: var(--vc-blue-soft);
}

.velischat-emoji-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.25);
}

.velischat-emoji-popover {
    position: absolute;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(8, 32px);
    gap: 2px;
    max-height: 216px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--vc-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 22, 28, 0.12);
}

.velischat-emoji-popover[hidden] {
    display: none;
}

.velischat-emoji-popover button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.velischat-emoji-popover button:hover,
.velischat-emoji-popover button:focus-visible {
    outline: none;
    background: var(--vc-blue-soft);
}

/* Sticky save bar */
.velischat-savebar {
    position: sticky;
    bottom: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--vc-line);
    border-radius: var(--vc-radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(19, 22, 28, 0.08);
}

.velischat-admin .velischat-btn-primary.button-primary {
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--vc-blue);
    font-size: 14px;
    font-weight: 600;
}

.velischat-admin .velischat-btn-primary.button-primary:hover,
.velischat-admin .velischat-btn-primary.button-primary:focus {
    background: #1749D6;
}

/* Posts list */
.velischat-posts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px;
}

.velischat-search {
    position: relative;
    flex: 1 1 220px;
}

.velischat-search .dashicons {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--vc-muted);
}

.velischat-admin .velischat-search input[type=search] {
    padding-left: 38px;
}

.velischat-chip {
    position: relative;
    cursor: pointer;
}

.velischat-chip input {
    position: absolute;
    opacity: 0;
}

.velischat-chip span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #D5D9E0;
    border-radius: 999px;
    background: #FAFBFC;
    font-weight: 600;
    transition: background .15s, border-color .15s, color .15s;
}

.velischat-chip input:checked + span {
    border-color: var(--vc-blue);
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
}

.velischat-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.25);
}

.velischat-posts-list {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--vc-line);
    border-radius: 12px;
}

.velischat-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.velischat-table th,
.velischat-table td {
    padding: 11px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #EEF0F4;
}

.velischat-table thead th,
.velischat-table thead td {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #F6F8FB;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--vc-muted);
}

.velischat-table tbody tr:last-child th,
.velischat-table tbody tr:last-child td {
    border-bottom: 0;
}

.velischat-table tbody tr:hover {
    background: #FAFBFC;
}

.velischat-table tbody tr:has(.check-column input:checked) {
    background: #F3F6FF;
}

.velischat-table .check-column {
    width: 20px;
    padding-right: 0;
}

.velischat-table label {
    cursor: pointer;
}

.velischat-muted {
    color: var(--vc-muted);
}

.velischat-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
}

.velischat-badge-page {
    background: #EEF7EE;
    color: #2E7D32;
}

.velischat-badge-custom {
    background: #F4EEFB;
    color: #6A3FA0;
}

.velischat-post-note {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #B26A00;
}

.velischat-post-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.velischat-post-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border: 1px solid var(--vc-line);
    border-radius: 999px;
    background: #fff;
    color: var(--vc-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

.velischat-post-langs-label {
    align-self: center;
    color: var(--vc-muted);
    font-size: 11px;
    line-height: 16px;
}

.velischat-post-lang img {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    object-fit: cover;
}

/* A content written only in another language than the main one */
.velischat-post-lang.is-only {
    border-color: #C9D6FF;
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
}

.velischat-posts-empty td {
    padding: 28px 14px;
    text-align: center;
    color: var(--vc-muted);
}

.velischat-posts-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.velischat-posts-count {
    margin: 0;
    color: var(--vc-muted);
}

.velischat-posts-count strong {
    color: var(--vc-blue);
}

.velischat-posts-actions {
    display: flex;
    gap: 8px;
}

/* Radio choices */
.velischat-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.velischat-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #D5D9E0;
    border-radius: 12px;
    background: #FAFBFC;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.velischat-choice input {
    position: absolute;
    opacity: 0;
}

.velischat-choice-dot {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid #C9CED6;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}

.velischat-choice:hover {
    border-color: #A9B4C6;
}

.velischat-choice:has(input:checked) {
    border-color: var(--vc-blue);
    background: var(--vc-blue-soft);
    box-shadow: 0 0 0 1px var(--vc-blue);
}

.velischat-choice input:checked + .velischat-choice-dot {
    border-color: var(--vc-blue);
    border-width: 5px;
}

.velischat-choice:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.25);
}

.velischat-choice-rich {
    align-items: flex-start;
}

.velischat-choice-rich .velischat-choice-dot {
    margin-top: 1px;
}

.velischat-choice-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.velischat-choice-text span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--vc-muted);
}

/* Cost estimate under the description of an AI service */
.velischat-choice-text .velischat-choice-cost {
    font-size: 12px;
}

/* Trademark note under the AI service choices, kept apart from the cards */
/* The multilingual note above the contents table */
.velischat-posts-langs-note {
    margin-bottom: 16px;
}

.velischat-posts-langs-note .notice {
    margin-bottom: 0;
}

.velischat-help.velischat-ai-note {
    margin-top: 14px;
}

/* Button that looks like a link, e.g. "Vedi una stima dei prezzi" */
.velischat-link-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--vc-blue);
    text-decoration: underline;
    cursor: pointer;
}

/* Popups: the padding is on the inner box, so a click on the dialog itself is a click outside the content */
.velischat-dialog {
    width: min(820px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    padding: 0;
    border: 0;
    border-radius: var(--vc-radius);
    background: #fff;
    color: var(--vc-ink);
    box-shadow: 0 24px 64px rgba(19, 22, 28, 0.25);
}

.velischat-dialog::backdrop {
    background: rgba(19, 22, 28, 0.45);
}

.velischat-dialog-body {
    padding: 24px 28px 28px;
}

.velischat-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.velischat-dialog h2 {
    margin: 0;
    font-size: 20px;
}

.velischat-dialog h3 {
    margin: 24px 0 6px;
    font-size: 15px;
}

.velischat-dialog p {
    font-size: 14px;
    line-height: 1.55;
}

.velischat-dialog p.velischat-help {
    font-size: 13px;
}

.velischat-dialog-close {
    display: flex;
    padding: 6px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--vc-muted);
    cursor: pointer;
}

.velischat-dialog-close:hover,
.velischat-dialog-close:focus-visible {
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
}

/* Wide tables scroll sideways on small screens instead of widening the popup */
.velischat-dialog-table {
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid var(--vc-line);
    border-radius: 12px;
}

.velischat-dialog-table th {
    white-space: normal;
}

.velischat-dialog-table td {
    white-space: nowrap;
}

.velischat-dialog-muted {
    font-size: 12px;
    color: var(--vc-muted);
}

@media (max-width: 600px) {
    .velischat-dialog-body {
        padding: 20px 16px;
    }
}

/* Logo of an AI service, next to its name */
.velischat-choice-logo {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    object-fit: contain;
    vertical-align: -3px;
}

/* Rows with toggles */
.velischat-rows {
    border: 1px solid var(--vc-line);
    border-radius: 12px;
    margin-bottom: 22px;
}

.velischat-card > .velischat-rows:last-child {
    margin-bottom: 0;
}

.velischat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid #EEF0F4;
}

.velischat-row:last-child {
    border-bottom: 0;
}

.velischat-row-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.velischat-row-text span {
    font-size: 13px;
    color: var(--vc-muted);
}

.velischat-row-controls {
    display: flex;
    flex: none;
    gap: 20px;
}

.velischat-mini-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.velischat-mini-toggle .velischat-switch {
    width: 38px;
    height: 22px;
}

.velischat-mini-toggle .velischat-switch-track::after {
    width: 16px;
    height: 16px;
}

.velischat-mini-toggle .velischat-switch input:checked + .velischat-switch-track::after {
    transform: translateX(16px);
}

.velischat-row.is-fixed {
    background: #FAFBFC;
}

.velischat-row.is-fixed .velischat-mini-toggle {
    opacity: 0.6;
    cursor: not-allowed;
}

/* PDF status */
.velischat-context-status {
    display: flex;
    align-items: center;
    gap: 14px;
}

.velischat-context-status-text {
    flex: 1;
}

.velischat-context-status-text h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
}

.velischat-context-status-text p {
    margin: 0;
    color: var(--vc-muted);
}

.velischat-context-status .velischat-btn {
    text-decoration: none;
}

/* Space used by the assistant */
.velischat-usage-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.velischat-usage-head h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.velischat-usage-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--vc-blue-soft);
}

.velischat-usage-bar span {
    display: block;
    height: 100%;
    background: var(--vc-blue);
}

.velischat-usage.is-over .velischat-usage-bar span {
    background: #d63638;
}

.velischat-usage.is-over strong {
    color: #d63638;
}

/* Wizard */
.velischat-wizard {
    max-width: 880px;
}

.velischat-btn-lg {
    min-height: 44px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
}

a.velischat-btn:hover,
a.velischat-btn:focus {
    color: #fff;
}

a.velischat-btn-ghost:hover,
a.velischat-btn-ghost:focus {
    color: var(--vc-ink);
}

.velischat-stepper {
    display: flex;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.velischat-stepper li {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
}

/* Line joining each step to the previous one */
.velischat-stepper li + li::before {
    content: "";
    position: absolute;
    top: 15px;
    right: calc(50% + 22px);
    left: calc(-50% + 22px);
    height: 2px;
    border-radius: 2px;
    background: #D5D9E0;
}

.velischat-stepper li.is-done + li::before {
    background: var(--vc-blue);
}

.velischat-stepper-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #D5D9E0;
    background: #fff;
    color: var(--vc-muted);
    font-size: 13px;
    font-weight: 700;
    box-sizing: border-box;
}

.velischat-stepper-label {
    font-size: 12px;
    color: var(--vc-muted);
}

.velischat-stepper .is-current .velischat-stepper-dot {
    border-color: var(--vc-blue);
    color: var(--vc-blue);
    box-shadow: 0 0 0 4px rgba(31, 91, 255, 0.15);
}

.velischat-stepper .is-current .velischat-stepper-label {
    color: var(--vc-ink);
    font-weight: 600;
}

.velischat-stepper .is-done .velischat-stepper-dot {
    border-color: var(--vc-blue);
    background: var(--vc-blue);
    color: #fff;
}

.velischat-wizard-card {
    padding: 36px 40px 32px;
}

.velischat-wizard-progress {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--vc-blue);
}

.velischat-wizard .velischat-wizard-title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--vc-ink);
}

.velischat-wizard-card p {
    font-size: 15px;
    line-height: 1.6;
}

.velischat-wizard-card form {
    margin-top: 24px;
}

.velischat-wizard-card .velischat-help {
    font-size: 13px;
}

.velischat-wizard-card .velischat-toggle-row {
    margin-bottom: 0;
}

/* Settings cards shown inside a step keep the room below their switches, as on their own pages */
.velischat-wizard-card .velischat-wizard-contents .velischat-toggle-row {
    margin-bottom: 24px;
}

.velischat-wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #EEF0F4;
}

.velischat-wizard-actions .velischat-btn:only-child {
    margin-left: auto;
}

.velischat-wizard-actions-next {
    display: flex;
    align-items: center;
    gap: 16px;
}

.velischat-wizard-skip {
    color: var(--vc-muted);
    font-size: 13px;
    text-decoration: none;
}

.velischat-wizard-skip:hover,
.velischat-wizard-skip:focus {
    color: var(--vc-ink);
    text-decoration: underline;
}

/* Instructions step: the shared content cards become plain sections inside the wizard card */
.velischat-wizard-contents .velischat-card {
    margin: 0;
    padding: 28px 0 0;
    border: 0;
    border-top: 1px solid #EEF0F4;
    border-radius: 0;
    box-shadow: none;
}

.velischat-wizard-contents .velischat-card:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.velischat-wizard-contents .velischat-card + .velischat-card {
    margin-top: 28px;
}

.velischat-wizard-contents .velischat-card-head p {
    font-size: 13px;
}

/* Not enough room for every column of the posts list */
.velischat-wizard-contents .velischat-table tr > :nth-child(4),
.velischat-wizard-contents .velischat-table tr > :nth-child(5) {
    display: none;
}

.velischat-wizard-exit {
    margin: 0;
    text-align: center;
}

.velischat-wizard-exit a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--vc-muted);
    font-size: 13px;
    text-decoration: none;
}

.velischat-wizard-exit a:hover,
.velischat-wizard-exit a:focus {
    background: #fff;
    color: var(--vc-ink);
}

.velischat-wizard-done {
    text-align: center;
}

.velischat-wizard-done-icon.dashicons {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    font-size: 64px;
    color: var(--vc-blue);
}

.velischat-wizard-note {
    padding: 12px 16px;
    border-radius: 10px;
    background: #FFF8E5;
    color: #7A5A00;
}

.velischat-wizard-warnings {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.velischat-wizard-warnings li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #FFF8E5;
    color: #7A5A00;
    font-size: 14px;
    line-height: 1.5;
}

.velischat-wizard-warnings .dashicons {
    flex: none;
    margin-top: 1px;
}

.velischat-wizard-warnings a {
    color: inherit;
    font-weight: 600;
}

.velischat-wizard-done .velischat-wizard-actions {
    justify-content: center;
}

.velischat-wizard-done .velischat-wizard-actions .velischat-btn:only-child {
    margin-left: 0;
}

.velischat-unsaved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-weight: 600;
    color: #B26200;
}

.velischat-unsaved::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F0A000;
    box-shadow: 0 0 0 4px rgba(240, 160, 0, 0.18);
}

.velischat-unsaved[hidden] {
    display: none;
}

/* Support page */
.velischat-support-card .velischat-card-head h2 {
    margin-bottom: 6px;
}

.velischat-support-time {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0 auto 0 0;
    color: var(--vc-muted);
}

.velischat-support-time a {
    font-weight: 600;
    color: var(--vc-blue);
    text-decoration: none;
}

.velischat-support-time a:hover,
.velischat-support-time a:focus {
    text-decoration: underline;
}

/* Licenses */
/* Scoped to beat the generic description rules, since the badge is a span inside them */
.velischat-admin .velischat-addon-badge,
.velischat-dialog .velischat-addon-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1F5BFF, #7B4DFF);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.velischat-addon-note {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px dashed #C9D6FF;
    border-radius: 12px;
    background: #F7F9FF;
}

.velischat-addon-note-icon.dashicons {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--vc-blue);
    font-size: 18px;
    line-height: 36px;
    text-align: center;
}

.velischat-addon-note-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.velischat-addon-note-text span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--vc-muted);
}

.velischat-addon-note .velischat-btn {
    text-decoration: none;
}

.velischat-card > .velischat-toggle-row:last-child {
    margin-bottom: 0;
}

/* Small tabs next to the label of a single field */
.velischat-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.velischat-label-row > label {
    font-weight: 600;
}

.velischat-choices-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 782px) {
    .velischat-card,
    .velischat-wizard-card {
        padding: 22px 18px 24px;
    }

    .velischat-stepper-label {
        display: none;
    }

    .velischat-grid,
    .velischat-questions,
    .velischat-choices,
    .velischat-choices-3 {
        grid-template-columns: 1fr;
    }

    
    .velischat-row,
    .velischat-context-status,
    .velischat-addon-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Paid styles and design fields in the free version */
.velischat-styles + .velischat-addon-note,
.velischat-field + .velischat-addon-note {
    margin: 4px 0 18px;
}

/* Upgrade banner at the bottom of every plugin page, in the free version and in Pro on WooCommerce sites */
.velischat-upgrade-wrap.velischat-admin {
    padding-top: 0;
}

.velischat-upgrade {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 36px 40px;
    border: 1px solid var(--vc-line);
    border-radius: 18px;
    background: linear-gradient(120deg, #FFFFFF 0%, #F4F7FF 55%, #F3EEFF 100%);
    box-shadow: 0 1px 2px rgba(19, 22, 28, 0.04), 0 10px 30px rgba(31, 91, 255, 0.07);
    color: var(--vc-ink);
}

/* ✕ that hides the banner for 30 days */
.velischat-admin .velischat-upgrade-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--vc-muted, #646970);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.velischat-admin .velischat-upgrade-close:hover,
.velischat-admin .velischat-upgrade-close:focus {
    background: rgba(19, 22, 28, 0.06);
    color: var(--vc-ink);
}

.velischat-admin .velischat-upgrade-close:focus {
    outline: 2px solid var(--vc-blue, #1F5BFF);
    outline-offset: 1px;
    box-shadow: none;
}

.velischat-upgrade-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.velischat-upgrade-brand img {
    width: 30px;
    height: 30px;
}

.velischat-upgrade-brand .velischat-wizard-logo-name {
    font-size: 22px;
}

.velischat-admin .velischat-upgrade h2 {
    margin: 0 0 12px;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--vc-ink);
}

.velischat-admin .velischat-upgrade-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #3C434A;
}

.velischat-upgrade-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.velischat-upgrade-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--vc-muted);
}

.velischat-upgrade-features strong {
    display: block;
    color: var(--vc-ink);
}

.velischat-upgrade-features .dashicons {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
    font-size: 16px;
    line-height: 28px;
    text-align: center;
}

.velischat-admin .velischat-upgrade-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--vc-muted);
}

.velischat-upgrade-note .dashicons {
    color: #1B7F4B;
}

.velischat-upgrade-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
}

.velischat-admin a.velischat-upgrade-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    background: var(--vc-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
}

.velischat-admin a.velischat-upgrade-button:hover,
.velischat-admin a.velischat-upgrade-button:focus {
    background: var(--vc-blue);
    color: #fff;
}

.velischat-admin a.velischat-upgrade-button:focus-visible {
    outline: 2px solid var(--vc-blue);
    outline-offset: 3px;
}

.velischat-admin a.velischat-upgrade-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--vc-blue);
}

.velischat-upgrade-preview {
    padding: 22px 24px;
    border: 1px solid var(--vc-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(19, 22, 28, 0.06);
}

.velischat-upgrade-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vc-muted);
}

.velischat-upgrade-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--vc-line);
    border-radius: 999px;
    background: #F6F7F9;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--vc-ink);
    white-space: nowrap;
}

.velischat-upgrade-blur {
    display: flex;
    flex-direction: column;
    gap: 14px;
    filter: blur(3.5px);
    user-select: none;
}

.velischat-upgrade-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.velischat-upgrade-thumb {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #C9D6FF, #E9DDFF);
}

.velischat-upgrade-bar {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1F5BFF, #9C7BFF);
    opacity: 0.75;
}

.velischat-upgrade-num {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--vc-ink);
}

.velischat-upgrade-cart {
    padding: 10px;
    border-radius: 8px;
    background: var(--vc-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 960px) {
    .velischat-upgrade {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .velischat-upgrade-features {
        grid-template-columns: 1fr;
    }

    .velischat-admin .velischat-upgrade h2 {
        font-size: 20px;
    }
}

/* An upgrade box above the fields of a card */
.velischat-addon-note + .velischat-grid,
.velischat-addon-note + .velischat-field,
.velischat-addon-note + .velischat-posts-toolbar {
    margin-top: 18px;
}

/* "How paying works": the plugin and the AI as two separate bills, then what the credit does to the chatbot */
.velischat-billing-bills {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.velischat-billing-bill {
    position: relative;
    padding: 18px 18px 16px;
    border: 1px solid var(--vc-line);
    border-radius: 12px;
    background: #FAFBFD;
}

.velischat-billing-bill strong {
    display: block;
    margin: 10px 0 4px;
    font-size: 15px;
}

.velischat-billing .velischat-billing-bill p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--vc-muted);
}

.velischat-billing-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--vc-blue-soft);
    color: var(--vc-blue);
    font-size: 13px;
    font-weight: 700;
}

.velischat-billing-plus {
    align-self: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--vc-muted);
}

.velischat-billing-states {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.velischat-billing-state {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.velischat-billing-state strong {
    display: block;
}

.velischat-billing-state.is-on {
    background: #EDFAF1;
}

.velischat-billing-state.is-off {
    background: #FDF0F0;
}

/* The chatbot is stopped right now: the "zero" row stands out */
.velischat-billing-state.is-off.is-current {
    box-shadow: inset 0 0 0 2px #D63638;
}

.velischat-billing-light {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
}

.is-on .velischat-billing-light {
    background: #00A32A;
    box-shadow: 0 0 0 3px rgba(0, 163, 42, .18);
}

.is-off .velischat-billing-light {
    background: #D63638;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, .18);
}

/* Connection of the chosen AI service, in the settings and in the wizard */
.velischat-ai-status > div {
    flex: 1;
    min-width: 0;
}

.velischat-ai-status p,
.velischat-ai-steps {
    margin: 8px 0 0;
}

/* The size of the box's text also in the wizard, whose paragraphs are bigger */
.velischat-ai-status p {
    font-size: inherit;
    line-height: inherit;
}

.velischat-ai-steps {
    padding-left: 20px;
}

.velischat-ai-steps li {
    margin: 0 0 4px;
}

.velischat-ai-status .velischat-ai-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.velischat-ai-status .velischat-ai-status-actions:empty {
    display: none;
}

.velischat-billing .velischat-billing-tip {
    display: flex;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.velischat-billing-tip .dashicons {
    flex: none;
    color: #DBA617;
}

.velischat-billing .velischat-billing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 16px 0 0;
    font-size: 13px;
}

.velischat-billing-actions [hidden] {
    display: none;
}

.velischat-billing-actions .velischat-btn,
.velischat-ai-status-actions .velischat-btn {
    gap: 6px;
    text-decoration: none;
}

.velischat-billing-actions .dashicons,
.velischat-ai-status-actions .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

/* On the green or red of the connection box a white button reads better than a transparent one */
.velischat-ai-status-actions .velischat-btn-ghost {
    background: #fff;
}

.velischat-ai-status-actions .velischat-btn-ghost:hover,
.velischat-ai-status-actions .velischat-btn-ghost:focus {
    background: #F6F8FB;
}

/* In the wizard the explainer sits between the step's intro and its fields */
.velischat-wizard .velischat-wizard-subtitle {
    margin: 22px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--vc-ink);
}

.velischat-credit-notice .button {
    margin-inline-end: 8px;
}

@media (max-width: 600px) {
    .velischat-billing-bills {
        grid-template-columns: 1fr;
    }

    .velischat-billing-plus {
        justify-self: center;
        line-height: 1;
    }
}

/* Color fields: the native picker and its hex code */
.velischat-color {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    border: 1px solid #D5D9E0;
    border-radius: 10px;
    background: #FAFBFC;
}

.velischat-color input[type=color] {
    width: 44px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: none;
    cursor: pointer;
}

.velischat-color input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.velischat-color input[type=color]::-webkit-color-swatch {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
}

.velischat-color input[type=color]::-moz-color-swatch {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
}

.velischat-admin .velischat-color .velischat-color-hex {
    width: 92px;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    text-transform: uppercase;
    color: #3C434A;
}

.velischat-admin .velischat-color .velischat-color-hex:focus {
    border-color: var(--vc-blue);
    background: #fff;
    box-shadow: 0 0 0 1px var(--vc-blue);
    outline: none;
}

.velischat-admin .velischat-color .velischat-color-hex.is-invalid {
    border-color: #D63638;
    box-shadow: 0 0 0 1px #D63638;
}

.velischat-color-warning,
.velischat-field-warning {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-left: 3px solid #DBA617;
    border-radius: 0 8px 8px 0;
    background: #FCF9E8;
    font-size: 13px;
    line-height: 1.5;
    color: #3C434A;
}

.velischat-color-warning[hidden] {
    display: none;
}

.velischat-field-warning a {
    color: inherit;
    text-decoration: underline;
}
