body[data-page="feature"] .finfo-askai-wrap {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  float: left;
  clear: both;
  gap: 15px;
  margin-top: 5px;
}
body[data-page="feature"] .finfo-askai-wrap .finfo-askai-query {
  position: relative;
  min-width: 250px;
}

.ai-tag {
  display: inline-flex;
  position: absolute;
  top: 3px;
  right: 5px;
  justify-content: center;
  align-items: center;
  border: 1px solid #eaf6f7;
  border-radius: 6px;
  padding: 2px 4px;
  color: #eaf6f7;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.75px;
}

.ai-tag img {
  display: block;
  filter: brightness(0) invert(1);
  margin-left: 2px;
  width: 10px;
  height: 10px;
}

/* Override jconfirm default padding - only for Ask AI dialog */
.jconfirm.askai-dialog .jconfirm-box {
  border: none !important;
  border-top: 5px solid #006851;
  border-color: #006851 !important;
  padding: 0 !important;
}

.jconfirm.askai-dialog .jconfirm-title-c {
  border-bottom: 1px solid #ddd;
  background-color: #003c44;
  padding: 14px 20px 10px 20px;
  color: #fff;
}

.jconfirm.askai-dialog .jconfirm-closeIcon {
  top: 15px !important;
  color: #fff !important;
}

.jconfirm.askai-dialog .jconfirm-box div.jconfirm-content-pane {
  margin-bottom: 0px !important;
}

.jconfirm.askai-dialog .jconfirm-buttons {
  display: block !important;
  float: none !important;
  padding: 0 !important;
}

.askai-dialog-title {
  display: flex;
  align-items: center;
  clear: both;
  gap: 10px;
  width: 98%;
  font-weight: 500;
  font-size: 16px;
}

.askai-dialog-title .internal-beta-tag {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  margin-top: 0px;
  margin-left: 8px;
  border: 1px solid #eaf6f7;
  border-radius: 4px;
  padding: 2px 6px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Ask AI Dialog Wrapper */
.askai-dialog-wrapper {
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

/* Scrollable Content Section */
.askai-dialog-content {
  flex: 1 1 auto;
  padding: 15px 20px 20px 20px;
  min-height: 200px;
  max-height: calc(70vh - 150px);
  overflow-y: auto;
}

.askai-feature-section {
  display: flex;
  flex-direction: column;
}

.askai-label-wrap {
  display: flex;
  align-items: center;
}
.askai-label {
  color: #333;
  font-weight: 600;
}

.askai-feature-text {
  padding: 10px;
  color: #555;
}

/* Fixed Footer Section */
.askai-dialog-footer {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  padding: 10px 20px;
}

/* --- AskAI Dialog Footer Redesign --- */
.askai-footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

  @media only screen and (max-width: 821px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.askai-footer-left {
  flex: 1;
  min-width: 0;
}
.askai-footer-title {
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 13px;
}
.askai-footer-beta {
  font-weight: 600;
  font-size: 8px;
}
.askai-footer-desc {
  margin-bottom: 6px;
  color: #333;
  font-size: 13px;
}
.askai-footer-desc p {
  margin-bottom: 5px;
}
.askai-footer-link {
  color: #222 !important;
  font-weight: 500;
  text-decoration: underline !important;
}
.askai-footer-legal {
  margin-top: 8px;
  color: #888;
  font-style: italic;
  font-size: 11px;
}
.askai-footer-right {
  display: flex;
  flex: 0 0 250px;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  border-left: 1px solid #ccc;

  @media only screen and (max-width: 821px) {
    flex: 1 1 100%;
    border-left: none;
  }
}
.askai-footer-right-fb-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #eaf6f7;
  padding: 8px 16px;
  color: #006750;

  @media only screen and (max-width: 821px) {
   
  }
}
.askai-footer-mascot {
  margin-bottom: 4px;
  width: 80px;
}
.askai-footer-feedback-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font-weight: bold;
  font-size: 13px;
}
.askai-footer-feedback-title i {
  font-size: 14px;
}
.askai-footer-feedback-desc {
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
}
.askai-footer-feedback-buttons {
  display: flex;
  gap: 10px;
}
.askai-feedback-message {
  display: none;
  margin-top: 6px;
  font-size: 12px;
}

.askai-feedback-label {
  color: #555;
  font-weight: 500;
  font-size: 13px;
}

.askai-feedback-buttons {
  display: flex;
  gap: 8px;
}

.askai-feedback-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #ccc !important;
  border-radius: 4px;
  background: #fff;
  padding: 0;
  padding: 4px 8px !important;
  width: 45px;
  height: 30px;
  color: #555;
  font-size: 16px;
}

.askai-feedback-btn:hover {
  transform: scale(1.05);
  border-color: #999;
  background: #f0f0f0;
}

