.samw-chat-panel,
.samw-chat-panel *,
.samw-floating-actions,
.samw-floating-actions *,
.samw-toast {
    box-sizing: border-box;
}

.samw-chat-panel {
    position: fixed;
    z-index: 1045;
    right: 28px;
    bottom: 96px;
    width: min(350px, calc(100vw - 32px));
    border: 1px solid rgba(22, 25, 31, .1);
    border-radius: 20px;
    color: #16191f;
    background: #fff;
    box-shadow: 0 25px 70px rgba(22, 25, 31, .22);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.samw-chat-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.samw-chat-head {
    min-height: 74px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    background: linear-gradient(135deg, #118f4c, #20aa60);
}

.samw-chat-avatar {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    font-size: 24px;
}

.samw-chat-identity {
    min-width: 0;
    flex: 1;
}

.samw-chat-identity strong,
.samw-chat-identity span {
    display: block;
}

.samw-chat-identity strong {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.samw-chat-identity span {
    margin-top: 1px;
    color: rgba(255, 255, 255, .78);
    font-size: 9px;
}

.samw-chat-identity span i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: #81f7ad;
}

.samw-chat-close {
    width: 33px;
    height: 33px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .82);
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease;
}

.samw-chat-close:hover,
.samw-chat-close:focus {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    outline: none;
}

.samw-chat-body {
    padding: 17px;
    background:
        radial-gradient(circle at 20% 30%, rgba(44, 112, 75, .04) 0 2px, transparent 2px),
        #f1eee9;
    background-size: 22px 22px;
}

.samw-chat-time {
    margin-bottom: 12px;
    color: #9b9994;
    text-align: center;
    font-size: 7px;
    font-weight: 750;
    letter-spacing: .08em;
}

.samw-chat-bubble {
    position: relative;
    max-width: 86%;
    padding: 11px 12px 8px;
    border-radius: 4px 13px 13px 13px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(22, 25, 31, .08);
}

.samw-chat-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -7px;
    border-top: 8px solid #fff;
    border-left: 8px solid transparent;
}

.samw-chat-bubble small {
    color: #16884b;
    font-size: 8px;
    font-weight: 780;
}

.samw-chat-bubble p {
    margin: 5px 0 1px;
    color: #30343a;
    font-size: 11px;
    line-height: 1.5;
}

.samw-chat-bubble time {
    display: block;
    color: #aaa9a5;
    text-align: right;
    font-size: 7px;
}

.samw-chat-cta {
    width: 100%;
    min-height: 43px;
    margin-top: 15px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: #22a861;
    font-size: 11px;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 11px 22px rgba(34, 168, 97, .2);
    transition: background .2s ease, transform .2s ease;
}

.samw-chat-cta:hover,
.samw-chat-cta:focus {
    color: #fff;
    background: #16884b;
    transform: translateY(-1px);
    outline: none;
}

.samw-chat-cta i {
    margin-right: 6px;
    font-size: 15px;
}

.samw-floating-actions {
    position: fixed;
    z-index: 1040;
    right: 28px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.samw-float-button {
    height: 54px;
    padding: 0 17px;
    border: 0;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: #16191f;
    box-shadow: 0 14px 35px rgba(22, 25, 31, .24);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.samw-float-button:hover,
.samw-float-button:focus {
    color: #fff;
    background: #050607;
    transform: translateY(-3px);
    outline: none;
}

.samw-float-button span {
    font-size: 10px;
    font-weight: 780;
}

.samw-whatsapp-button {
    width: 58px;
    padding: 0;
    background: #22a861;
}

.samw-whatsapp-button:hover,
.samw-whatsapp-button:focus {
    background: #16884b;
}

.samw-whatsapp-button i {
    font-size: 25px;
}

.samw-whatsapp-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.samw-toast {
    position: fixed;
    z-index: 1060;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    max-width: min(420px, calc(100vw - 36px));
    padding: 13px 18px;
    border-radius: 11px;
    color: #fff;
    background: #16191f;
    box-shadow: 0 24px 70px rgba(22, 25, 31, .2);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .samw-chat-panel {
        right: 16px;
        bottom: 88px;
    }

    .samw-floating-actions {
        right: 16px;
        bottom: 18px;
    }

    .samw-call-button {
        width: 54px;
        padding: 0;
    }

    .samw-call-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .samw-chat-panel,
    .samw-chat-cta,
    .samw-float-button {
        transition: none;
    }
}
