/*@font-face {
  font-family: SourceSanPro;
  src: url('Your font URL here');
}

@font-face {
  font-family: NotoKufi;
  src: url('Your font URL here');
}

:root {
  --font-family-lightframe: SourceSanPro, NotoKufi !important;
  --font-family-boldframe: SourceSanPro, NotoKufi !important;
}
*/
body {
  font-family: var(--font-family-lightframe);
}

.NMiframe_container {
  overflow: hidden;
  font-family: var(--font-family-lightframe);
  margin: 0
}

#NMiframe {
  border-radius: 10px;
  display: none;
  width: 100%;
  right: 0;
  bottom: 0%;
  height: 100%;
  position: absolute;
}

#NMDragBtn {
  position: absolute;
  top: -30px;
  right: 45px;
}

#NMIconsContainer {
  position: relative;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row-reverse;
}

#NMpopupIcon {
  bottom: 10px;
  right: 28px;
  background: #224261 center no-repeat;
  background-image: linear-gradient(270deg, #224261 0%, #224261 100%);
  border-radius: 16px;
  background-position: -2px -2px;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 0;
  font-weight: bold;
  margin: auto 0;
  height: 64px;
  outline: 0;
  padding: 0;
  /* position: fixed; */
  text-align: right;
  white-space: nowrap;
  width: 180px;
  height: 64px;
  z-index: 9999999 !important;
  border: 2px solid transparent;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: width 0.3s ease;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

#NMpopupIcon.minimized {
  width: 64px;
  transition: width 0.3s ease;
}

#NMpopupIcon.minimized .NMButtonText {
  display: none;
  visibility: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
}

#NMpopupIcon .NMButtonText {
  transition: opacity 0.2s ease;
  margin: 0;
  padding: 0;
}

/* Ensure the transition animation works when expanding as well */
#NMpopupIcon.expanding {
  animation: minimizeButton 0.3s ease reverse forwards;
}

@keyframes minimizeButton {
  from {
    width: 180px;
  }

  to {
    width: 64px;
  }
}

.NMButtonICon {
  background: url('Add your Image') no-repeat;
  background-position: center center;
  display: block;
  height: 40px;
  width: 40px;
  margin-top: 8px;
}

.NMButtonText {
  color: white;
  font-size: 20px;
  margin-bottom: 0 !important;
}


#NMpopupIcon2 {
  bottom: 10px;
  right: 28px;
  background: #224261 center no-repeat;
  background-image: linear-gradient(270deg, #224261 0%, #224261 100%);
  border-radius: 16px;
  background-position: -2px -2px;
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 0;
  font-weight: bold;
  margin: auto 0;
  height: 64px;
  outline: 0;
  padding: 0;
  position: fixed;
  text-align: right;
  white-space: nowrap;
  width: 64px;
  height: 64px;
  z-index: 9999999 !important;
  border: 2px solid transparent;
  margin: 0;
}

#NMiframe_block {
  position: fixed;
  border-radius: 7px;
  width: 100%;
  max-width: 400px;
  right: 10px;
  bottom: 90px;
  height: 100%;
  max-height: 700px;
  display: none;
  z-index: 9999999 !important;
  background: transparent;
  box-shadow: 0px 4px 15px rgba(109, 109, 109, 0.5);
}

#NMcloseBtn {
  align-items: center;
  justify-content: center;
  height: 55px;
  z-index: 1001;
  padding: 0px;
  width: 55px;
  border-radius: 30px;
  text-align: center;
  margin: 10px;
  font-size: 11px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  position: relative;
  /* top: 0; */
  /* right: 0; */
  background: #a1865a;
  color: white;
  overflow: hidden;
}

#NMEndChatBtn {
  align-items: center;
  justify-content: center;
  height: 55px;
  z-index: 1001;
  padding: 0px;
  width: 55px;
  border-radius: 30px;
  text-align: center;
  margin: 10px;
  font-size: 11px !important;
  cursor: pointer;
  transition: all 0.3s ease, right 0.3s ease;
  display: none;
  position: relative;
  /* top: 0; */
  /* right: 0; */
  background: #a1865a;
  color: white;
  overflow: hidden;
}

