.df-chat {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    font-family: Arial, sans-serif;
}
.df-chat * {
    box-sizing: border-box;
}
.df-chat__launcher {
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: #1e8074;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .22);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.df-chat__window {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(400px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 92px));
    display: none;
    grid-template-rows: auto 1fr auto;
    background: #fff;
    border: 1px solid #dbe8ee;
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
    overflow: hidden;
}
.df-chat.is-open .df-chat__window {
    display: grid;
}
.df-chat__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    background: #1e8074;
    color: #fff;
}
.df-chat__header strong,
.df-chat__header span {
    display: block;
}
.df-chat__header span {
    font-size: 12px;
    opacity: .9;
}
.df-chat__header button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    cursor: pointer;
}
.df-chat__body {
    padding: 14px;
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 10px;
    background: #f8fafc;
    min-height: 0;
}
.df-chat__bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.45;
}
.df-chat__bubble.is-user {
    justify-self: end;
    background: #e6fffb;
    border-color: #99f6e4;
}
.df-chat__bubble small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
}
.df-chat__choices,
.df-chat__form {
    display: grid;
    gap: 8px;
}
.df-chat__choice,
.df-chat__form button,
.df-chat__input button {
    border: 0;
    border-radius: 8px;
    background: #1e8074;
    color: #fff;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    text-align: left;
}
.df-chat__choice.is-light {
    background: #e2e8f0;
    color: #0f172a;
}
.df-chat__form label {
    display: grid;
    gap: 4px;
    color: #155f58;
    font-size: 12px;
    font-weight: 900;
}
.df-chat__form input,
.df-chat__form textarea,
.df-chat__input input {
    width: 100%;
    min-width: 0;
    border: 1px solid #cfe9e4;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
}
.df-chat__form textarea {
    min-height: 74px;
    resize: vertical;
}
.df-chat__input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.df-chat__input button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
    overflow: hidden;
}
@media (max-width: 640px) {
    .df-chat {
        right: 10px;
        bottom: 10px;
    }
    .df-chat__window {
        width: calc(100vw - 20px);
        height: min(560px, calc(100vh - 84px));
    }
}
