.amt-chatbot {
    --amt-color: #0f766e;
    --amt-text: #13201f;
    --amt-muted: #64748b;
    --amt-border: #dbe4e2;
    --amt-bg: #ffffff;
    bottom: 22px;
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    right: 22px;
    z-index: 999999;
}

.amt-chatbot * {
    box-sizing: border-box;
}

.amt-chatbot__launcher {
    align-items: center;
    background: var(--amt-color);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px;
}

.amt-chatbot__launcher-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.amt-chatbot__panel {
    background: var(--amt-bg);
    border: 1px solid var(--amt-border);
    border-radius: 8px;
    bottom: 68px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.2);
    display: flex;
    flex-direction: column;
    max-height: min(620px, calc(100vh - 110px));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: 360px;
}

.amt-chatbot__panel[hidden] {
    display: none !important;
}

.amt-chatbot__panel.is-closed {
    display: none !important;
}

.amt-chatbot__header {
    align-items: center;
    background: var(--amt-color);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 66px;
    padding: 14px 16px;
}

.amt-chatbot__title,
.amt-chatbot__subtitle {
    display: block;
}

.amt-chatbot__title {
    font-size: 16px;
    line-height: 1.25;
}

.amt-chatbot__subtitle {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.86;
}

.amt-chatbot__close {
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    height: 32px;
    line-height: 1;
    width: 32px;
}

.amt-chatbot__messages {
    background: #f8faf9;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
}

.amt-chatbot__message {
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    max-width: 88%;
    padding: 10px 12px;
    white-space: pre-line;
}

.amt-chatbot__message--bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--amt-border);
    color: var(--amt-text);
}

.amt-chatbot__message--user {
    align-self: flex-end;
    background: var(--amt-color);
    color: #fff;
}

.amt-chatbot__quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.amt-chatbot__quick-reply {
    background: #fff;
    border: 1px solid var(--amt-border);
    border-radius: 999px;
    color: var(--amt-text);
    cursor: pointer;
    font-size: 12px;
    padding: 7px 10px;
}

.amt-chatbot__lead-form {
    align-self: stretch;
    background: #fff;
    border: 1px solid var(--amt-border);
    border-radius: 8px;
    color: var(--amt-text);
    display: grid;
    gap: 9px;
    padding: 12px;
}

.amt-chatbot__lead-title {
    font-size: 14px;
    line-height: 1.3;
}

.amt-chatbot__lead-form label {
    display: grid;
    gap: 4px;
    margin: 0;
}

.amt-chatbot__lead-form span,
.amt-chatbot__lead-note {
    color: var(--amt-muted);
    font-size: 12px;
    line-height: 1.35;
}

.amt-chatbot__lead-form input,
.amt-chatbot__lead-form select,
.amt-chatbot__lead-form textarea {
    border: 1px solid var(--amt-border);
    border-radius: 6px;
    color: var(--amt-text);
    font-family: inherit;
    font-size: 13px;
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
}

.amt-chatbot__lead-form textarea {
    min-height: 72px;
    resize: vertical;
}

.amt-chatbot__lead-submit {
    background: var(--amt-color);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    padding: 0 12px;
}

.amt-chatbot__lead-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.amt-chatbot__lead-note {
    margin: 0;
}

.amt-chatbot__form {
    background: #fff;
    border-top: 1px solid var(--amt-border);
    display: flex;
    gap: 8px;
    padding: 10px;
}

.amt-chatbot__input {
    border: 1px solid var(--amt-border);
    border-radius: 6px;
    color: var(--amt-text);
    flex: 1;
    font-size: 14px;
    min-height: 42px;
    min-width: 0;
    padding: 0 12px;
}

.amt-chatbot__input:focus {
    border-color: var(--amt-color);
    outline: 2px solid rgba(15, 118, 110, 0.18);
}

.amt-chatbot__send {
    background: var(--amt-color);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    min-height: 42px;
    padding: 0 14px;
}

@media (max-width: 480px) {
    .amt-chatbot {
        bottom: 14px;
        left: 14px;
        right: 14px;
    }

    .amt-chatbot__launcher {
        justify-content: center;
        width: 100%;
    }

    .amt-chatbot__panel {
        bottom: 64px;
        width: 100%;
    }
}
