.dt-chat {
    --dt-chat-green: #035121;
    --dt-chat-green-dark: #023d19;
    --dt-chat-ink: #183027;
    --dt-chat-muted: #66756e;
    --dt-chat-border: #e3e9e5;
    --dt-chat-surface: #fff;
    --dt-chat-shadow: 0 18px 56px rgba(10, 35, 22, .22);
    position: fixed;
    right: 24px;
    bottom: 12px;
    z-index: 1045;
    color: var(--dt-chat-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dt-chat *,
.dt-chat *::before,
.dt-chat *::after {
    box-sizing: border-box;
}

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

.dt-chat__launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--dt-chat-green);
    color: #fff;
    box-shadow: 0 8px 26px rgba(3, 81, 33, .3);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dt-chat__launcher:hover {
    transform: translateY(-2px);
    background: var(--dt-chat-green-dark);
    box-shadow: 0 12px 30px rgba(3, 81, 33, .36);
}

.dt-chat__launcher:focus-visible,
.dt-chat__close:focus-visible,
.dt-chat__send:focus-visible,
.dt-chat__suggestion:focus-visible,
.dt-chat__input:focus-visible {
    outline: 3px solid #d9a947;
    outline-offset: 3px;
}

.dt-chat__contact-input:focus-visible,
.dt-chat__contact-submit:focus-visible {
    outline: 3px solid #d9a947;
    outline-offset: 2px;
}

.dt-chat__launcher svg {
    width: 23px;
    height: 23px;
}

.dt-chat__panel {
    position: absolute;
    right: 0;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    height: min(620px, calc(100dvh - 118px));
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(20, 54, 36, .12);
    border-radius: 20px;
    background: var(--dt-chat-surface);
    box-shadow: var(--dt-chat-shadow);
    animation: dt-chat-enter .2s ease-out;
}

.dt-chat__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 17px;
    background: var(--dt-chat-green);
    color: #fff;
}

.dt-chat__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dt-chat__avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .13);
}

.dt-chat__avatar svg {
    width: 24px;
    height: 24px;
}

.dt-chat__brand strong,
.dt-chat__status {
    display: block;
}

.dt-chat__brand strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-chat__status {
    margin-top: 4px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

.dt-chat__status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: #8de0a7;
    vertical-align: 1px;
}

.dt-chat__close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.dt-chat__close:hover {
    background: rgba(255, 255, 255, .14);
}

.dt-chat__close svg {
    width: 20px;
    height: 20px;
}

.dt-chat__intro {
    flex: 0 0 auto;
    padding: 17px 20px 12px;
    background: #f7faf8;
    border-bottom: 1px solid var(--dt-chat-border);
}

.dt-chat__intro p {
    margin: 0;
    color: var(--dt-chat-ink);
    font-size: 14px;
    font-weight: 650;
}

.dt-chat__intro span {
    display: block;
    margin-top: 4px;
    color: var(--dt-chat-muted);
    font-size: 12px;
    line-height: 1.5;
}

.dt-chat__contact {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 20px;
    overflow-y: auto;
    background: #fff;
}

.dt-chat__contact h3 {
    margin: 0;
    color: var(--dt-chat-ink);
    font-size: 15px;
    font-weight: 650;
}

.dt-chat__contact > p {
    margin: 4px 0 12px;
    color: var(--dt-chat-muted);
    font-size: 12px;
    line-height: 1.45;
}

.dt-chat__field {
    display: block;
    margin-bottom: 10px;
    color: var(--dt-chat-ink);
    font-size: 12px;
    font-weight: 600;
}

.dt-chat__contact-input {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 4px;
    padding: 0 11px;
    border: 1px solid #dfe7e2;
    border-radius: 9px;
    background: #f9fbfa;
    color: var(--dt-chat-ink);
    font: inherit;
    font-size: 13px;
}

.dt-chat__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 10px;
    color: var(--dt-chat-muted);
    font-size: 11px;
    line-height: 1.45;
}

.dt-chat__consent input {
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--dt-chat-green);
}

.dt-chat__contact-submit {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--dt-chat-green);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.dt-chat__contact-submit:disabled {
    cursor: wait;
    opacity: .6;
}

.dt-chat__contact-error {
    margin: 0 0 9px;
    color: #842d27;
    font-size: 12px;
}

.dt-chat__honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.dt-chat__messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px 16px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    scroll-behavior: smooth;
}

.dt-chat__message {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 15px;
    color: var(--dt-chat-ink);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.dt-chat__message--bot {
    align-self: flex-start;
    border: 1px solid #e6ece8;
    border-bottom-left-radius: 5px;
    background: #f4f7f5;
}

.dt-chat__message--user {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    background: var(--dt-chat-green);
    color: #fff;
}

.dt-chat__message--error {
    border-color: #f2d7d5;
    background: #fff7f6;
    color: #842d27;
}

.dt-chat__message-link {
    color: var(--dt-chat-green);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dt-chat__message--user .dt-chat__message-link {
    color: #fff;
}

.dt-chat__typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 35px;
}

.dt-chat__typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #83948b;
    animation: dt-chat-pulse 1s ease-in-out infinite;
}

.dt-chat__typing i:nth-child(2) {
    animation-delay: .14s;
}

.dt-chat__typing i:nth-child(3) {
    animation-delay: .28s;
}

.dt-chat__suggestions {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    padding: 4px 16px 12px;
    overflow-x: auto;
    background: #fff;
    scrollbar-width: thin;
}

.dt-chat__suggestion {
    flex: 0 0 auto;
    max-width: 230px;
    padding: 8px 11px;
    overflow: hidden;
    border: 1px solid #d9e6dd;
    border-radius: 999px;
    background: #fff;
    color: var(--dt-chat-green);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dt-chat__suggestion:hover {
    border-color: var(--dt-chat-green);
    background: #f3f8f4;
}

.dt-chat__composer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 12px 14px 9px;
    border-top: 1px solid var(--dt-chat-border);
    background: #fff;
}

.dt-chat__input {
    width: 100%;
    min-width: 0;
    height: 45px;
    padding: 0 14px;
    border: 1px solid #dfe7e2;
    border-radius: 12px;
    background: #f9fbfa;
    color: var(--dt-chat-ink);
    font: inherit;
    font-size: 13px;
}

.dt-chat__input::placeholder {
    color: #8b9991;
}

.dt-chat__send {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: var(--dt-chat-green);
    color: #fff;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.dt-chat__send:hover {
    background: var(--dt-chat-green-dark);
}

.dt-chat__send:disabled {
    cursor: wait;
    opacity: .58;
}

.dt-chat__send svg {
    width: 20px;
    height: 20px;
}

.dt-chat__footnote {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px 12px;
    background: #fff;
    color: var(--dt-chat-muted);
    font-size: 10px;
}

.dt-chat__footnote a {
    flex: 0 0 auto;
    color: var(--dt-chat-green);
    font-weight: 650;
    text-decoration: none;
}

.dt-chat__footnote a:hover {
    text-decoration: underline;
}

@keyframes dt-chat-enter {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dt-chat-pulse {
    0%, 60%, 100% { opacity: .4; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 575.98px) {
    .dt-chat {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .dt-chat__launcher {
        min-height: 54px;
        padding: 0 18px;
        font-size: 14px;
    }

    .dt-chat__panel {
        position: fixed;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100vw - 20px);
        height: min(680px, calc(100dvh - 20px));
        min-height: min(440px, calc(100dvh - 20px));
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dt-chat *,
    .dt-chat *::before,
    .dt-chat *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
