/* 
 * Floating SEO CTA Styles
 * Designed for 0 Lighthouse Impact and Semantic SEO Value
 */

.floating-cta-container {
  position: fixed;
  bottom: 90px; /* Above the custom chat widget */
  right: 20px;
  z-index: 19; /* Below the nav menu which has z-index: 20 */
  pointer-events: none; /* Let clicks pass through empty areas */
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* When the custom chat is open, we hide the CTA */
.floating-cta-container.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

/* Individual message styling */
.cta-message {
  position: absolute;
  bottom: 0;
  right: 0;
  width: max-content;
  max-width: calc(100vw - 40px); /* Limit to screen width */
  background: rgba(24, 24, 24, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px; /* Reduced vertical padding */
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #f1f1f1;
  font-family: inherit;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.4;
  text-align: right;
  text-wrap: balance; /* Keep wrapped lines equal length to minimize ragged left edge */
  
  /* GPU Accelerated Animation Properties */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}

.cta-message.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto; /* Allow clicks on active message */
}

/* Utility to perfectly shrink-wrap text boxes on mobile */
.mobile-break { display: none; }
@media screen and (max-width: 600px) {
  .mobile-break { display: block; }
}



/* Links inside CTA */
.cta-message a {
  color: #ddac63; /* Brand Gold */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cta-message a strong {
  font-weight: 700;
  color: #fff;
}

.cta-message a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(221, 172, 99, 0.4);
}

.cta-message a:hover strong {
  color: #ddac63;
}
