.vsa-service,
.vsa-panel,
.vsa-chat,
.vsa-chat-panel {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: #2f3640;
}

.vsa-submit:hover {
    background: #e6b60f;
}

.vsa-panel {
    position: fixed;
    z-index: 2147483001;
    top: 72px;
    right: 16px;
    width: 400px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(20, 20, 20, 0.22);
    overflow: hidden;
    display: none !important;
}

.vsa-panel[hidden] {
    display: none !important;
}

.vsa-panel.is-open {
    display: block !important;
    overflow: auto;
}

.vsa-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #eceef1;
}

.vsa-panel__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #2b3238;
}

.vsa-panel__close {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #8b939c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.vsa-messages {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    display: none !important;
    flex-direction: column;
    gap: 10px;
    background: transparent;
}

.vsa-messages.is-visible {
    display: flex !important;
    max-height: 260px;
    overflow-y: auto;
    padding: 16px 22px;
    background: #f7f8fa;
}

.vsa-panel.is-result .vsa-messages.is-visible {
    max-height: 360px;
}

.vsa-bubble {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.vsa-bubble--bot {
    align-self: flex-start;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.vsa-bubble--user {
    align-self: flex-end;
    background: #fff4c4;
}


.vsa-routing {
    margin-top: 12px;
}

.vsa-routing p {
    margin: 0 0 10px;
}

.vsa-routing__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vsa-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.vsa-action--dtc {
    background: #f5c518;
    color: #1f2328;
}

.vsa-action--b2b {
    background: #2f3640;
    color: #fff;
}

.vsa-form {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 22px;
}

.vsa-label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #3a4047;
}

.vsa-req {
    color: #e53935;
}

.vsa-input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d5dbe1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.vsa-input::-webkit-credentials-auto-fill-button,
.vsa-input::-webkit-strong-password-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    display: none !important;
    position: absolute;
    right: 0;
    width: 0;
    height: 0;
}

.vsa-input:focus {
    border-color: #f5c518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.18);
}

.vsa-error {
    margin: 10px 0 0;
    color: #c0392b;
    font-size: 13px;
}

.vsa-recaptcha {
    margin-top: 12px;
}

.grecaptcha-badge,
iframe[src*="recaptcha"] {
    z-index: 100001 !important;
}

.vsa-submit {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: #f5c518;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.vsa-submit:disabled {
    opacity: 1;
    cursor: wait;
    background: #e0b510;
}

.vsa-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff8db;
    color: #3a4047;
    font-size: 14px;
    font-weight: 600;
}

.vsa-loading[hidden] {
    display: none !important;
}

