/* File : css/chatbot.css */
.mobilet-chatbot-button-circle {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 2.8rem;
    height: 2.8rem;
    background: #000000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}
.mobilet-chatbot-container {
    position: fixed;
    bottom: 12rem;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 10000;
}
.mobilet-chatbot-title {
    font-weight: bold;
    margin-bottom: 24px;
    font-size: 1.5rem;
}
.mobilet-chatbot-textarea, .mobilet-chatbot-select {
    width: 100%;
    margin-bottom: 10px;
    padding: 11px;
    border-radius: 5px;
    border: 1px solid #f3f2f2;
    font: message-box;
    height: fit-content;
    margin-top: 8px;
}
.mobilet-chatbot-button {
    background: #094b82;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: -webkit-fill-available;
    font-weight: bold;
    margin-top: 24px;
    margin-bottom: 9px;
    height: 42px;
    font-size: 16px;
}
.mobilet-chatbot-response {
    margin-top: 10px;
    font-size: 12px;
    color: #ba0005;
}

.mobilet-chatbot-hidden {
    display: none !important;
}

#chatbot-user-message.mobilet-chatbot-hidden {
    display: block !important;
}
/* Mobile Styles */
@media (max-width: 480px) {
    .mobilet-chatbot-container {
        width: 95%;
        right: 2.5%;
        bottom: 14rem;
        padding: 12px;
    }

    .mobilet-chatbot-title {
        font-size: 15px;
    }

    .mobilet-chatbot-textarea,
    .mobilet-chatbot-select {
        font-size: 13px;
        padding: 10px;
    }

    .mobilet-chatbot-button {
        padding: 12px;
        font-size: 15px;
    }

    .mobilet-chatbot-button-circle {
        width: 56px;
        height: 56px;
        font-size: 22px;
        bottom: 10rem;
        right: 16px;
    }
}

label.mobilet-chatbot-label {
    font-size: 16px;
    font-weight: bold;
}
textarea#chatbot-user-message {
    height: 100px;
}

.mobilet-chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

.mobilet-chatbot-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    color: #ba0005;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

/* PATCH: overlay and close button styles */

/* PATCH-START overlay-close-style */
.mobilet-chatbot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}
.mobilet-chatbot-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    color: #ba0005;
    font-size: 20px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    z-index: 10001;
}
/* PATCH-END overlay-close-style */

/* PATCH-START floating-button-icon-toggle */
.mobilet-chatbot-button-circle.open::before {
    content: "×";
    font-size: 32px;
    font-weight: bold;
    transform: translateY(-1px);
}
.mobilet-chatbot-button-circle::before {
    content: "💬";
    font-size: 22px;
}
/* PATCH-END floating-button-icon-toggle */

/* PATCH-START input error styling */
.mobilet-error {
    color: #ba0005;
    font-size: 12px;
    min-height: 8px;
    margin-bottom: 0rem;
}
/* PATCH-END input error styling */

.mobilet-chatbot-select,
.mobilet-chatbot-select option {
    text-align: left;
}
/* PATCH-START improved select appearance */
.mobilet-chatbot-select option {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f9f9f9; /* lighter grey background */
    color: #333;
    box-sizing: border-box;
    margin-bottom: 5px;
    appearance: none; /* hide system styling */
    background-repeat: no-repeat;
    background-position: right 12px center;
}
/* PATCH-END improved select appearance */

/* PATCH-START message counter styling */
.chatbot-message-meta {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    color: #888;
    line-height: normal;
}
  
  #chatbot-char-count.warning {
    color: #d32f2f;
  }
  /* PATCH-END message counter styling */

  /* fixing wp style */
  #wpfooter{
    position: relative !important;
  }

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}