/* Floating "book a free trial class" card on the public pages (js/components/trial-cta.js). */
.xt-trial-cta {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: calc(100vw - 32px);
  padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  border-radius: 999px;
  background: rgba(18, 19, 26, 0.92);
  border: 1px solid rgba(255, 122, 0, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 122, 0, 0.08);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.xt-trial-cta.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.xt-trial-cta__text { margin: 0; color: #F5F5F5; font-size: 0.93rem; font-weight: 500; white-space: nowrap; }
.xt-trial-cta__short { display: none; }
.xt-trial-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: #FF7A00;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.3);
  transition: background 0.2s ease;
}
.xt-trial-cta__btn:hover { background: #FF8A1F; color: #FFFFFF; }
.xt-trial-cta__close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: -0.4rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8E93A3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.xt-trial-cta__close:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.xt-trial-cta__btn:focus-visible, .xt-trial-cta__close:focus-visible { outline: 2px solid #FF7A00; outline-offset: 2px; }

@media (max-width: 768px) {
  /* Leave the right edge to the WhatsApp button (50px at right: 20px). */
  .xt-trial-cta {
    left: 12px;
    right: 88px;
    bottom: 20px;
    max-width: none;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    transform: translateY(16px);
  }
  .xt-trial-cta.is-visible { transform: translateY(0); }
  .xt-trial-cta__long { display: none; }
  .xt-trial-cta__short { display: inline; }
  .xt-trial-cta__text { font-size: 0.85rem; }
  .xt-trial-cta__btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .xt-trial-cta__close { width: 26px; height: 26px; margin-left: -0.3rem; }
}
@media (max-width: 360px) {
  .xt-trial-cta__text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xt-trial-cta { transition: none; }
}
