.hentry.type-page .entry-header .entry-content:has(+ .glmai-inline-chat) h1.entry-title{
  text-align: center;
}
.glmai-suggest {
    
}
.glmai-suggested-heading {
    width: 100%;
}

.glmai-inline-chat{border:1px solid #e3e3e7;border-radius:12px;overflow:hidden;background:#fff;width:100%;max-width:none;margin:0;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.glmai-header{padding:12px 16px;background:#111827;color:#fff}
.glmai-title{font-weight:600}
.glmai-body{padding:12px 16px}
.glmai-topic-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:0;justify-content: center;}
.glmai-topic:not(.ai-item){background:#e5e7eb;border:0;border-radius:999px;padding:6px 12px;cursor:pointer;    min-width: 32%;display: flex; justify-content: space-between; align-items: center;}
.glmai-suggested{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px auto 12px;
  overflow: hidden;
  padding: 0 0;
  width: 100%;
}
.glmai-suggest{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;padding:6px 10px;cursor:pointer}
.glmai-messages{border:0;padding:12px;max-height:420px;overflow:auto;border-left: 1px solid #d2edfd;}
.glmai-messages .glmai-bot ul,
.glmai-messages .glmai-bot h2{
  margin-top: 7px;
}
.glmai-messages .glmai-bot p, 
.glmai-messages .glmai-bot li {
    margin-top: 5px;
    font-size: 14px;
}
.glmai-messages:has(.glmai-typing) {
  border-left: 0;
  padding: 0;
}
.glmai-msg{padding:8px 10px;border-radius:10px;margin-bottom:8px;max-width:85%}
.glmai-user{background:#dcfce7;margin-left:auto}
.glmai-bot{background:#eef2ff}
.glmai-typing{color:#6b7280;font-style:italic;display:none}
.glmai-typing::after{content:' .';animation:glmaiDots 1.2s steps(3,end) infinite}
@keyframes glmaiDots{0%{content:' .'}33%{content:' ..'}66%{content:' ...'}100%{content:' .'}}
.glmai-input{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #eef0f3}
.glmai-text{flex:1;border:1px solid #e5e7eb;border-radius:8px;padding:10px}
.glmai-send{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:10px 14px;cursor:pointer}

.glmai-topic div{
	margin-top: 0 !important;
	    color: #fff !important;
}

.glmai-inline-chat {
  /* Container, apply container-specific styling here if needed */
}

.glmai-inline-chat .glmai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px 12px 0 0;
  color: #fff;
}

.glmai-inline-chat .glmai-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glmai-inline-chat .glmai-title {
  font-size: 18px;
  font-weight: 600;
}

.glmai-inline-chat .glmai-selected {
  display: none;
  font-size: 13px;
  color: #e5e7eb;
  background: rgba(255,255,255,0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.glmai-inline-chat .glmai-actions {
  display: flex;
  gap: 8px;
}

.glmai-inline-chat .glmai-export-pdf,
.glmai-inline-chat .glmai-start-new,
.glmai-inline-chat .glmai-reset-chat {
  /* display: none; */
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.glmai-inline-chat .glmai-body {
  padding: 20px;
  clear: both;
  min-height: 360px;
}

.glmai-inline-chat .glmai-topic-list .document_main_title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  padding: 20px;
      background: transparent;
    border-radius: 0;
    border: 0;
    display: block;
    min-width: 100%;
}

.glmai-inline-chat .glmai-loading-topics {
	display: none;
	text-align: center;
	padding: 40px;
	text-align: center;
	padding: 40px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	align-items: center;
	background: #00000099;
	z-index: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.glmai-inline-chat .glmai-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.glmai-inline-chat .glmai-loading-text {
  color: #6b7280;
  font-size: 14px;
}

.glmai-inline-chat .glmai-session-section {
  display: none;
  margin: 8px 0;
}

.glmai-inline-chat .glmai-session-label {
  font-weight: 600;
  margin-bottom: 6px;
}

.glmai-inline-chat .glmai-session-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.glmai-inline-chat .glmai-input {
  padding: 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: none;
}

.glmai-inline-chat .glmai-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.glmai-inline-chat .glmai-text {
  padding: 10px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.glmai-inline-chat .glmai-text:focus{
	padding: 10px 18px;
  border: 2px solid #e5e7eb;
}
.glmai-inline-chat .glmai-send {
  background: #0081CC;
  color: #fff;
  border: 0;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.glmai-inline-chat .glmai-confirm {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.glmai-inline-chat .glmai-confirm-box {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  margin: 80px auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
      position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.glmai-inline-chat .glmai-confirm-text {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
}

.glmai-inline-chat .glmai-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.glmai-inline-chat .glmai-btn-continue {
  background: #3b82f6;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.glmai-inline-chat .glmai-btn-new {
  background: #e5e7eb;
  color: #374151;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}


.glmai-recos{
	max-width: 85%;
}
.glmai-inline-chat .glmai-input-row{
	width: 100%;
}

.glmai-typing {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: #f3f4f6;
  border-radius: 18px;
  font-size: 14px;
  color: #6b7280;
  margin: 10px 0;
  width: fit-content;
}

.glmai-typing-text {
  font-weight: 500;
}

.glmai-typing-dots {
  display: flex;
  gap: 2px;
}

.glmai-dot {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.glmai-dot-hidden {
  opacity: 0;
}

/* Animation for the dots - controlled by JavaScript */
.glmai-typing .glmai-dot {
  transition: opacity 0.2s ease;
}

/* Styling for bot loading messages */
.glmai-bot-loading {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: #eef2ff;
  border-radius: 18px;
  font-size: 14px;
  color: #4f46e5;
  margin: 10px 0;
  width: fit-content;
}

.glmai-bot-loading .glmai-typing-text {
  font-weight: 500;
}

.glmai-bot-loading .glmai-typing-dots {
  display: flex;
  gap: 2px;
}

.glmai-bot-loading .glmai-dot {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.glmai-bot-loading .glmai-dot-hidden {
  opacity: 0;
}

/* Styling for loading topics */
.glmai-loading-topics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #6b7280;
}

.glmai-loading-text {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.glmai-loading-text .glmai-typing-dots {
  display: flex;
  gap: 2px;
}

.glmai-loading-text .glmai-dot {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.glmai-loading-text .glmai-dot-hidden {
  opacity: 0;
}

/* Styling for product recommendations */
.glmai-recos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.glmai-reco-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  display: block;
}

.glmai-reco-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.glmai-reco-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #f1f5f9;
}

.glmai-reco-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glmai-reco-price {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 8px;
}

.glmai-reco-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glmai-reco-button {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.glmai-reco-button:hover {
  background: #2563eb;
}

/* Recommendations heading */
.glmai-recos-heading {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  padding: 0 20px;
  margin-top: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
  .glmai-recos {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
  }
  
  .glmai-reco-item {
    padding: 12px;
  }
  
  .glmai-reco-image {
    height: 120px;
  }
  
  .glmai-reco-title {
    font-size: 14px;
  }
  
  .glmai-reco-price {
    font-size: 16px;
  }
  
  .glmai-reco-description {
    font-size: 12px;
  }
}

/* Chat message styling improvements */
.glmai-msg {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  line-height: 1.6;
  max-width: 85%;
}

.glmai-msg.glmai-user {
  background: #e2e9e9;
  color: #333333;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.glmai-msg.glmai-bot {
  background: #fff;
  color: #333333;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.glmai-msg.glmai-bot-loading {
  background: #eef2ff;

  border-bottom-left-radius: 4px;
}

/* Chat container improvements */


/* Input styling improvements */
.glmai-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.glmai-text {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.glmai-text:focus {
  outline: none;
  border-color: #3b82f6;
}

.glmai-send {
  padding: 12px 24px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.glmai-send:hover {
  background: #2563eb;
}

.glmai-send:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}


/* 1310 */
.glmai-back-to-categories{
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px !important;
  padding: 8px 12px;
  font-size: 13px !important;
  transition: all 0.3s ease;
  cursor: pointer;
}
.glmai-back-to-categories:hover{
  transform: translateY(-4px);
}
.glmai-topic-list:has( .glmai-pdf-block ) {
  display: block;
  margin-bottom: 10px;
  justify-content: center;
  max-width: 320px;
  float: left;
  border-radius: 0;
  margin-right: 20px;
}
.glmai-pdf-blocks{
  height: auto;
  max-height: 360px;
  overflow: auto;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.glmai-pdf-block {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 10px;
  display: flex;
  align-content: flex-start !important;
  gap: 5px;
  flex-direction: row-reverse;
  justify-content: space-between;
}
.glmai-pdf-block:before {
  position: absolute;
  content: "\f1c1";
  font-family: 'FontAwesome';
  font-size: 20px;
  left: 0;
  top: 5px;
  color: #f00;
  line-height: 1;
}

.ai-menu{
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  gap: 30px;
}
.ai-menu .ai-item{
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0px 0px 11px 0px #0081CC1A;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
  flex-direction: column;
  justify-content: space-between;
}
.ai-menu .ai-item:hover{
  transform: translateY(-4px);
}
.ai-menu .ai-item .ai-item-image{
  max-width: 100%;
  max-height: 230px;
}
.ai-menu .ai-item span.pro-item-text {
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.5;
    font-weight: 400;
    color: #252525;
}
#prevBtn,
#nextBtn{
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  height: 30px;
  width: 30px;
}
.glmai-pdf-cb {
  appearance: none;
  -webkit-appearance: none;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid #0071b2;
  border-radius: 2px;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  height: 24px;
  margin-top: 2px;
}

/* Tick animation using after pseudo-element */
.glmai-pdf-cb:checked {
  border-color: #0066ff;
  background: #e6f0ff;
}

/* Draw modern checkmark */
.glmai-pdf-cb:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 5px;
  height: 11px;
  border: solid #0066ff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 0.2s;
}

/* Optional: add hover/focus effect */
.glmai-pdf-cb:hover,
.glmai-pdf-cb:focus {
  border-color: #0050b3;
  box-shadow: 0 0 0 2px #c9e5ff;
}

/* Label span styling */
.glmai-pdf-block > span {
  user-select: none;
  color: #13294b;
}
@media (max-width: 1366px){
  .ai-menu{
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px){
  .ai-menu{
    grid-template-columns: repeat(2, 1fr);
  }
  .ai-menu{
    gap: 20px;
  }
}
@media (max-width: 480px){
  .ai-menu{
    grid-template-columns: 1fr;
  }
}

.glmai-faq-outer{ 
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
/* Hide scrollbar for all browsers */
.glmai-faq-slider::-webkit-scrollbar {
  display: none;
}
.glmai-faq-slider {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;        /* smooth scrolling */
  scroll-snap-type: x mandatory;  /* enabling scroll snap horizontally */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.glmai-faq-slider > button {
  scroll-snap-align: start;       /* snap each child at start */
  flex: 0 0 auto;                 /* prevent shrinking */
  margin-right: 8px;
  width: fit-content;
}

.glmai-login-prompt p {
  text-align: center;
  font-size: 20px;
}
.glmai-login-prompt a {
background-color: #0081CC;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    border: 1px solid #0081CC;
    transition: all 0.3s ease;
    color: #fff;
}