#ath-widget-root {
  all: initial;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  font-family:"Roboto", sans-serif!important;
  /* "Inter", "Segoe UI", Arial, Helvetica, sans-serif; */
  color: #0f172a;
  display: block;
  --ath-widget-height: 640px;
  
}

#ath-widget-root *,
#ath-widget-root *::before,
#ath-widget-root *::after {
  box-sizing: border-box;
  font-family: inherit;
}

#ath-widget-root [hidden] {
  display: none !important;
}

.ath-widget {
  position: relative;
  width: 360px;
  max-width: calc(100vw - 32px);
}

.ath-widget-panel {
  position: relative;
  background: #F5F8F9;
  border: 2px solid #1f66b2;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  height: var(--ath-widget-height);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ath-widget-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  padding:10px;
}

.ath-widget-header {
  padding: 12px 12px 14px;
  background: #F5F8F9;
  border-bottom: 1px solid #0000001A;
  flex-shrink: 0;
 
}

.ath-widget-top {
  /* display: flex;
  align-items: flex-start; */
 
  gap: 12px;
  font-size: 12px;
  color: #6b7280;
   display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

}

.ath-widget-top span {
  line-height: 1.4;
 
}

.ath-widget-top .available-date{
  font-weight: 500;
  font-style: italic;
  color: #303030;
  font-size: 11px;
}

.ath-widget-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* gap: 8px; */
  /* padding: 20px 0; */
}

.ath-widget-sponsor {
  background: #ffffff;
  border-radius: 5px;
  padding: 5px;
  /* border: 1px solid #e5e7eb; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* text-align: center; */
  /* min-width: 74px; */
}

.ath-widget-sponsor-label {
  display: block;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #878D91;
  font-weight: 700;
  margin-bottom: 5px;
}

.ath-widget-sponsor-logo {
  display: block;
  width: 68px;
  height: 17px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ath-widget-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ath-widget-avatar svg {
  width: 56px;
  height: 56px;
}

.ath-widget-welcome h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

.ath-widget-welcome p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #000000;
  max-width: 280px;
}

.ath-widget-gate {
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* .ath-widget-gate .ath-widget-welcome {
  padding: 20px 18px 0;
} */

.ath-widget-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  /* border: 1px solid #e5e7eb; */
  text-align: center;
  margin: 0 18px;
  margin-top: 5px;
  width: 280px
}

.ath-widget-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ath-widget-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.ath-widget-scroll::-webkit-scrollbar {
  width: 6px;
}

.ath-widget-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.ath-widget-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.ath-widget-date {
  align-self: center;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
  /* border: 1px solid #e2e8f0; */
  font-size: 12px;
  color: #303030;
  font-weight: 400;
  margin: 5px 0px;
  box-shadow:
    0px 1px 4px 0px rgba(0, 0, 0, 0.05),
    0px 1px 4px 0px rgba(0, 0, 0, 0.10);
}

.ath-widget-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.ath-widget-faq-item {
  border: 1px solid #ffffff;
  background: #ffffff;
  border-radius: 20px;
  padding: 15px;
  text-align: left;
  font-size: 15px;
  line-height: 1.2;
  color: #303030;
  cursor: pointer;
  transition: background 0.2s;
}

.ath-widget-faq-item:hover {
  border: 1px solid #ffffff;
  background: #f8fafc;
}

.ath-widget-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* margin-bottom: 8px; */
}

.ath-widget-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ath-widget-message-user {
  align-items: flex-end;
}

.ath-widget-message-bot {
  align-items: flex-start;
}

.ath-widget-message-user .ath-widget-message-bubble {
  background: #ffffff;
  border-radius: 20px;
  padding: 15px;
  color: #303030;
  font-size: 15px;
  line-height: 1.2;
  max-width: 70%;
  text-align: end;
  font-weight: 400;
}

.ath-widget-message-bot .ath-widget-message-bubble {
  background: #004A801A;
  border-radius: 20px;
  padding: 15px;
  color: #000000;
  font-size: 15px;
  line-height: 1.2;
  max-width: 85%;
  text-align: left;
}

.ath-widget-message-time {
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  color: #878D91;
  padding: 0 4px;
}

.ath-widget-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
  max-width: 85%;
}

.ath-widget-action {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ath-widget-action:hover {
  opacity: 0.7;
}

.ath-widget-action-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(54%) sepia(6%) saturate(400%) hue-rotate(182deg) brightness(93%) contrast(88%);
}

