.widget__header,
.widget__header * {
  font-family: 'Arial', sans-serif ;
  font-size: 13px;
}
.widget__container * {
  box-sizing: border-box;
}

h3,
p,
input {
  margin: 0;
  padding: 0;
}

.entire__chatbot {
  max-width: 450px;
  position: fixed;
  z-index: 98;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: flex-end;
}

.widget__container {
  top: 90px;
  left: 0px;
  padding: var(--padding);
  border-radius: 0px 0px 10px 10px;
  background-color: white;
  border-color: black;
}

/* ============================================Check Chat Area using Color======================================== */
/* ======================================================START======================================== */
/* .widget__container {
  background-color: khaki;
}
.main-chat-content {
  background-color: rgb(160, 240, 140);
}
.chat-footer {
  background-color: rgb(146, 255, 228);
} */
/* =======================================================END======================================== */
.chatbot_iframe {
  width: 380px;
  min-height: 405px;
  border: none;
  border-radius: 0px 0px 10px 10px;
  outline: none;
  box-shadow: none;
}

.widget__icon {
  cursor: pointer;
  display: block;
  background: rgb(35, 97, 173);
  width: 40px;
  height: 40px;
  background-image: url(https://pse-chatbot.0atlas.com/assets/images/botIcon.png);
  background-size: 40px 40px;
  background-repeat: no-repeat;
  background-color: rgb(35, 97, 173);
  border-radius: 50%;
}

.header_icon {
  width: 40px !important; 
  height: 40px !important;
  border-radius: 50%;
}

.widget__hidden {
  transform: scale(0);
}

.button__container {
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 80%;
  background-color: transparent;
}

.button__container:hover {
  background-color: transparent !important;
  border-color: transparent !important;
  outline: 0px !important;
}

.button__container:focus {
  background-color: transparent !important;
  border-color: transparent !important;
  outline: 0px !important;
}

.alertBox {
  position: relative;
  background: blue;
  left: 25px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  top: -45px;
  z-index: 1;
  display: none;
  box-shadow: 0px 0px 3px black;
  border: 3px solid white;
}

.widget__container.hidden {
  max-height: 0px;
}

.widget__header {
  min-width: 410px;
  border-radius: 18px 18px 18px 18px;
  box-sizing: unset;
}

.widget_header_item {
  padding: var(--padding);
  background-color: #4a617d;
  display: flex;
  flex-direction: column;
  border-radius: 10px 10px 0px 0px;
}
.widget_header_row1 {
  display: flex;
  justify-content: space-between;
}

.switch-label {
  margin-left: 5px;
  color: white;
}

.switch-div {
  position: absolute;
  right: 30px;
  bottom: 10px;
}

.newChatButton {
  position: absolute;
  left: 15px;
  bottom: 14px;
}

.switch {
  position: absolute;
  display: inline-block;
  width: 30px;
  height: 20px;
  left: -30px;
  bottom: 5px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 17px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
  /* Make the button circle */
}

.slider.round {
  border-radius: 34px;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}

:root {
  --primary: #2361ad;
  --light-primary: rgba(35, 97, 173, 6%);
  --padding: 18px 18px 18px 22px;
}

.icons {
  position: right;
  display: flex;
  justify-content: space-between;
  float: left;
  width: 180px;
  height: 50px;
}

.closeicons {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  float: right;
  width: 30px;
  height: 30px;
}

.team-text {
  display: block;
  color: whitesmoke;
  margin-left: 10px;
  margin-top: 0;
}

/* .tony-text {
  display: block;
  font-size: 13px;
  color: whitesmoke;
  margin-left: 50px;
  margin-top: -15px;
} */

.chatbox-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: white;
  margin-left: auto;
}

.chatbox-toolbar > p {
  position: relative;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.chatbox-toolbar > p:hover {
  background: rgba(255, 255, 255, 0.1);
}

.guide-button.checked {
  color: rgb(219, 123, 0);
}

.chatbox-toolbar > p::after {
  visibility: hidden;
  content: attr(data-tooltip);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  position: relative;
  z-index: 1;
  width: max-content;
  display: inline-block;
  transform: translateX(-50%);
  left: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 4px;
  border-radius: 8px;
}

.chatbox-toolbar > p:hover::after {
  visibility: visible;
  opacity: 1;
}

.chat img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 70%;
  -webkit-border-radius: 70%; /* For older versions of Safari */
}

.suggestion-button {
  border-radius: 10px;
  margin-bottom: 5px;
  padding: 10px;
  max-width: 90%;
  cursor: pointer;
  background-color: rgb(233, 230, 237);
  color: #111111;
  box-shadow: 2px 2px rgb(134, 134, 134);

}

.suggestion-button:hover {
  background-color: rgb(210, 210, 215);
  border-color: rgb(210, 210, 215);
}
/* ==========================================================chat content section ==========================================================*/

