@import url("https://fonts.googleapis.com/css?family=Raleway|Ubuntu&display=swap");

.chat-box {
  height: 90%;
  width: 30%;
  /* Default width for larger screens */
  position: fixed;
  margin: 0 auto;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  z-index: 15;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.005);
  right: 0;
  bottom: 0;
  margin: 15px;
  background: #fff;
  border-radius: 15px;
  visibility: hidden;
  border: 1px solid black;
  color: black;
}

/* Full screen width for screens below 500px */
@media (max-width: 500px) {
  .chat-box {
    width: 100%;
    margin: 0;
  }
}

/* 50% width for screens between 501px and 800px */
@media (min-width: 501px) and (max-width: 800px) {
  .chat-box {
    width: 50%;
    margin: 0;
  }
}

.chat-box-header {
  height: 8%;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  font-size: 14px;
  padding: 0.5em 0;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 -1px 10px rgba(172, 54, 195, 0.3);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.025);
}

.chat-box-header h3 {
  font-family: ubuntu;
  font-weight: 400;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

.chat-box-header p {
  float: right;
  position: absolute;
  right: 16px;
  cursor: pointer;
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 3.25;
  margin: 0;
}

.chat-box-body {
  height: 75%;
  background: #f8f8f8;
  overflow-y: scroll;
  padding: 12px;
}

.chat-box-body-send {
  width: 80%;
  float: right;
  background: rgb(208, 246, 208);
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
  margin-bottom: 14px;
}

.chat-box-body-send p {
  margin: 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.chat-box-body-send span {
  float: left;
  color: #777;
  font-size: 10px;
}

.chat-box-body-send div {
  float: right;
  color: #777;
  font-size: 10px;
}

.chat-box-body-receive {
  width: 80%;
  float: left;
  background: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
  margin-bottom: 14px;
}

.chat-box-body-receive p {
  margin: 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.chat-box-body-receive span {
  float: left;
  color: #777;
  font-size: 10px;
}

.chat-box-body::-webkit-scrollbar {
  width: 5px;
  opacity: 0;
}

.chat-box-footer {
  position: relative;
  display: flex;
}

.chat-box-footer button {
  border: none;
  padding: 16px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.chat-box-footer button:focus {
  outline: none;
}

.chat-box-footer textarea {
  padding: 10px;
  border: none;
  -webkit-appearance: none;
  border-radius: 10px;
  background: whitesmoke;
  margin: 10px;
  font-family: ubuntu;
  font-weight: 600;
  color: #444;
  width: 85%;
}

.chat-box-footer textarea:focus {
  outline: none;
}

.chat-box-footer .send {
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  transform: translate(0px, 20px);
  cursor: pointer;
}

.chat-button {
  padding: 25px 16px;
  background: #2c50ef;
  width: 12%;
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 15px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
  box-shadow: 0 2px 15px rgba(44, 80, 239, 0.21);
  cursor: pointer;
  font-weight: bold;
}


@media (max-width: 500px) {
  .chat-button {
    width: 50%;
  }
}

/* 50% width for screens between 501px and 800px */
@media (min-width: 501px) and (max-width: 800px) {
  .chat-button {
    width: 20%;
  }
}

.chat-button span::before {
  content: "";
  height: 15px;
  width: 15px;
  background: #47cf73;
  position: absolute;
  transform: translate(0, -7px);
  border-radius: 15px;
}

.chat-button span::after {
  content: "Support Chat";
  font-size: 14px;
  color: white;
  position: absolute;
  left: 50px;
  top: 18px;
}

.badge-support-chat {
  position: absolute;
  /* Position the badge absolutely within the chat-button container */
  top: 0;
  /* Align badge to the top */
  right: 0;
  /* Align badge to the right */
  transform: translate(50%, -50%);
  /* Adjust position to ensure it's not cut off */
  background-color: red;
  /* Badge background color */
  color: white;
  /* Badge text color */
  border-radius: 50%;
  /* Circular badge */
  padding: 0.5em 0.7em;
  /* Padding to adjust the badge size */
  font-size: 0.75em;
  /* Font size of the badge text */
  font-weight: bold;
  /* Bold text */
  text-align: center;
  /* Center the text within the badge */
}

.modal-support-chat {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
  border: 1px solid red;
}

.modal-content-support-chat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1rem 1.5rem;
  width: 24rem;
  border-radius: 0.5rem;
}

.modal-close-button-support-chat {
  float: right;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: lightgray;
}

.close-button:hover {
  background-color: darkgray;
}

.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
  z-index: 30;
}

.chat-box-body-inquiries-type {
  width: 90%;
  /* float: right; */
  background: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
  margin-bottom: 14px;
}

.center-container {
  display: flex;
  justify-content: center;
  /* Centers the child element horizontally */
  align-items: center;
}

.support-available-timings {
  margin: 0;
  color: #444;
  font-size: 18px;
  margin-bottom: 0.25rem;
}

.chat-box-body-inquiries-type p {
  margin: 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.chat-box-body-inqueries-type span {
  /* float: right; */
  color: #777;
  font-size: 10px;
}