.eco-chatbot {
    --chat-green: #087965;
    --chat-dark: #083a32;
    --chat-border: #dce9e6;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 49997;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.eco-chatbot__toggle {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 20px;
    border: 0;
    border-radius: 30px;
    background: var(--chat-green);
    box-shadow: 0 8px 24px rgba(8, 58, 50, .28);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.eco-chatbot__toggle i {
    font-size: 20px;
}

.eco-chatbot__toggle:hover,
.eco-chatbot__form button:hover {
    background: var(--chat-dark);
}

.eco-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    display: flex;
    width: min(370px, calc(100vw - 32px));
    height: min(600px, calc(100vh - 110px));
    min-height: 360px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--chat-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(11, 48, 69, .2);
}

.eco-chatbot__panel[hidden] {
    display: none;
}

.eco-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e6ebf0;
    background: #fff;
    color: #1c2b36;
}

.eco-chatbot__identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.eco-chatbot__identity > div {
    display: grid;
    gap: 2px;
}

.eco-chatbot__identity strong {
    font-size: 16px;
}

.eco-chatbot__identity span:last-child {
    color: #6b7a86;
    font-size: 12px;
}

.eco-chatbot__avatar {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e6ebf0;
    border-radius: 50%;
    background: #fff;
}

.eco-chatbot__avatar img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.eco-chatbot__close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #4a5a66;
    cursor: pointer;
    font-size: 17px;
}

.eco-chatbot__close:hover {
    background: #eef2f5;
}

.eco-chatbot__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px 14px;
    background: #fff;
}

.eco-chatbot__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0 4px;
    text-align: center;
}

.eco-chatbot__intro-logo {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    margin-bottom: 6px;
    border: 1px solid #e6ebf0;
    border-radius: 50%;
    background: #fff;
}

.eco-chatbot__intro-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.eco-chatbot__intro strong {
    color: #1c2b36;
    font-size: 17px;
}

.eco-chatbot__intro-sub {
    color: #7b8893;
    font-size: 14px;
}

.eco-chatbot__social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.eco-chatbot__social a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
}

.eco-chatbot__social .is-facebook { background: #1877f2; }
.eco-chatbot__social .is-instagram { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4); }
.eco-chatbot__social .is-youtube { background: #ff0000; }

.eco-chatbot__date {
    align-self: center;
    margin: 6px 0 2px;
    color: #8b97a1;
    font-size: 13px;
}

.eco-chatbot__row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 92%;
}

.eco-chatbot__row--user {
    align-self: flex-end;
    justify-content: flex-end;
}

.eco-chatbot__bot-avatar {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: #eef2f5;
    color: #5a6b78;
    font-size: 13px;
}

.eco-chatbot__stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.eco-chatbot__time {
    padding: 0 4px;
    color: #9aa6b0;
    font-size: 11px;
}

.eco-chatbot__row--user .eco-chatbot__time {
    align-self: flex-end;
}

.eco-chatbot__message {
    max-width: 100%;
    padding: 11px 14px;
    border-radius: 18px;
    font-size: 14.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.eco-chatbot__message--bot {
    align-self: flex-start;
    background: #eceef1;
    color: #1c2b36;
}

.eco-chatbot__message--user {
    align-self: flex-end;
    background: #4a90e2;
    color: #fff;
}

.eco-chatbot__message a {
    display: inline-block;
    margin-top: 8px;
    color: #0b5cad;
    font-weight: 700;
    text-decoration: underline;
}

.eco-chatbot__services {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 4px 0 0 36px;
}

.eco-chatbot__services button {
    padding: 8px 12px;
    line-height: 1.35;
    border: 1px solid #d7dee5;
    border-radius: 10px;
    background: #fff;
    color: #183d49;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.eco-chatbot__services button:hover {
    background: #eef4fa;
}

.eco-chatbot__services--back {
    padding-left: 36px;
}

.eco-chatbot__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-left: 36px;
}

.eco-chatbot__suggestions button {
    padding: 7px 12px;
    border: 1px solid #c9d6e2;
    border-radius: 18px;
    background: #fff;
    color: #2b5f8e;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.eco-chatbot__suggestions button:hover {
    background: #eef4fa;
}

.eco-chatbot__form {
    display: flex;
    gap: 8px;
    padding: 10px 12px 6px;
    background: #fff;
}

.eco-chatbot__form input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d7dee5;
    border-radius: 12px;
    color: #183d49;
    font: inherit;
}

.eco-chatbot__form input:focus {
    border-color: #4a90e2;
    outline: 2px solid rgba(74, 144, 226, .18);
}

.eco-chatbot__form button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: 12px;
    background: var(--chat-green);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.eco-chatbot__powered {
    padding: 0 0 10px;
    background: #fff;
    color: #7b8893;
    font-size: 12px;
    text-align: center;
}

.eco-chatbot__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.eco-chatbot button:focus-visible {
    outline: 3px solid #f2bd42;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .eco-chatbot {
        right: 12px;
        bottom: 12px;
    }

    .eco-chatbot__toggle {
        min-height: 52px;
        padding: 0 16px;
    }

    .eco-chatbot__panel {
        right: -4px;
        bottom: 64px;
        width: min(370px, calc(100vw - 24px));
        height: min(520px, calc(100vh - 96px));
    }
}