/* Center and size the icons properly - override the inline width of 20% */
#NMcloseBtn img,
#NMEndChatBtn img {
  width: 100% !important;
  /* Override inline style to make icon fill button in collapsed state */
  max-width: 24px !important;
  /* Limit maximum size */
  height: 24px !important;
  display: inline-flex !important;
  vertical-align: middle;
  margin: 0 auto !important;
  /* Center horizontally */
  object-fit: contain;
}

/* Improve button content layout */
#NMcloseBtn,
#NMEndChatBtn {
  display: none;
  /* Initial state, will be changed to flex by JavaScript */
  flex-direction: row;
  align-items: center;
  justify-content: center;
  /* Center icon in collapsed state */
  transition: all 0.2s ease;
  /* Fast expansion */
  padding: 0;
  /* Add padding to ensure icon is properly positioned */
  box-sizing: border-box;
  width: 55px;
  /* Compact initial width */
}

/* Initial state - centered icon */
#NMcloseBtn img,
#NMEndChatBtn img {
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Expanded state - icon aligned left */
#NMIconsContainer.hover-active #NMcloseBtn img,
#NMIconsContainer.hover-active #NMEndChatBtn img {
  width: 24px !important;
  /* Fixed width for expanded state */
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Hide button text initially */
.btn-text {
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  /* Quick fade in, standard fade out */
  margin-left: 8px;
  display: inline-block;
  visibility: hidden;
  /* Fully hide text in collapsed state */
}

/* Replace hover with class-based styling */
#NMIconsContainer.hover-active #NMcloseBtn,
#NMIconsContainer.hover-active #NMEndChatBtn {
  width: 130px;
}

/* Show text when active */
#NMIconsContainer.hover-active #NMcloseBtn .btn-text,
#NMIconsContainer.hover-active #NMEndChatBtn .btn-text {
  opacity: 1;
  visibility: visible;
  /* Show text in expanded state */
}

/* Different transition speeds for in/out */
#NMcloseBtn,
#NMEndChatBtn {
  display: none;
  /* Initial state, will be changed to flex by JavaScript */
  flex-direction: row;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  /* Fast expansion */

}

#NMEndChatBtn {
  transition: all 0.2s ease, right 0.2s ease;
  /* Fast expansion */
}

#NMiframe_tag {
  padding: 0;
  margin-bottom: 15px;
  height: 100%;
  border-radius: 10px;
  width: 100%;
  /* box-shadow: 0 0 9px 0px #aeaeae; */
  border: none;
}

#NMpreChatBotIframeMsg {
  display: none;
  position: absolute;
  bottom: 0;
  z-index: 200;
}

/* Media query for mobile browsers with height less than 800px */
@media screen and (max-height: 800px) {
  #NMiframe_block {
    height: 85% !important;
    max-height: none !important;
    /* Remove the max-height constraint to ensure 85% works properly */
  }
}

.iconsAvtHolder {
  position: fixed;
  bottom: 10px;
  right: 17px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  z-index: 9999999 !important;
  direction: ltr !important;
}

/* iOS compatibility fixes */
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
  touch-action: manipulation;
}

/* iOS requires explicit size settings */
img {
  max-width: 100%;
  height: auto;
}

.nm-button {
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0;
  width: 55px;
  border-radius: 30px;
  text-align: center;
  margin: 10px;
  font-size: 11px !important;
  cursor: pointer;
  display: none;
  position: relative;
  background: #a1865a;
  color: white;
  border: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.nm-button img {
  height: 28px;
  width: 28px;
  display: inline-block;
}

/* Fix iOS button text display */
.btn-text {
  display: none;
  margin-left: 5px;
  color: white;
}