.vsa-spinner {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 3px solid rgba(58, 64, 71, 0.2);
    border-top-color: #3a4047;
    border-radius: 50%;
    animation: vsa-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.vsa-spinner--btn {
    width: 16px;
    height: 16px;
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

.vsa-spinner--btn[hidden] {
    display: none !important;
}

@keyframes vsa-spin {
    to {
        transform: rotate(360deg);
    }
}

.vsa-form[hidden],
.vsa-retry[hidden] {
    display: none;
}

.vsa-retry {
    padding: 14px 20px 18px;
    border-top: 1px solid #eef0f3;
}

.vsa-retry p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #8b939c;
}

.vsa-retry__link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.pac-container {
    z-index: 2147483646 !important;
    pointer-events: auto !important;
}

.pac-item {
    cursor: pointer;
}

button.vsa-action {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.vsa-routing__types {
    max-height: 240px;
    overflow: auto;
}

.vsa-routing__types .vsa-action {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    border-radius: 10px;
}

.vsa-header-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 22px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 6 !important;
}

.vsa-header-actions > .thrv_wrapper {
    width: auto !important;
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
}

.vsa-header-actions .tve-cb {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
}

.vsa-header-actions .tcb-clear,
.vsa-header-actions .tcb-clear::after,
.vsa-header-actions .thrv_wrapper.thrv_icon,
.vsa-header-actions .thrv_wrapper.thrv_text_element {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
}

.vsa-header-actions .tcb-clear::after {
    display: none !important;
    content: none !important;
}

.vsa-header-actions .thrv_wrapper.thrv_icon.tcb-icon-display {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
}

.vsa-header-actions .thrv_wrapper.thrv_icon svg,
.vsa-header-actions .thrv_wrapper.thrv_icon svg path {
    fill: #fff !important;
    color: #fff !important;
}

.vsa-header-actions p {
    margin: 0 !important;
    white-space: nowrap !important;
}

.vsa-header-actions a,
button.vsa-header-btn,
button.vsa-header-btn strong {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

button.vsa-header-btn {
    display: inline !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    cursor: pointer !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
}

button.vsa-header-btn--fallback {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-right: 18px !important;
}

button.vsa-header-btn--fallback svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.vsa-service {
    position: static;
}

.vsa-mobile-fab {
    display: none !important;
    position: fixed !important;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    max-width: calc(100vw - 100px);
    padding: 0 16px 0 14px;
    border: 0 !important;
    border-radius: 999px !important;
    background: #d69f00 !important;
    color: #1f2328 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.vsa-mobile-fab svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

.vsa-mobile-fab__label {
    white-space: nowrap;
}

.vsa-mobile-fab[aria-expanded="true"] {
    background: #c49000 !important;
}

.vsa-panel.is-mobile-anchor {
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(max(24px, env(safe-area-inset-bottom)) + 72px) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(70vh, calc(100vh - 120px)) !important;
}

.vsa-chat {
    --vsa-green: #1f7a4d;
    --vsa-green-dark: #17633e;
    --vsa-green-soft: #e8f6ef;
    --vsa-green-mid: #3a9a68;
    --vsa-ink: #1a2b22;
    --vsa-muted: #6b7c72;
    position: fixed !important;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    width: 64px;
    height: 64px;
    overflow: visible;
}

.vsa-chat-fab {
    width: 64px;
    height: 64px;
    border: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, var(--vsa-green-mid), var(--vsa-green)) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(31, 122, 77, 0.38);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.vsa-chat-fab:hover {
    background: linear-gradient(145deg, var(--vsa-green), var(--vsa-green-dark)) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(31, 122, 77, 0.45);
}

.vsa-chat-fab[aria-expanded="true"] {
    transform: scale(0.96);
}

.vsa-chat-fab svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

.vsa-chat-panel {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: calc(max(24px, env(safe-area-inset-bottom)) + 78px);
    z-index: 2147483000;
    width: min(392px, calc(100vw - 32px));
    height: min(580px, calc(100vh - 140px));
    background: #f4faf7;
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(20, 40, 30, 0.28);
    border: 1px solid rgba(31, 122, 77, 0.12);
    display: none !important;
    flex-direction: column;
    overflow: hidden;
}

.vsa-chat-panel[hidden] {
    display: none !important;
}

.vsa-chat-panel.is-open {
    display: flex !important;
    animation: vsa-chat-in 0.22s ease;
}

@keyframes vsa-chat-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.vsa-chat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 14px 16px;
    background: linear-gradient(135deg, var(--vsa-green) 0%, #246b4a 55%, var(--vsa-green-dark) 100%);
    color: #fff;
}

.vsa-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vsa-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vsa-chat-avatar svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.vsa-chat-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vsa-chat-brand-text strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vsa-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.92;
    font-weight: 500;
}

.vsa-chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8dffb5;
    box-shadow: 0 0 0 0 rgba(141, 255, 181, 0.7);
    animation: vsa-pulse 1.8s infinite;
}

@keyframes vsa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(141, 255, 181, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(141, 255, 181, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(141, 255, 181, 0);
    }
}

.vsa-chat-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vsa-chat-restart {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px !important;
    padding: 7px 10px !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    line-height: 1 !important;
    border-radius: 999px !important;
}

.vsa-chat-restart:hover {
    background: rgba(255, 255, 255, 0.24) !important;
}

.vsa-chat-close {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    font-weight: 400;
    font-size: 28px;
    padding: 0 4px !important;
    min-height: 0 !important;
    height: 32px !important;
    width: 32px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
}

.vsa-chat-close:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

.vsa-chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(circle at top right, rgba(31, 122, 77, 0.08), transparent 42%),
        #f4faf7;
    scroll-behavior: smooth;
}