.askai-feedback-btn.active {
  border-color: #4a90e2;
  background: #e3f2fd;
  color: #1565c0;
}

.askai-like-btn.active {
  border-color: #4caf50;
  background: #2e7d32;
  color: #e8f5e9;
}

.askai-dislike-btn.active {
  border-color: #f44336;
  background: #ffebee;
  color: #c62828;
}

.askai-feedback-btn i {
  font-size: 16px;
}

.askai-feedback-message {
  position: absolute;
  right: 20px;
  bottom: 60px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: #e8f5e9;
  padding: 8px 12px;
  color: #2e7d32;
  font-size: 13px;
}

/*
  * Content Styling - Ensure consistent spacing and typography for various elements
  */

.askai-dialog-content p:first-child {
  margin-top: 0;
  line-height: 22px;
}

.askai-dialog-content p:not(:first-child) {
  margin-top: 10px;
  line-height: 22px;
}

.askai-dialog-content h1 {
  margin: 10px 0;
  border-bottom: 1px solid #ccc;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
}

.askai-dialog-content h2 {
  margin: 15px 0 12px 0;
  border-bottom: 1px solid #ccc;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}

.askai-dialog-content h3 {
  margin: 5px 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 22px;
}

.askai-dialog-content h4 {
  margin: 5px 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}

.askai-dialog-content ol {
  margin-top: 5px;
  margin-bottom: 10px;
  margin-left: 20px;
  list-style: decimal;
}

.askai-dialog-content ol li {
  margin-bottom: 5px;
  line-height: 22px;
  list-style: decimal;
}

.askai-dialog-content ul {
  margin-top: 5px;
  margin-bottom: 10px;
  margin-left: 20px;
  list-style: disc;
}

.askai-dialog-content ul li {
  margin-bottom: 5px;
  line-height: 22px;
  list-style: disc;
}

/* Nested list styles */
.askai-dialog-content li > ul,
.askai-dialog-content li > ol {
  margin-top: 8px;
  margin-bottom: 5px;
  margin-left: 20px;
}

.askai-dialog-content ul ul {
  list-style-type: circle;
}

.askai-dialog-content ul ul ul {
  list-style-type: square;
}

.askai-dialog-content ol ol {
  list-style-type: lower-alpha;
}

.askai-dialog-content ol ol ol {
  list-style-type: lower-roman;
}

.askai-dialog-content li:has(> ul),
.askai-dialog-content li:has(> ol) {
  margin-bottom: 8px;
}

.askai-dialog-content li p{
  margin: 0;
}

.askai-dialog-content strong {
  font-weight: 600;
}

.askai-dialog-content em {
  font-style: italic;
}

.askai-dialog-content img {
  margin-top: 10px;
  padding: 10px;
  max-width: calc(100% - 20px);
}

.askai-dialog-content a:hover {
  text-decoration: underline;
}

.askai-dialog-content pre {
  margin: 10px 15px;
  border-radius: 5px;
  background-color: #EFF8FF;
  padding: 8px 16px;
  font-size: 14px;
  font-family: Inconsolata, monospace, sans-serif;
  white-space: pre-wrap;
  word-wrap: break-word;
  border: 1px solid #f1f1f1;
}
.askai-dialog-content pre code {
  margin: 0 4px 0 0;
  color: #24292f;
  font-size: 13px;
  line-height: 24px;
  font-family: "Inconsolata", monospace, sans-serif;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.askai-dialog-content p>code, .askai-dialog-content li>code {
  margin: 0 4px 0 0;
  border: 1px solid #f1f1f1;
  border-radius: 2px;
  background: #f6f8fa;
  padding: 2px 6px;
  overflow-x: auto;
  color: #24292f;
  font-size: 13px;
  line-height: 24px;
  font-family: "Inconsolata", monospace, sans-serif;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.askai-dialog-content blockquote {
  margin-top: 10px;
  border-left: 4px solid #3e4550;
  background-color: #fafafa;
  padding: 5px 1em;
}

.askai-dialog-content blockquote p{
  margin: 0px;
}

.askai-dialog-content hr {
  margin: 10px 0;
  border: 0;
  background-color: #f1f1f1;
  padding: 1px;
  height: 1px;
}

.askai-dialog-content table {
  margin: 10px 0 20px 0;
  border-collapse: collapse;
}

.askai-dialog-content table thead tr th {
  background-color: #333;
  padding: 8px 10px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
}

.askai-dialog-content table tbody tr {
  border-bottom: 1px solid #f1f1f1;
}

.askai-dialog-content table tbody tr:last-child {
  border-bottom: 1px solid #e6e6e6;
}

.askai-dialog-content table tbody tr:nth-of-type(2n) {
  background-color: #f6f6f6;
}

.askai-dialog-content table tbody tr td {
  display: table-cell;
  border: none;
  padding: 8px 10px;
  font-size: 14px;
}
