.girabot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99997;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.girabot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--girabot-float-button-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    z-index: 99998;
    font-size: var(--girabot-float-font-size, 16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: girabot-pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(var(--girabot-float-button-hover-color),0.3);
}

.girabot-toggle-btn:hover {
    background: var(--girabot-float-button-hover-color);
    transform: scale(1.05);
    animation: none;
}

.girabot-whatsapp-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="white" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.girabot-chat-window {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    height: 590px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    overflow: hidden;
    z-index: 99998;
}

.girabot-chat-window.active {
    display: flex;
}

.girabot-header {
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
   
}

.girabot-header h4 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
 
}

.girabot-header span {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 8px;
    width: 100%;
    padding: 1px 10px;

}

.girabot-close {
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px 6px 5px;
    line-height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2); /* Preto semi-transparente */
}

.girabot-close:hover {
    background-color: rgba(0, 0, 0, 0.4); /* Preto semi-transparente */
}

.girabot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch; /* Melhora a rolagem em dispositivos iOS */
    scroll-behavior: smooth; /* Adiciona rolagem suave */
    height: calc(100% - 200px); /* Altura calculada para garantir que ocupe o espaço correto */
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.girabot-message {
    margin: 8px;
    padding: 10px;
    border-radius: 8px;
    max-width: 100%;
    word-wrap: break-word;
    background: #f6f6f6;
    align-self: flex-start;
}

.girabot-message.user {
    background: #f0fff1;
    color: black;
    align-self: flex-end;
}

.girabot-input {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #f8f8f8;
}

.girabot-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.girabot-input-wrapper input {
    flex: 1;
    height: 36px;
    border-color: #e5e5e5 !important; 
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    margin: 0;
}

.girabot-input-wrapper input:focus {
    border-color: #e5e5e5;
}

.girabot-send-btn {
    border: none;
    border-radius: 8%;
    min-width: 36px;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
    opacity: 0.9;
}

.girabot-send-btn:hover {
    opacity: 1;
}

.girabot-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding:2px 10px;

}



