.ovf-supportbot {
    --ovf-supportbot-accent: #1f2937;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 2147483000;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

.ovf-supportbot *,
.ovf-supportbot *::before,
.ovf-supportbot *::after {
    box-sizing: border-box;
}

.ovf-supportbot__toggle {
    display: inline-flex;
    min-width: 64px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ovf-supportbot-accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.ovf-supportbot__panel {
    width: min(380px, calc(100vw - 32px));
    height: min(590px, calc(100vh - 110px));
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.ovf-supportbot__panel[hidden] {
    display: none;
}

.ovf-supportbot__header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 12px 18px;
    background: var(--ovf-supportbot-accent);
    color: #fff;
}

.ovf-supportbot__title {
    font-size: 16px;
}

.ovf-supportbot__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font: 26px/1 Arial, sans-serif;
}

.ovf-supportbot__messages {
    height: calc(100% - 172px);
    padding: 16px;
    overflow-y: auto;
    background: #f3f4f6;
}

.ovf-supportbot__message {
    display: flex;
    margin: 0 0 12px;
}

.ovf-supportbot__message--user {
    justify-content: flex-end;
}

.ovf-supportbot__bubble {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ovf-supportbot__message--user .ovf-supportbot__bubble {
    border-radius: 14px 14px 4px 14px;
    background: var(--ovf-supportbot-accent);
    color: #fff;
}

.ovf-supportbot__products {
    display: grid;
    gap: 9px;
    margin-top: 10px;
    white-space: normal;
}

.ovf-supportbot__product {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #f8fafc;
}

.ovf-supportbot__product-name,
.ovf-supportbot__product-number,
.ovf-supportbot__product-excerpt {
    display: block;
}

.ovf-supportbot__product-number {
    color: #475569;
    font-size: 12px;
}

.ovf-supportbot__product-excerpt {
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
}

.ovf-supportbot__product-link {
    margin-top: 3px;
    color: var(--ovf-supportbot-accent);
    font-weight: 700;
    text-decoration: underline;
}

.ovf-supportbot__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 12px 8px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.ovf-supportbot__input {
    min-height: 44px;
    max-height: 96px;
    resize: vertical;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    color: #111827;
    background: #fff;
    font: inherit;
}

.ovf-supportbot__input:focus {
    outline: 2px solid var(--ovf-supportbot-accent);
    outline-offset: 1px;
}

.ovf-supportbot__send {
    align-self: stretch;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: var(--ovf-supportbot-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.ovf-supportbot__send:disabled {
    cursor: wait;
    opacity: .65;
}

.ovf-supportbot__note {
    min-height: 38px;
    padding: 2px 12px 10px;
    background: #fff;
    color: #6b7280;
    font-size: 11px;
}

.ovf-supportbot__note a,
.ovf-supportbot__contact {
    color: var(--ovf-supportbot-accent);
    text-decoration: underline;
}

@media (max-width: 575px) {
    .ovf-supportbot {
        right: 16px;
        bottom: 16px;
    }

    .ovf-supportbot__panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 94px);
    }

    .ovf-supportbot__toggle-text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ovf-supportbot * {
        scroll-behavior: auto !important;
    }
}
