/* Chat Widget Button */
#chatWidget {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background-color: #ffffff;
    border: none;
    padding: 10px 6px 7px 9px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 2px 8px 12px rgba(0, 0, 0, 0.56);
}

#notificationBubble {
    z-index: 100000;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    position: fixed;
    bottom: 85px;
    right: 75px;
    background-color: #FF2000;
    border: none;
    width: 20px;
    height: 20px;
    padding-right: 2px;
    padding-top: 1px;
    border-radius: 25px;
    cursor: pointer;
    color: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.56);
}

#chatWidget:hover {
    background-color: #f0f0f0;
}

/* Chat Icon */
#chatIcon {
    width: 50px;
    height: 50px;
}

/* Chat Container */
#chatContainer {
    z-index: 100000;
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Chat Header */
#chatHeader {
    background-color: #117421FF;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Close Button */
#closeChat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
    padding: 5px;
}

/* Chat Messages */
#messages {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Chat Bubbles */
.message {
    max-width: 80%;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.customer-message {
    align-self: flex-end;
    background-color: #36a648;
    color: white;
    text-align: right;
    border-bottom-right-radius: 5px;
}

.agent-message {
    align-self: flex-start;
    background-color: #f1f0f0;
    color: black;
    text-align: left;
    border-bottom-left-radius: 5px;
}

/* Chat Input */
#chatInputContainer {
    display: flex;
    width: 95%;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 0 10px;
}

#messageInput {
    width: 100%;
    max-width: 75%;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 8px;
}

#sendBtn {
    padding: 8px 12px;
    background-color: #117421FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 10px;
    margin-bottom: 20px;
}

#downloadTranscriptsBtn, #submitGetUserInfoForm, #submitTempestForm, #submitUnansweredChatForm {
    margin-left: 10px;
    padding: 8px 12px;
    background-color: #117421FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

#chatEndedContainer {
    width: 100%;
    padding: 10px;
    margin-left: 50px;
}

#resumeChatBtn {
    margin: 10px 35px;
    height: 35px;
    background-color: #f0f0f0;
}

#resumeChatBtn:hover {
    background-color: #ddd;
}

#sendBtn:hover, #downloadTranscriptsBtn:hover {
    background-color: #0b631a;
}

#repMessage {
    color: #999;
    font-size: 12px;
    text-align: center;
    margin: 0 20px;
}

#chatEndedMessage {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    margin-left: 43px;
}

/* Selection UI */
#customerSelection, #supportOptions {
    padding: 10px;
    text-align: center;
}

#customerSelection button, #supportOptions button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    background-color: #117421FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Forms */

/* Get Phone Number */
#getUserInfoForm, #unansweredChatForm {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.formLabel {
    font-size: 12px;
    margin-bottom: 5px;
    color: #333;
}

.formInputField {
    /*ignore any inherited styling*/
    all: unset;
    width: 90%;
    padding: 3px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#requestInfoMessage {
     color: #999;
     font-size: 12px;
 }

#closeGetUserInfoForm, #closeUnansweredChatForm {
    margin-left: 10px;
    padding: 8px 12px;
    background-color: #e1e1e1;
    color: #1b1b1b;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

#formMessage {
    font-size: 20px;
    margin-top: 20px;
}

#requestInfoMessage {
    line-height: 1.2;
    font-size: 12px;
    margin-bottom: 10px;
    margin-left: 20px;
}


/* Message Prop
A message popup to appear next to the widget on the initial load of the page to prompt the user to start a chat */
#chatPopup {
    position: fixed;
    bottom: 29px;
    right: 100px;
    font-size: medium;
    background-color: #ffffff;
    border: none;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 2px 8px 12px rgba(0, 0, 0, 0.56);
    height: 55px;
}

#closePopup {
    color: #333333;
    padding: 0;
    margin: 0 0 16px 0;
    height: 27px;
    background-color: white;
}
