html,
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica", sans-serif;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

button {
    font-family: "Helvetica", sans-serif;
    cursor: pointer;
    outline: none;
    border: none;
    background: none
}

input,
textarea {
    font-size: 14px;
    font-family: "Helvetica", sans-serif;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
    touch-action: manipulation
}

.chat-toggle-button {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    background-color: transparent;
}

.chat-toggle-button img.toggle-avatar {
    width: 60px;
    height: auto;
    border-radius: 50%;
    display: block
}

@media (max-width:600px) {
    .chat-toggle-button img.toggle-avatar {
        width: 60px;
        height: auto;
    }
}

.chat-container {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 340px;
    max-height: 600px;
    background-color: #fff;
    display: none;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    z-index: 1000
}

@media (max-width:600px) {
    .chat-container {
        bottom: 0px;
        left: 0px;
        width: 90%;
        max-width: 400px;
    }
}

.chat-header {
    background-color: #004b64;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.header-left {
    display: flex;
    align-items: center
}

.assistant-name {
    font-size: 1em;
    font-weight: 700
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-button {
    color: #fff;
    background: transparent;
    font-size: 1em;
    cursor: pointer;
    border: none;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-button:hover {
    opacity: 0.8;
}

#minimize-button {
    padding: 4px;
}

#minimize-button svg {
    width: 16px;
    height: 16px;
}

.chat-window {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
    padding: 10px;
    font-size: 14px;
    height: 300px;
    max-height: 300px;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    word-wrap: break-word;
    font-size: 14px;
    max-width: 80%
}

.chat-message.bot {
    background-color: #eee;
    align-self: flex-start;
    color: #000
}

.chat-message.user {
    background-color: #FF532F;
    align-self: flex-end;
    color: #000
}

.option-button {
    background-color: #FF532F;
    color: #000;
    padding: 6px 12px;
    margin: 4px 4px 0 0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    align-self: flex-start
}

.option-button:hover {
    background-color: #FDDBD4
}

/* Styling for buttons that act as links */
.option-button[data-is-link="true"] {
    background-color: #004b64;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.option-button[data-is-link="true"]:hover {
    background-color: #006384;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-footer {
    padding: 8px;
    border-top: 1px solid #ddd;
    background-color: #fff
}

#other-input-container {
    display: none;
    width: 100%;
    margin-right: 8px;
    align-items: center
}

#other-input {
    width: calc(100% - 60px);
    margin-right: 4px;
    font-size: 14px !important;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 3px
}

#other-submit {
    background-color: #FF532F;
    color: #000;
    padding: 6px 12px;
    border-radius: 3px
}

#other-submit:hover {
    background-color: #FDDBD4
}

.submit-button {
    background-color: #FF532F;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    margin-top: 8px
}

.submit-button:hover {
    background-color: #FDDBD4
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px
}

.contact-form>div {
    display: flex;
    flex-direction: column
}

.contact-form label {
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px
}

.contact-form input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box
}

/* Typing indicator */
.typing-indicator {
    background-color: #eee;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    width: 55px;
    display: flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin-right: 4px;
    border-radius: 50%;
    background: #004b64;
    display: inline-block;
    animation: wave 1.3s ease infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Tab styles */
.chat-tabs {
    display: flex;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    flex: 1;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: #004b64;
    color: white;
    border-bottom: 2px solid #FF532F;
}

.tab-content {
    position: relative;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.tab-pane {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.tab-pane.active {
    display: flex;
}

/* Company chat styles */
.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

#company-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

#company-send, .send-btn {
    background-color: #FF532F !important;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

#company-send:hover, .send-btn:hover {
    background-color: #FDDBD4  !important;
}

/* Connect tab styles */
.connect-info {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
}

.connect-info h3 {
    color: #004b64;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.connect-info h4 {
    color: #333;
    margin: 15px 0 8px;
    font-size: 15px;
}

.status-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.online {
    background-color: #4CAF50;
}

.status-indicator.offline {
    background-color: #F44336;
}

.working-hours p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.available-contacts {
    margin: 15px 0;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.contact-status.online {
    background-color: #4CAF50;
}

.contact-info {
    flex: 1;
}

.contact-name {
    margin: 0;
    font-weight: 500;
}

.contact-role {
    margin: 3px 0 0;
    font-size: 12px;
    color: #777;
}

.contact-button {
    background-color: #004b64;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-button:hover {
    background-color: #003a4f;
}

.contact-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.contact-action-button {
    display: flex;
    align-items: center;
    background-color: #FF532F;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    flex: 1;
    margin: 0 5px;
    justify-content: center;
}

.contact-action-button svg {
    margin-right: 5px;
}

.contact-action-button:hover {
    background-color: #FDDBD4;
}

/* Adjust the main container for the new tab structure */
.chat-container {
    display: flex;
    flex-direction: column;
}

.chat-window {
    flex: 1;
    overflow-y: auto;
}

.whatsapp-button {
    background-color: #FF532F;
}

.whatsapp-button:hover {
    background-color: #FDDBD4;
}

.whatsapp-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Ask Question Button Styles */
.ask-question-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #FFF;
    color: #FF532F;
    border: 1px solid #FF532F;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ask-question-button:hover { 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ask Question Container Styles */
.ask-question-container {
    position: relative;
    background: white;
    border-top: 1px solid #ddd;
    padding: 10px;
}

.ask-question-container .chat-input-container {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
}

.ask-question-container .chat-input-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ask-question-container .chat-input-container button {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.ask-question-container .chat-input-container button:hover {
    background: #FF532F;
}

.ask-question-container .chat-input-container .close-btn {
    background: #858585;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ask-question-container .chat-input-container .close-btn:hover {
    background: #c82333;
}

.ask-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #004b64;
    color: white;
}

.ask-question-header h4 {
    margin: 0;
    font-size: 16px;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.ask-question-actions {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.ask-question-actions button {
    background: none;
    border: 1px solid #004b64;
    color: #004b64;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.ask-question-actions button:hover {
    background-color: #004b64;
    color: white;
}
.ai-agent-bubble {
  position: absolute;
  left: 30px;
  bottom: 50px;  
  z-index: 1001;
  pointer-events: none;
  display: block; 
	width: 150px;
	height: 100px;
	object-fit: contain
} 