:root {
    --whatsapp-green: #25d366;
    --whatsapp-light: #e5f5e1;
    --whatsapp-gray: #f0f0f0;
    --whatsapp-dark: #075e54;
}

.whatsapp-card {
    max-width: 400px;
    min-width: 400px; /* Garantir largura mínima */
    width: 400px; /* Largura fixa */
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Remover margin pois agora usamos gap */
    margin: 0;
    /* Evitar que o item encolha */
    flex-shrink: 0;
}

@media(max-width: 480px) {
    .whatsapp-card {
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }
}

.header {
    background-color: var(--whatsapp-dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.header-info h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.header-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 2px 0 0 0;
}

.chat-container {
    height: 500px;    
    background-color: var(--whatsapp-gray);
    padding: 20px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 80%;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 7.5px;
    position: relative;
    word-wrap: break-word;
}

.received {
    align-self: flex-start;
    background-color: white;
    border-top-left-radius: 0;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.sent {
    align-self: flex-end;
    background-color: var(--whatsapp-light);
    border-top-right-radius: 0;
    color: black;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.message-time {
    font-size: 11px;
    color: #667781;
    float: right;
    margin-left: 8px;
    margin-top: 3px;
}

.star-rating {
    display: inline-block;
    margin-top: 5px;
    font-size: 18px;
}

.star {
    color: #ffd700;
    margin-right: 2px;
}

.review-text {
    margin-top: 5px;
    line-height: 1.4;
}

.status-indicator {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 10px;
}

.typing-indicator {
    background-color: white;
    padding: 10px 15px;
    border-radius: 18px;
    align-self: flex-start;
    margin-bottom: 10px;
    display: inline-block;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #9b9b9b;
    margin-right: 3px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes typingAnimation {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.review-date {
    text-align: center;
    margin: 15px 0;
}

.review-date span {
    background-color: var(--whatsapp-gray);
    color: #54656f;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.input-container {
    display: flex;
    background-color: #f5f5f5;
    padding: 10px;
    border-top: 1px solid #e5e5e5;
}

.input-container input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 14px;
}

.input-container button {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.input-container button:hover {
    background-color: #20b358;
}

.emoji-picker {
    position: relative;
    margin-right: 10px;
}

.emoji-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #54656f;
}

/* Responsividade */
@media (max-width: 768px) {
    .wrapper-tw {
        padding: 20px 50px;
    }
    
    .container-w {
        max-width: 350px;
        min-width: 350px;
        width: 350px;
    }
}

@media (max-width: 480px) {
    .wrapper-tw {
        padding: 20px 20px;
    }
    
    .container-w {
        max-width: 300px;
        min-width: 300px;
        width: 300px;
    }
}