.main-wrapper {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.chatArea {
  line-height: 20px !important;
  min-height: 100px;
  overflow-y: scroll;
  scrollbar-width: thin;
}

.sent {
  margin-right: 10px;
}

.chat-header {
  line-height: 20px !important;
  flex-direction: column;
}

.chat-label {
  margin: 17px auto;
  color: #000;
  text-align: center;
}

.chat {
  display: flex;
  margin-bottom: 16px;
  flex-direction: column;
  gap: 5px;
}

.chat-content-wrapper {
  display: flex;
  gap: 11px;
  align-items: end;
}

.chat-content {
  font-weight: 400;
  margin: 0px 0px 0px 0px !important;

}


.chat-content-wrapper a {
  position: static;
}

.sent .chat-content-wrapper {
  margin-right: 5px;
  flex-direction: row-reverse;
}

.chat-content {
  padding: 13px 8px;
  border-radius: 6px 0px;
  background-color: var(--light-primary);
  color: #000;
  max-width: 80%;
}

.chat-content p {
  line-height: 20px;
  font-weight: 400;
  margin: 0px 0px 0px 0px !important;

}

.sent .chat-content p {
  color: rgb(234, 234, 234) !important;
}

.sent .chat-content {
  background-color: var(--primary);
}

.main-chat-content {
  padding: 18px 0px 10px 10px;
  padding-top: 0;
  padding-bottom: 0;
  flex-grow: 1;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  height: 45vh;
}

.chat-footer {
  padding: var(--padding);
  flex-direction: column;
  gap: 17px;
}

.input-wrapper {
  min-height: 15px;
}

.chat-textarea {
  border-radius: 12px;
  border: 0.2px solid var(--light-primary);
  background: var(--light-primary);
  padding: 10px 22px;
  min-height: 38px;
  max-height: 110px;
  width: 100%;
  max-width: 100%;
  height: 40px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: -3px;
  word-wrap: break-word;
  overflow-y: auto;
  scrollbar-width: thin;
  resize: none;
}

.chat-time {
  line-height: 18px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  margin: 0px !important;
}

.sent .chat-time {
  align-self: flex-end;
}

/* ==========================================================Screen width Section==========================================================*/
@media only screen and (max-width: 500px) {

  .entire__chatbot {
    bottom: 1rem;
    right: 1rem;
  }

  
  .chatbox-toolbar {
    display: grid;
    align-content: flex-end;
    grid-template-columns: repeat(3, 1fr);
    color: white;
  }

  .widget__header {
    width: 100%;
    border-radius: 0;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 1;
  }

  .widget_header_item {
    border-radius:0;
  }

  .widget__container {
    min-height: unset;
    max-height: unset;
    width: 100%;
    height: 100%;
    right: 0;
    left: 0;
    position: fixed;
    top: 77px;
    padding: 0;
    border-radius: 0;
  }

  .chatbot_iframe {
    width: calc(100%);
    min-height: unset;
    max-height: unset;
    border: none;
    height: calc(100% - 80px);
    border-radius: 0;
    outline: none;
    box-shadow: none;
  }
}

@media only screen and (max-width: 510px) and (max-height: 600px) {
  .widget__header {
    bottom: 450px;
  }
  .main-chat-content {
    height: 60vh !important; 
  }
}

@media only screen and (max-height: 650px) and (min-aspect-ratio: 1/1) {
  .widget__header {
    width: 380px;
  }

  .widget__container {
    min-height: 450px;
    max-height: 450px;
    width: 410px;
    height: 450px;
    right: -30px;
    top: 100px;
    position: absolute;
  }

  .chatbot_iframe {
    width: 380px;
    min-height: 430px;
    max-height: 430px;
    border: none;
    border-radius: 0px 0px 10px 10px;
    outline: none;
    box-shadow: none;
  }
}

.overlay-youtube {
  margin: auto;
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 1, 1, 0.863);
  z-index: 99;
  justify-content: center;
  align-items: center;
}

.overlay-product {
  margin: auto;
  position: fixed;
  display: block;
  width: 70%;
  height: 100%;
  background-color: rgba(3, 1, 1, 0.863);
  z-index: 99;
  justify-content: center;
  align-items: center;
}

.overlay-order {
  margin: auto;
  position: fixed;
  display: block;
  width: 70%;
  height: 100%;
  background-color: rgba(3, 1, 1, 0.863);
  z-index: 99;
  justify-content: center;
  align-items: center;
}

.overlay-youtube iframe {
  width: 700px;
  height: 455px;
}

.youtube_closeicons {
  position: absolute;
  right: 1rem;
  top: 5rem;
  height: 5rem;
  cursor: pointer;
}

.productMain {
  width: 90%;
  height: 80%;
  overflow: auto;
  border: none;
}

