/* fyron.css */
#floating-chatbot-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 25%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 17px 0 rgba(0,0,0,0.5);
  cursor: pointer;
}

#floating-chatbot-btn:hover {
  background: #1e40af;
}

#floating-chatbot-modal {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
}

#floating-chatbot-modal.active {
  display: block;
}

.chatbot-outer {
  position: relative;
  margin: 0 auto;
  height: 100%;
  background: #FDFDFD;
  font-family: 'Inter', 'Helvetica', 'Arial', sans-serif;
  font-size: 1rem;
  border-radius: 3rem;
  padding: 0.6rem;
  overflow: visible;
}

.chatbot-outer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #8d8d8d;
  opacity: 0.10;
  border-radius: 3rem;
  z-index: 1;
  pointer-events: none;
}

.chatbot-window {
  position: relative;
  width: min(85vw, 408px);
  height: min(85vh, 788px);
  min-width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: #fff;
  border-radius: 30px;
  box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.25),-116px 177px 59px 0px rgba(0,0,0,0.00),-74px 113px 54px 0px rgba(0,0,0,0.01),-42px 64px 46px 0px rgba(0,0,0,0.03),-19px 28px 34px 0px rgba(0,0,0,0.06);
  overflow: hidden;
  padding-top: 8px;
}

.chatbot-header {
  position: absolute; 
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  margin: 0px 6px;
  backdrop-filter: blur(2px);
  z-index: 2;
  pointer-events: auto;
}

.white-transparent-header {
  background-image: linear-gradient(white 20%, transparent);
}

.chatbot-header-bg {
  position: absolute;
  inset: 0;
  height: 48px;
  overflow: hidden;
  border-radius: 9999px;
  z-index: 1;
  opacity: 0.95;
  margin-top: 6px;
}

.chatbot-header-content {
  z-index: 10;
  position: absolute;
  inset: 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.chatbot-title {
  font-size: 1.7rem;
  font-weight: 700;
  z-index: 5;
  color: #fff;
  display: flex;
  align-items: center;
  height: 100%;
}

.chatbot-title-word{
  margin-top: 3px;
}

.chatbot-logo {
  position: absolute;
  top: 115%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
  background: linear-gradient(225deg, #09bbfe 0%, #5a42ec 67%, #5a42ec 100%);
}

.chatbot-logo img {
  width: 45px;
  height: 45px;
  object-fit: cover;
}

.chatbot-close {
  margin-top: 2px;
  cursor: pointer;
  font-size: 40px;
  z-index: 5;
  color: #fff;
}

.chatbot-body {
  position: relative;
  height: 100%;
  min-height: 0;
}

.chatbot-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chatbot-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.chatbot-body th,
.chatbot-body td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.chatbot-body th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.chatbot-body tr:nth-child(even) {
  background-color: #f9fafb;
}

.chatbot-body a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.chatbot-body a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chatbot-maximize,
.chatbot-newchat {
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 15;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden { display: none !important; }

.chatbot-window.maximized {
  width: 100% !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  position: fixed !important;
  z-index: 10001 !important;
  padding-top: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 750px) {
  .chatbot-window.maximized {
    min-width: 750px !important;
  }
  .chatbot-window.maximized .chatbot-header-bg {
    display: none !important;
  }

  .chatbot-window.maximized .chatbot-header {
    backdrop-filter: blur(0px) !important;
  }

  .chatbot-window.maximized .chatbot-close {
    color: #575757;
  }
  .chatbot-window.maximized .chatbot-title {
    font-size: 1.8rem;
    color: #575757 !important;
  }
  .chatbot-window.maximized .chatbot-title-logo {
    display: inline-block;
  }
  .chatbot-window.maximized .new-chat-circle { fill: white; }
  .chatbot-window.maximized .new-chat-path { fill: #575757; }
  .chatbot-window.maximized .maximize-stroke { stroke: #575757 !important; }
  .chatbot-window.maximized .chatbot-logo {display: none !important;}

  .chatbot-window.maximized .chatbot-title-word{
    display: none !important;
  }
}

@media (max-width: 300px) {

  .chatbot-title { display: none !important; }
  .chatbot-newchat {display: none !important;}
  .chatbot-close { 
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

.chatbot-title-logo {
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: 10px;
  display: none;
}
.maximize-stroke { stroke: #fff; }
.new-chat-circle { fill: blue; }
.new-chat-path { fill: #fff; }

.chatbot-header-bg svg {
  height: 48px !important;
  min-width: 100vw !important;
  display: block;
}

@media (max-width: 600px) {
  .chatbot-maximize {display: none !important;}
  .chatbot-window {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    position: fixed !important;
    z-index: 10001 !important;
    padding-top: 0 !important;
  }

  .chatbot-outer {
    border-radius: 0 !important;
    padding: 0 !important;
  }
}