.support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: inherit;
}

.support-widget-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.support-widget-toggle,
.support-widget-whatsapp {
    border: 0;
    border-radius: 999px;
    padding: 13px 19px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(91, 63, 97, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-widget-toggle:hover,
.support-widget-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(91, 63, 97, 0.20);
}

.support-widget-toggle {
    background: linear-gradient(135deg, #b985c9 0%, #d889b6 52%, #efb2a8 100%);
    color: #fff;
}

.support-widget-whatsapp {
    background: #fffaf7;
    color: #4f8f62;
    border: 1px solid rgba(79, 143, 98, 0.18);
}

.support-widget-panel {
    width: 390px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    overflow: hidden;
    margin-bottom: 12px;
    background: #fffaf7;
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(74, 51, 54, 0.18);
    border: 1px solid rgba(226, 202, 178, 0.75);
}

.support-widget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 20px 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 34%),
        linear-gradient(135deg, #b985c9 0%, #d889b6 52%, #efb2a8 100%);
    color: #fff;
}

.support-widget-header strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.support-widget-header span {
    display: block;
    font-size: 13px;
    opacity: 0.94;
}

.support-widget-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 25px;
    line-height: 30px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.support-widget-close:hover {
    background: rgba(255, 255, 255, 0.34);
    transform: rotate(8deg);
}

.support-widget-body {
    padding: 20px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    background:
        radial-gradient(circle at top left, rgba(228, 199, 235, 0.26), transparent 34%),
        #fffaf7;
}

.support-widget-welcome {
    margin: 0 0 16px;
    color: #75625d;
    font-size: 14px;
    line-height: 1.5;
}

.support-widget-field {
    margin-bottom: 15px;
}

.support-widget-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #3b302d;
}

.support-widget-field select,
.support-widget-field textarea {
    width: 100%;
    border: 1px solid rgba(221, 200, 178, 0.95);
    border-radius: 18px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #332c2a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-widget-field select:focus,
.support-widget-field textarea:focus {
    border-color: #d889b6;
    box-shadow: 0 0 0 4px rgba(216, 137, 182, 0.16);
}

.support-widget-field textarea {
    resize: vertical;
    min-height: 118px;
}

.support-widget-field small {
    display: block;
    margin-top: 6px;
    color: #8a7770;
    font-size: 12px;
    line-height: 1.4;
}

.support-widget-submit,
.support-widget-primary-link,
.support-widget-secondary-link,
.support-widget-whatsapp-wide,
.support-widget-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-widget-submit,
.support-widget-primary-link {
    background: linear-gradient(135deg, #b985c9 0%, #d889b6 55%, #efb2a8 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(185, 133, 201, 0.26);
}

.support-widget-submit:hover,
.support-widget-primary-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 30px rgba(185, 133, 201, 0.32);
}

.support-widget-secondary-link {
    background: #f7edf7;
    color: #79558a;
    border: 1px solid rgba(185, 133, 201, 0.28);
}

.support-widget-whatsapp-wide {
    width: 100%;
    margin-top: 12px;
    background: #f6fff8;
    color: #4f8f62;
    border: 1px solid rgba(79, 143, 98, 0.18);
}

.support-widget-end {
    background: #f7edf7;
    color: #79558a;
    border: 1px solid rgba(185, 133, 201, 0.26);
}

.support-widget-actions,
.support-widget-chat-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.support-widget-login-box p {
    margin: 0 0 15px;
    color: #75625d;
    line-height: 1.5;
}

.support-widget-chat-info {
    margin-bottom: 13px;
    padding: 11px 13px;
    border-radius: 18px;
    background: #f7edf7;
    color: #79558a;
    font-size: 13px;
    border: 1px solid rgba(185, 133, 201, 0.24);
}

.support-widget-messages {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 270px;
    overflow-y: auto;
    padding: 4px 2px 13px;
}

.support-widget-message {
    max-width: 84%;
    padding: 10px 12px;
    border-radius: 17px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.support-widget-message.customer {
    align-self: flex-end;
    background: linear-gradient(135deg, #b985c9 0%, #d889b6 55%, #efb2a8 100%);
    color: #fff;
    border-bottom-right-radius: 7px;
}

.support-widget-message.admin {
    align-self: flex-start;
    background: #fff;
    color: #3b302d;
    border: 1px solid rgba(221, 200, 178, 0.95);
    border-bottom-left-radius: 7px;
}

.support-widget-message.system {
    align-self: center;
    background: #fff8ef;
    color: #7a655d;
    font-size: 12px;
    border: 1px solid rgba(221, 200, 178, 0.65);
}

.support-widget-message-time {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.75;
}

.support-widget-error {
    margin-top: 12px;
    border-radius: 16px;
    padding: 10px 12px;
    background: #fff1f1;
    color: #b42318;
    font-size: 13px;
    border: 1px solid rgba(180, 35, 24, 0.12);
}

@media (max-width: 576px) {
    .support-widget {
        right: 14px;
        bottom: 14px;
        left: auto;
        max-width: calc(100vw - 28px);
    }

    .support-widget-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .support-widget-toggle,
    .support-widget-whatsapp {
        width: auto;
        min-width: auto;
        padding: 11px 14px;
        font-size: 13px;
        white-space: nowrap;
        text-align: center;
        box-shadow: 0 10px 24px rgba(91, 63, 97, 0.16);
    }

    .support-widget-whatsapp {
        padding-left: 13px;
        padding-right: 13px;
    }

    .support-widget-panel {
        position: fixed;
        right: 14px;
        bottom: 74px;
        width: calc(100vw - 28px);
        max-width: 390px;
        max-height: calc(100vh - 96px);
        margin-bottom: 0;
        border-radius: 24px;
    }

    .support-widget-body {
        max-height: calc(100vh - 210px);
        padding: 16px;
    }

    .support-widget-header {
        padding: 17px 17px 14px;
    }

    .support-widget-header strong {
        font-size: 16px;
    }

    .support-widget-header span {
        font-size: 12px;
    }
}