.aws-wa-chatbot {
    --aws-wa-accent: #0f8f6f;
    --aws-wa-dark: #17352f;
    --aws-wa-border: #dbe8e4;
    --aws-wa-soft: #f3faf7;
    --aws-wa-shadow: 0 18px 44px rgba(17, 44, 38, 0.2);
    bottom: 22px;
    font-family: inherit;
    position: fixed;
    right: 22px;
    z-index: 99999;
}

.aws-wa-chatbot *,
.aws-wa-chatbot *::before,
.aws-wa-chatbot *::after {
    box-sizing: border-box;
}

.aws-wa-chatbot__launcher {
    align-items: center;
    background: var(--aws-wa-accent);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    box-shadow: var(--aws-wa-shadow);
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 64px;
    justify-content: center;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease;
    width: 64px;
}

.aws-wa-chatbot__launcher:hover,
.aws-wa-chatbot__launcher:focus-visible {
    box-shadow: 0 18px 42px rgba(15, 143, 111, 0.38);
    outline: none;
    transform: translateY(-2px);
}

.aws-wa-chatbot__launcher-icon {
    display: block;
    height: 34px;
    width: 34px;
}

.aws-wa-chatbot__launcher-pulse {
    border: 2px solid rgba(15, 143, 111, 0.36);
    border-radius: 999px;
    inset: -8px;
    position: absolute;
}

.aws-wa-chatbot__panel {
    background: #fff;
    border: 1px solid var(--aws-wa-border);
    border-radius: 8px;
    bottom: 78px;
    box-shadow: var(--aws-wa-shadow);
    display: flex;
    flex-direction: column;
    max-height: min(620px, calc(100vh - 112px));
    overflow: hidden;
    position: absolute;
    right: 0;
    width: min(382px, calc(100vw - 28px));
}

.aws-wa-chatbot__panel[hidden] {
    display: none;
}

.aws-wa-chatbot__header {
    align-items: center;
    background: linear-gradient(135deg, var(--aws-wa-accent), #176f8a);
    color: #fff;
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    justify-content: space-between;
    padding: 16px;
}

.aws-wa-chatbot__title {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.aws-wa-chatbot__status {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.86;
}

.aws-wa-chatbot__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex: 0 0 auto;
    font-size: 24px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.aws-wa-chatbot__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 260px;
    overflow-y: auto;
    padding: 14px;
}

.aws-wa-chatbot__messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aws-wa-chatbot__message {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 92%;
}

.aws-wa-chatbot__message--bot {
    align-self: flex-start;
}

.aws-wa-chatbot__message--user {
    align-self: flex-end;
}

.aws-wa-chatbot__bubble {
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    padding: 10px 12px;
    white-space: pre-wrap;
}

.aws-wa-chatbot__message--bot .aws-wa-chatbot__bubble {
    background: var(--aws-wa-soft);
    color: var(--aws-wa-dark);
}

.aws-wa-chatbot__message--user .aws-wa-chatbot__bubble {
    background: var(--aws-wa-accent);
    color: #fff;
}

.aws-wa-chatbot__message.is-typing .aws-wa-chatbot__bubble {
    opacity: 0.75;
}

.aws-wa-chatbot__links {
    display: grid;
    gap: 6px;
}

.aws-wa-chatbot__links a {
    background: #fff;
    border: 1px solid var(--aws-wa-border);
    border-radius: 8px;
    color: #0c7057;
    display: block;
    font-size: 13px;
    line-height: 1.25;
    padding: 9px 10px;
    text-decoration: none;
}

.aws-wa-chatbot__links a:hover,
.aws-wa-chatbot__links a:focus-visible {
    border-color: var(--aws-wa-accent);
    outline: none;
}

.aws-wa-chatbot__quick-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 7px;
}

.aws-wa-chatbot__quick-actions button {
    background: #fff;
    border: 1px solid var(--aws-wa-border);
    border-radius: 999px;
    color: var(--aws-wa-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    line-height: 1.2;
    padding: 8px 10px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.aws-wa-chatbot__quick-actions button:hover,
.aws-wa-chatbot__quick-actions button:focus-visible {
    background: var(--aws-wa-soft);
    border-color: var(--aws-wa-accent);
    color: #0c7057;
    outline: none;
}

.aws-wa-chatbot__footer {
    border-top: 1px solid var(--aws-wa-border);
    display: grid;
    flex: 0 0 auto;
    gap: 8px;
    padding: 10px;
}

.aws-wa-chatbot__composer {
    align-items: center;
    background: #f8fbfa;
    border: 1px solid var(--aws-wa-border);
    border-radius: 999px;
    display: flex;
    gap: 8px;
    padding: 5px;
}

.aws-wa-chatbot__composer:focus-within {
    border-color: var(--aws-wa-accent);
    box-shadow: 0 0 0 3px rgba(15, 143, 111, 0.13);
}

.aws-wa-chatbot__composer input {
    background: transparent;
    border: 0;
    color: #1d2c28;
    flex: 1 1 auto;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    min-width: 0;
    padding: 8px 9px;
}

.aws-wa-chatbot__composer input:focus {
    outline: none;
}

.aws-wa-chatbot__composer button {
    align-items: center;
    background: var(--aws-wa-accent);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    transition: background 160ms ease, transform 160ms ease;
    width: 36px;
}

.aws-wa-chatbot__composer button:hover,
.aws-wa-chatbot__composer button:focus-visible {
    background: #0c7359;
    outline: none;
    transform: translateY(-1px);
}

.aws-wa-chatbot__composer svg {
    height: 19px;
    width: 19px;
}

.aws-wa-chatbot__whatsapp {
    color: #0c7057;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.aws-wa-chatbot__whatsapp:hover,
.aws-wa-chatbot__whatsapp:focus-visible {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .aws-wa-chatbot {
        bottom: 14px;
        right: 14px;
    }

    .aws-wa-chatbot__launcher {
        height: 58px;
        width: 58px;
    }

    .aws-wa-chatbot__launcher-icon {
        height: 31px;
        width: 31px;
    }

    .aws-wa-chatbot__panel {
        bottom: 70px;
        max-height: calc(100vh - 94px);
    }

    .aws-wa-chatbot__body {
        min-height: 220px;
    }
}