.vsa-chat-msg {
    max-width: 88%;
    font-size: 14px;
    line-height: 1.5;
    color: var(--vsa-ink);
}

.vsa-chat-bubble {
    margin: 0;
    padding: 11px 13px;
    border-radius: 16px;
    white-space: pre-wrap;
    word-break: break-word;
}

.vsa-chat-msg--bot {
    align-self: flex-start;
}

.vsa-chat-msg--bot .vsa-chat-bubble {
    background: #fff;
    border: 1px solid rgba(31, 122, 77, 0.1);
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(20, 40, 30, 0.05);
}

.vsa-chat-msg--user {
    align-self: flex-end;
}

.vsa-chat-msg--user .vsa-chat-bubble {
    background: var(--vsa-green);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 12px rgba(31, 122, 77, 0.22);
}

.vsa-chat-msg a.vsa-inline-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.vsa-chat-msg--bot a.vsa-inline-link {
    color: var(--vsa-green-dark);
}

.vsa-chat-msg--user a.vsa-inline-link {
    color: #fff;
}

.vsa-chat-typing .vsa-chat-bubble {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
    padding: 12px 14px;
    color: var(--vsa-muted);
}

.vsa-chat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vsa-green-mid);
    opacity: 0.35;
    animation: vsa-dot 1.2s infinite ease-in-out;
}

.vsa-chat-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.vsa-chat-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes vsa-dot {
    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.vsa-chat-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--vsa-green);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 6px 14px rgba(31, 122, 77, 0.25);
}

.vsa-chat-link:hover {
    background: var(--vsa-green-dark);
}

.vsa-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow: auto;
    padding: 0 14px 12px;
    background: transparent;
}

.vsa-chips[hidden] {
    display: none !important;
}

.vsa-chip {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    border: 1px solid rgba(31, 122, 77, 0.22) !important;
    background: #fff !important;
    color: var(--vsa-green-dark) !important;
    border-radius: 999px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(20, 40, 30, 0.04) !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.vsa-chip:hover {
    border-color: var(--vsa-green) !important;
    background: var(--vsa-green-soft) !important;
    transform: translateY(-1px);
}

.vsa-chat-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 12px 12px 14px;
    border-top: 1px solid rgba(31, 122, 77, 0.12);
    background: #fff;
}

.vsa-chat-input {
    flex: 1;
    width: 100%;
    min-height: 44px;
    max-height: 110px;
    padding: 11px 14px;
    border: 1px solid #d7e5dd;
    border-radius: 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.35;
    resize: none;
    outline: none;
    background: #f7fbf9;
    color: var(--vsa-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vsa-chat-input:focus {
    border-color: var(--vsa-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.16);
}

.vsa-chat-input:disabled {
    opacity: 1;
    cursor: text;
    background: #f7fbf9;
}

.vsa-chat-send {
    border: 0 !important;
    background: var(--vsa-green) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 50% !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(31, 122, 77, 0.28) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vsa-chat-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
    margin-left: 2px;
}

.vsa-chat-send:hover {
    background: var(--vsa-green-dark) !important;
}

.vsa-chat-send:disabled {
    cursor: wait;
    opacity: 0.55;
}

.vsa-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

button.vsa-header-btn:focus-visible,
.vsa-mobile-fab:focus-visible,
.vsa-chat-fab:focus-visible,
.vsa-chip:focus-visible,
.vsa-chat-send:focus-visible,
.vsa-chat-restart:focus-visible,
.vsa-chat-close:focus-visible {
    outline: 2px solid #1f7a4d;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .vsa-header-actions {
        display: contents !important;
    }

    .vsa-service-slot,
    button.vsa-header-btn,
    button.vsa-header-btn--fallback {
        display: none !important;
    }

    .vsa-mobile-fab {
        display: inline-flex !important;
    }

    .vsa-chat {
        right: 12px;
        bottom: 12px;
    }

    .vsa-chat-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 90px;
    }

    .vsa-chat-restart {
        padding: 7px 9px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .vsa-mobile-fab {
        left: 12px;
        bottom: 12px;
        min-height: 48px;
        padding: 0 14px 0 12px;
        font-size: 12px;
    }

    .vsa-panel.is-mobile-anchor {
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 68px) !important;
    }
}