.ath-widget-action.is-selected .ath-widget-action-icon {
  filter: brightness(0) saturate(100%)
          invert(20%)
          sepia(90%)
          saturate(1700%)
          hue-rotate(190deg)
          brightness(0.75)
          contrast(1.1);
  /* filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(2000%) hue-rotate(195deg) brightness(0.3) contrast(1.2); */
}



.ath-widget-action.is-hidden {
  display: none!important;
  width:0!important;
  height:0!important;
  gap: 0!important;
  /* filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(2000%) hue-rotate(195deg) brightness(0.3) contrast(1.2); */
}

.ath-widget-action-time {
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  color: #878D91;
  margin-left: auto;
}

/* .ath-widget-articles {
  margin-top: 4px;
} */

.ath-widget-articles h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ath-widget-article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ath-widget-article {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px;
  /* border: 1px solid #e2e8f0; */
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.05);
  
}

.ath-widget-article:hover {
  background: #f8fafc;
}

.ath-widget-article-thumb {
  width: 60px;
  height: 40px;
  /* border-radius: 8px; */
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.ath-widget-article a {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 1;
}

.ath-widget-article a:hover {
  opacity: 0.8;
}

.ath-widget-article p {
  margin: 0;
  font-size: 12px;
  color: #000000;
  line-height: 1.5;
  font-weight: 500;
}

.ath-widget-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 20px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  margin: 0 18px 18px;
  flex-shrink: 0;
  
}

.ath-widget-input textarea {
  border: none;
  font-size: 13px;
  color: #0f172a;
}

.ath-widget-input textarea::placeholder {
  color: #94a3b8;
}

.ath-widget-input textarea:focus-visible {
    outline: none;
}

.ath-widget-input button {
  width: 45px;
  height: 36px;
  border-radius: 25px;
  border: 2px solid #BFCED9;
  background: linear-gradient(to right, #003E6B, #005FA5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ath-widget-input button:disabled {
  background: linear-gradient(to right, #809EB5, #80AFD3);
  cursor:no-drop;
}

.ath-widget-input button svg {
  width: 16px;
  height: 16px;
}

.ath-widget-card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.2;
  color: #000000;
  font-weight: 700;
}

.ath-widget-login {
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ath-widget-login:hover {
  background: #eef2f7;
}

.ath-widget-login-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ath-widget-fab {
  position: absolute;
  right: 0;
  bottom: -56px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #1f66b2;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(31, 102, 178, 0.3);
}

.ath-widget-fab:focus {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .ath-widget {
    width: calc(100vw - 32px);
  }

  .ath-widget-fab {
    bottom: -64px;
  }
}

.ath-widget-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.ath-widget-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ath-widget-modal:not([hidden]) .ath-widget-modal-overlay {
  opacity: 1;
}

.ath-widget-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 24px;
  z-index: 1;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.ath-widget-modal:not([hidden]) .ath-widget-modal-content {
  transform: translateY(0);
}

.ath-widget-modal-content::-webkit-scrollbar {
  width: 6px;
}

.ath-widget-modal-content::-webkit-scrollbar {
  width: 6px;
}

.ath-widget-modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.ath-widget-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.ath-widget-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s;
}

.ath-widget-modal-close:hover {
  background: #f1f5f9;
}

.ath-widget-modal-title {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 400;
}

.ath-widget-modal-title strong {
  font-weight: 700;
}

.ath-widget-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ath-widget-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ath-widget-modal-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.ath-widget-modal-option:hover {
  background: #f8fafc;
}

.ath-widget-modal-option input[type="radio"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1f66b2;
  flex-shrink: 0;
}

.ath-widget-modal-option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ath-widget-modal-option-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.ath-widget-modal-option-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.ath-widget-modal-comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ath-widget-modal-comment label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.ath-widget-modal-comment textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.ath-widget-modal-comment textarea::placeholder {
  color: #94a3b8;
}

.ath-widget-modal-comment textarea:focus {
  outline: none;
  border-color: #1f66b2;
  box-shadow: 0 0 0 3px rgba(31, 102, 178, 0.1);
}

.ath-widget-modal-submit {
  width: 100%;
  padding: 12px 20px;
  background: #1f66b2;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.ath-widget-modal-submit:hover {
  background: #185a9f;
}

.ath-widget-modal-submit svg {
  width: 16px;
  height: 16px;
}

.ath-widget-modal-privacy {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  text-align: center;
}

.ath-widget-modal-privacy strong {
  font-weight: 600;
  color: #0f172a;
}

