:root {
    --whatsapp-green: #128C7E;
    --whatsapp-light-green: #25D366;
    --whatsapp-chat-bg: #e5ddd5;
    --whatsapp-user-bubble: #DCF8C6;
    --whatsapp-bot-bubble: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
}

body .body {
    height: 100vh;
}

.chat-container.type-chat {
    width: 100%;
    max-width: 500px;
    height: 90vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-container.type-chat .chat-header {
    background-color: white;
    color: rgb(70, 69, 69);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.chat-container.type-chat .chat-links {
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.chat-container.type-embed {
    width: 100%;
    height: 50vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-container.type-embed .chat-header {
    display:none;
}

.chat-container.type-embed .chat-links {
    display:none;
}

.chat-header:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--whatsapp-chat-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message-user {
    justify-content: flex-end;
}

.message-bot {
    justify-content: flex-start;
}

.message-content {
    display: flex;
    max-width: 80%;
}

.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
    align-self: flex-end;
    object-position: top;
}

img.bandeira {
    border: 1px solid #fff;
    width: 40px;
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.message-bubble {
    max-width: 100%;
    padding: 10px 15px;
    border-radius: 7.5px;
    margin-bottom: 5px;
    position: relative;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-bubble {
    background-color: var(--whatsapp-user-bubble);
    color: #000;
    border-top-right-radius: 0;
}

.bot-bubble {
    background-color: var(--whatsapp-bot-bubble);
    color: #000;
    border-top-left-radius: 0;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 11px;
    color: #666;
    margin: 0 5px;
    align-self: flex-end;
    white-space: nowrap;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.chat-links a {
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 21px;
    outline: none;
    font-size: 15px;
    background-color: white;
}

.chat-input button {
    background-color: var(--whatsapp-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px !important;
}

.chat-input button:hover {
    background-color: #075E54;
}

.recipe-card {
    margin-top: 10px;
    border-radius: 7.5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e5e5e5;
    max-width: 300px;
}

.recipe-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.recipe-content {
    padding: 10px;
    background-color: white;
}

.recipe-title {
    margin: 0 0 5px 0;
    color: var(--whatsapp-green);
    font-size: 15px;
    font-weight: 600;
}

.recipe-title a {
    color: var(--whatsapp-green);
    text-decoration: none;
}

.recipe-title a:hover {
    color: var(--whatsapp-green);
    text-decoration: underline;
}

.recipe-url {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
    display: none;
    margin-top: 5px;
}

.recipe-url:hover {
    text-decoration: underline;
}

.entry-content h4.recipe-title {
    font-size: 1rem;
    line-height: 1.28571rem;
    margin: 0 0 5px 0;
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: var(--whatsapp-bot-bubble);
    border-radius: 7.5px;
    border-top-left-radius: 0;
    max-width: 70px;
    margin-bottom: 15px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    margin: 0 2px;
    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;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

.message-status {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.status-icon {
    font-size: 14px;
    color: #999;
}

.status-icon.read {
    color: #4fc3f7;
}

.message-meta {
    display: flex;
    align-items: center;
}

/* Efeito de bolha do WhatsApp */
.bot-bubble:before {
    content: "";
    position: absolute;
    left: -8px;
    bottom: 8px;
    width: 0;
    height: 0;
    border-right: 8px solid var(--whatsapp-bot-bubble);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.user-bubble:after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 8px solid var(--whatsapp-user-bubble);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.teste {
    background-color: #ff0000;
    padding: 10px 20px;
    color: #ffffff;
    text-align: center;
}

.hide {
    display: none !important;
}

a {
    color: blue;
}

.recipe-content.hide-image img.recipe-image {
    display: none;
}

.chat-logo img {
    max-width: 250px;
    max-height: 80px;
}

a.link_rodape {
    width: 45%;
    float: left;
    margin-bottom: 5px;
}

/*.recipe-button a.recipe-link {
    border: 2px solid #05a;
    padding: 9px;
    display: inline-block;
    color: #fff;
    background-color: #06f;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.recipe-button a.recipe-link:hover {
    background-color: #005bb5;
}
*/
.recipe-card.recipe-button {
    box-shadow: 0 0px 0px !important;
    border: 0px !important;
    max-width: 100% !important;
}

.body .recipe-button a.recipe-link {
    width: 95% !important;
}

.recipe-button a.recipe-url, .recipe-button a.recipe-img
{
    display: none !important;
}


