.whatschat-wrapper {
    position: relative;
    z-index: 99999;
}

.whatschat-button {
    position: fixed;
    z-index: 99999;
    width: 60px;
    height: 60px;
    border: 0;
    cursor: pointer;
    background: var(--whatschat-primary, #25D366);
    color: var(--whatschat-secondary, #ffffff);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .20);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    overflow: hidden;
}

.whatschat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.whatschat-button.whatschat-active {
    transform: scale(1.03);
}

.whatschat-rounded {
    border-radius: 50%;
}

.whatschat-square {
    border-radius: 14px;
}

.whatschat-button-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .22s ease, transform .22s ease;
    width: 100%;
    height: 100%;
}

.whatschat-button-icon i {
    font-size: 28px;
    line-height: 1;
}

.whatschat-icon-open {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.whatschat-icon-close {
    opacity: 0;
    transform: scale(0.6) rotate(-90deg);
}

.whatschat-button.whatschat-active .whatschat-icon-open {
    opacity: 0;
    transform: scale(0.6) rotate(90deg);
}

.whatschat-button.whatschat-active .whatschat-icon-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.whatschat-box {
    position: fixed;
    width: 360px;
    max-width: calc(100% - 30px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    z-index: 99999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.whatschat-box-header {
    background: linear-gradient(135deg, var(--whatschat-primary, #25D366), #1bbf5c);
    color: #fff;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-shrink: 0;
}

.whatschat-box-header-main .whatschat-header-main-icon i {
    font-size: 34px;
    line-height: 1;
}

.whatschat-header-main-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.whatschat-header-main-text strong {
    font-size: 16px;
}

.whatschat-header-main-text span {
    font-size: 13px;
    line-height: 1.5;
}

.whatschat-box-content {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.whatschat-contacts-list {
    padding: 16px;
}

.whatschat-contacts-note {
    font-size: 12px;
    color: #8d98a5;
    margin-bottom: 16px;
}

.whatschat-empty-message {
    font-size: 13px;
    color: #7f8b97;
    line-height: 1.6;
    padding: 6px 0;
}

.whatschat-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f5f7fa;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all .2s ease;
    border-left: 2px solid var(--whatschat-primary, #25D366);
}

.whatschat-contact-card:hover {
    background: #eef6f2;
    transform: translateY(-1px);
}

.whatschat-contact-avatar img,
.whatschat-contact-avatar-default {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    overflow: hidden;
    color: #25D366;
    font-size: 30px;
    flex-shrink: 0;
}

.whatschat-contact-info {
    flex: 1;
    min-width: 0;
}

.whatschat-contact-info strong {
    display: block;
    font-size: 14px;
    color: #39424e;
    margin-bottom: 4px;
}

.whatschat-contact-info span {
    font-size: 12px;
    color: #8b95a2;
}

.whatschat-contact-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    gap: 4px;
}

.whatschat-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.whatschat-status-dot.online {
    background: #21c55d;
}

.whatschat-status-dot.offline {
    background: #ef4444;
}

.whatschat-status-text {
    font-size: 10px;
    font-weight: 700;
    color: #7d8b98;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.whatschat-dynamic-form-area {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.whatschat-dynamic-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf0f4;
    flex-shrink: 0;
}

.whatschat-back-button {
    border: 0;
    background: #f0f4f8;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #3f4c59;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 36px;
}

.whatschat-back-button i {
    font-size: 18px;
    line-height: 1;
}

.whatschat-dynamic-contact-title {
    font-size: 14px;
    font-weight: 700;
    color: #3e4f55;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatschat-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
}

.whatschat-form-scroll {
    max-height: 230px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-right: -4px;
}

.whatschat-form-group {
    margin-bottom: 12px;
}

.whatschat-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #3e4f55;
    font-size: 12px;
    line-height: 1.3;
}

.whatschat-policy-label {
    font-weight: 400 !important;
    font-size: 11px !important;
    line-height: 1.5;
    color: #5d6d73;
}

.whatschat-policy-label a {
    color: var(--whatschat-primary, #25D366);
    text-decoration: none;
    font-weight: 600;
}

/* Design unificado para TODOS os campos do formulário */
.whatschat-form input[type="text"],
.whatschat-form input[type="email"],
.whatschat-form input[type="number"],
.whatschat-form input[type="tel"],
.whatschat-form input[type="url"],
.whatschat-form textarea {
    width: 100% !important;
    border: 1px solid #d9e0e5 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    font-size: 13px !important;
    color: #3a4b50 !important;
    line-height: 1.4 !important;
}

.whatschat-form textarea {
    min-height: 84px;
    max-height: 120px;
    resize: vertical;
}

.whatschat-submit {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: var(--whatschat-primary, #25D366);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-shrink: 0;
}

.whatschat-submit i {
    font-size: 16px;
    line-height: 1;
}

.whatschat-response {
    margin-top: 8px;
    font-size: 12px;
    flex-shrink: 0;
}

.whatschat-response .error {
    color: #c62828;
    font-weight: 600;
}

.whatschat-response .success {
    color: #2e7d32;
    font-weight: 600;
}

/* Estilo Standalone */
.whatschat-standalone-form-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.whatschat-layout-horizontal .whatschat-form-fields-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.whatschat-layout-horizontal .whatschat-form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0 !important;
}

.whatschat-layout-horizontal .whatschat-btn-group {
    flex: 0 0 auto;
}

.whatschat-layout-horizontal .whatschat-submit {
    width: auto !important;
    height: 48px;
    padding: 0 25px !important;
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    .whatschat-box {
        right: 12px !important;
        left: 12px !important;
        width: auto;
        max-width: none;
        bottom: 85px !important;
    }

    .whatschat-box-content {
        max-height: 420px;
    }

    .whatschat-layout-horizontal .whatschat-form-fields-container {
        flex-direction: column;
        align-items: stretch;
    }
    .whatschat-layout-horizontal .whatschat-submit {
        width: 100% !important;
    }
}