body {
    margin: 0;
}

.grecaptcha-badge {
    display: none !important;
}

#wp-openai-chatbot {
    position: fixed;
    bottom: 0;
    right: 0;
}

#wp-openai-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1999999;
    font-family: Arial, sans-serif;
}

.wp-openai-chatbot__toggle {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
    background-color: #01aef0;
}

#wp-openai-chatbot.active .wp-openai-chatbot__toggle {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    width: 0;
    display: none;
}

.wp-openai-chatbot__panel {
    width: 0px;
    max-width: calc(100vw - 24px);
    height: 0px;
    background: #fff;
    border-radius: 16px;
    /* box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border: 1px solid #b7b7b7;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    visibility: hidden;

    transition: all 0.3s ease;
}

#wp-openai-chatbot.active .wp-openai-chatbot__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    width: 360px;
    height: 520px;
}

.wp-openai-chatbot__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wp-openai-chatbot__avatar-header {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.wp-openai-chatbot__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.wp-openai-chatbot__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.wp-openai-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: #ffffff;
}

.wp-openai-chatbot__message {
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.wp-openai-chatbot__message strong {
    display: block;
    margin-bottom: 4px;
}

.wp-openai-chatbot__message--bot {
    background: #ffffff;
}

.wp-openai-chatbot__message--user {
    /* background: #eaf2ff; */
}

.wp-openai-chatbot__message {
    display: flex;
    gap: 8px;
    margin-bottom: 0px;
}

.wp-openai-chatbot__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-top: 4px;
}

.wp-openai-chatbot__bubble {
    background: #eee;
    padding: 8px 10px;
    border-radius: 8px;
    max-width: 100%;
}

.wp-openai-chatbot__message--user .wp-openai-chatbot__bubble {
    background-color: #f7f7f7;
}

.wp-openai-chatbot__bubble p {
    margin-top: 4px;
    margin-bottom: 6px;
}

.wp-openai-chatbot__content {
    display: flex;
    flex-direction: column;
}

.wp-openai-chatbot__time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.wp-openai-chatbot__name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.wp-openai-chatbot__form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.wp-openai-chatbot__input {
    flex: 1;
    min-height: 40px;
    max-height: 120px;
    resize: none;
    border: none;
    outline: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.wp-openai-chatbot__submit {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-openai-chatbot__submit:hover svg {
    opacity: 0.7;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* mobile styles */
@media (max-width: 525px) {
    
    #wp-openai-chatbot.active {
        right: 50%;
        transform: translateX(50%);
    }
    
	#wp-openai-chatbot.active.non-interact #wp-openai-chatbot-panel {
		height: 114px;
	}
	
	#wp-openai-chatbot.non-interact .wp-openai-chatbot__form {
		display: none;
	}
	
	#wp-openai-chatbot.non-interact .wp-openai-chatbot__avatar {
		display: none;
	}
    
    #wp-openai-chatbot.non-interact .wp-openai-chatbot__content {
        width: 100%;
    }
    
    #wp-openai-chatbot.non-interact .wp-openai-chatbot__message {
        padding: 0;
        border-radius: 0;
    }
    
    #wp-openai-chatbot.non-interact .wp-openai-chatbot__bubble {
        border-radius: 0;
    }
    
    #wp-openai-chatbot.non-interact .wp-openai-chatbot__time {
        display: none;
    }
    
    #wp-openai-chatbot.non-interact .wp-openai-chatbot__messages {
        padding: 0;
        overflow-y: hidden;
    }

}

@media (max-height: 575px) {
    
    #wp-openai-chatbot.active .wp-openai-chatbot__panel {
        height: 84vh;
    }
    
}