.girabot-option {
    all: unset;
    width: 48%;
    padding: 10px 0;
    margin: 1px 0 8px;
 
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(40px);
    font-family: -apple-system, system-ui, sans-serif;

    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.girabot-option i {
    margin-right: 5px;
}



/* Removido o efeito de brilho no texto */
.girabot-option span {
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}


.girabot-option:hover::after {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wizard-hat-spinner {
    display: inline-block;
    font-size: 24px; /* Tamanho do emoji */
    animation: spin 2s linear infinite; /* Animação de rotação */
}

@keyframes circle-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes think {
    0% { transform: rotate(-15deg); } /* Inclina para a esquerda */
    50% { transform: rotate(15deg); }  /* Inclina para a direita */
    100% { transform: rotate(-15deg); } /* Volta para a esquerda */
}

@keyframes pulse {
    0% { transform: scale(1); } /* Tamanho normal */
    50% { transform: scale(1.2); } /* Aumenta o tamanho */
    100% { transform: scale(1); } /* Volta ao tamanho normal */
}

@keyframes wave {
    0% { transform: rotate(0deg); } /* Posição inicial */
    25% { transform: rotate(20deg); } /* Inclina para a direita */
    50% { transform: rotate(0deg); } /* Volta ao centro */
    75% { transform: rotate(-20deg); } /* Inclina para a esquerda */
    100% { transform: rotate(0deg); } /* Volta ao centro */
}

@keyframes cry-tilt {
    0% { transform: translateY(0) rotate(0deg); } /* Posição inicial */
    25% { transform: translateY(-5px) rotate(-5deg); } /* Inclina para cima e esquerda */
    50% { transform: translateY(0) rotate(0deg); } /* Volta ao centro */
    75% { transform: translateY(5px) rotate(5deg); } /* Inclina para baixo e direita */
    100% { transform: translateY(0) rotate(0deg); } /* Volta ao centro */
}

@keyframes sad-pulse {
    0% { transform: scale(1); } /* Tamanho normal */
    50% { transform: scale(1.1); } /* Aumenta levemente */
    100% { transform: scale(1); } /* Volta ao normal */
}

@keyframes point-pulse {
    0% { transform: scale(1); } /* Tamanho normal */
    50% { transform: scale(1.1); } /* Aumenta levemente */
    100% { transform: scale(1); } /* Volta ao normal */
}
@keyframes point-down {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes smooth-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.bell-shake {
    color: #ffc400;
    display: inline-block;
    font-size: 16px;
    animation: smooth-shake 0.8s ease-in-out infinite;
}

.whatsapp-shake {
    display: inline-block;
    font-size: 16px;
    animation: smooth-shake 0.8s ease-in-out infinite;
}

.pointing-down-spinner {
    display: inline-block;
    font-size: 18px;
    animation: point-down 1s ease-in-out infinite;
    transform-origin: 70% 70%; /* Ajusta o ponto de rotação */
}

.pointing-hand-spinner {
    display: inline-block;
    font-size: 16px; /* Tamanho do emoji */
    animation: point-pulse 1.5s ease-in-out infinite; /* Animação de pulsação */
}

.sad-emoji-spinner {
    display: inline-block;
    font-size: 16px; /* Tamanho do emoji */
    animation: sad-pulse 2s ease-in-out infinite; /* Animação de pulsação */
}

.crying-emoji-spinner {
    display: inline-block;
    font-size: 16px; /* Tamanho do emoji */
    animation: cry-tilt 2s ease-in-out infinite; /* Animação de inclinação */
}

.waving-hand-spinner {
    display: inline-block;
    font-size: 16px; /* Tamanho do emoji */
    transform-origin: 70% 70%; /* Ponto de origem da rotação (base da mão) */
    animation: wave 1.5s ease-in-out infinite; /* Animação de aceno */
}

.crystal-ball-spinner {
    display: inline-block;
    font-size: 16px; /* Tamanho do emoji */
    animation: pulse 1.5s ease-in-out infinite; /* Animação de pulsação */
}

.thinking-spinner {
    display: inline-block;
    font-size: 16px; /* Tamanho do emoji */
    animation: think 1.5s ease-in-out infinite; /* Animação de balanço */
}

.circle-spinner {
    display: inline-block;
    font-size: 16px;
    animation: circle-spin 2s linear infinite; /* Animação de rotação */
}

.girabot-bot-message {
    background: #E8F5E9;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.girabot-user-message {
    background: #E3F2FD;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.girabot-yes-no {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.girabot-yes-no button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.girabot-welcome-audio {
    margin: 8px 0;
    text-align: center;
}

.girabot-audio-play {
    background: transparent;
    width: 100%;
    color: #000;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    display: inline-block;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.girabot-audio-play:hover {
    background: #e0e0e0;
    color: #000;
    opacity: 1;
}

.girabot-audio-play i {
    font-size: 12px;
}

/* Estilos do formulário */
.girabot-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.girabot-form input,
.girabot-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.girabot-form input:focus,
.girabot-form select:focus {
    border-color: #25D366;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.girabot-form .girabot-name {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.girabot-banners-container {
    display: flex;
    justify-content: center; /* Centraliza os banners */
    align-items: center;
    padding: 0px; /* Espaçamento interno */

}

.girabot-banner {
    max-width: 100%; /* Garante que o banner não ultrapasse a largura da tela */
    overflow: hidden; /* Evita que o conteúdo extrapole */
    border-radius: 8px; /* Borda arredondada para um visual moderno */

}

.girabot-banner-image {
    width: 100%; /* Faz a imagem se ajustar ao container */
    height: auto; /* Mantém a proporção da imagem */
    display: block; /* Remove espaços em branco indesejados */
    border-radius: 8px; /* Arredonda as bordas da imagem */
    transition: transform 0.3s ease-in-out; /* Efeito suave ao passar o mouse */
}

.girabot-banner:hover .girabot-banner-image {
    transform: scale(1.05); /* Efeito de zoom ao passar o mouse */
}




.girabot-form .girabot-schedule-btn {
    background-color: #25d366;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.girabot-form .girabot-schedule-btn:hover {
    background-color: 	#128c7e;
}

/* Estilos do Datepicker */
.ui-datepicker {
    font-size: 14px;
    padding: 10px;
    width: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ui-datepicker .ui-datepicker-header {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
}

.ui-datepicker th {
    color: #666;
    font-weight: 600;
}

.ui-datepicker td span, 
.ui-datepicker td a {
    text-align: center;
    padding: 8px;
}

.ui-datepicker td a.ui-state-default {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.ui-datepicker td a.ui-state-default:hover {
    background: #f5f5f5;
    border-color: #25D366;
}

.ui-datepicker td a.ui-state-active {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.ui-datepicker td a.ui-state-highlight {
    background: #e8f5e9;
    border-color: #25D366;
}

/* Estilos para os banners */
.girabot-banner {
    margin: 10px 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.girabot-banner-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Animação pulsante */
@keyframes girabot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(37, 211, 102, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .girabot-chat-window {
        width: calc(100% - 40px);
        max-width: 355px;
        height: 70vh;
        max-height: 570px;
    }
}

@media screen and (max-width: 480px) {
    .girabot-chat-window {
        width: calc(100% - 40px);
        height: 60vh;
        bottom: 80px !important;
        right: 10px !important;
    }

    .girabot-container {
        bottom: 20px !important;
        right: 20px !important;
    }

    .girabot-option {
        font-size: 13px;
        padding: 8px 6px;
    }

    .girabot-input-wrapper input {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .girabot-chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 10px;
    }
    
    .girabot-toggle-btn {
        padding: 8px 16px;
        right: 10px !important;
    }
}
