.jasaai-chat-widget {
  position: relative;
}

/* Hero rotating headline (homepage) */
.jasaai-hero-rotate {
  min-height: 2.35em;
}

.jasaai-hero-rotate-text {
  display: inline-block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.jasaai-hero-rotate-text.is-fading {
  opacity: 0;
  transform: translateY(12px);
}

/* Premium homepage nav pill */
.jasaai-chat-widget.support-wrap {
  padding: 5px 5px 5px 6px !important;
  border-radius: 999px !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.1),
    0 1px 2px rgba(37, 46, 61, 0.04),
    0 8px 28px rgba(37, 46, 61, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.jasaai-chat-widget.support-wrap:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.16),
    0 4px 12px rgba(99, 102, 241, 0.08),
    0 16px 40px rgba(37, 46, 61, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.jasaai-chat-widget .flex-h {
  gap: 0 !important;
  align-items: center !important;
}

.jasaai-chat-widget .status {
  gap: 10px !important;
  align-items: center !important;
  padding: 4px 12px 4px 6px !important;
  border-radius: 999px;
  transition: background 0.15s;
}

.jasaai-chat-widget .status:hover {
  background: rgba(99, 102, 241, 0.05);
}

.jasaai-chat-widget .support-avatar-wrap {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  flex-shrink: 0;
  position: relative;
}

.jasaai-chat-widget .support-avatar {
  width: 36px !important;
  height: 36px !important;
  min-height: 0 !important;
}

.jasaai-chat-widget .support-avatar-dot {
  display: none !important;
}

.jasaai-chat-widget .info {
  padding: 0 !important;
  min-width: 0;
}

.jasaai-chat-widget .info .body-s---light {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  color: #1e293b !important;
  letter-spacing: -0.02em;
}

.jasaai-chat-widget .info .body-xs,
.jasaai-chat-widget .info .jasaai-nav-sub {
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  color: #64748b !important;
  font-weight: 500;
  margin-top: 2px;
}

.jasaai-chat-widget .info br {
  display: none;
}

.jasaai-chat-widget .contact-button,
.jasaai-chat-widget .jasaai-nav-cta {
  min-height: 0 !important;
  height: 38px !important;
  max-height: 38px !important;
  min-width: 0 !important;
  padding: 0 16px !important;
  margin-left: 4px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-shrink: 0;
  align-self: center !important;
  position: relative !important;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  border: none !important;
  box-shadow:
    0 1px 2px rgba(30, 41, 59, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s !important;
  overflow: hidden;
}

.jasaai-chat-widget .contact-button::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(99, 102, 241, 0.2),
    transparent
  );
  pointer-events: none;
}

.jasaai-chat-widget .contact-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.35) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.jasaai-chat-widget .contact-button:hover {
  transform: scale(1.02);
  box-shadow:
    0 4px 14px rgba(30, 41, 59, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.jasaai-chat-widget .contact-button:hover::after {
  opacity: 1;
}

.jasaai-chat-widget .contact-button-bg {
  display: none !important;
}

.jasaai-chat-widget .contact-button .body-s---light {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.jasaai-chat-widget .contact-button .dot-loop-wrap {
  display: none !important;
}

.jasaai-chat-trigger {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
}

.jasaai-chat-trigger:hover .body-s---light {
  color: #6366f1 !important;
}

.jasaai-robot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef2ff 0%, #c7d2fe 50%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.12),
    inset 0 -2px 6px rgba(99, 102, 241, 0.08);
}

.jasaai-robot-avatar svg {
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.2));
}

.jasaai-chat-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(37, 46, 61, 0.06);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(37, 46, 61, 0.04),
    0 20px 40px rgba(37, 46, 61, 0.12);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.22s;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
}

.jasaai-chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.jasaai-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  position: relative;
}

.jasaai-chat-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.jasaai-chat-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.jasaai-chat-header-icon svg {
  width: 20px;
  height: 20px;
}

.jasaai-chat-header > div:not(.jasaai-chat-header-icon) {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.jasaai-chat-header-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.jasaai-chat-header-sub {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.jasaai-chat-header-sub::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

.jasaai-chat-close {
  position: relative;
  z-index: 1;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
  margin-left: auto;
}

.jasaai-chat-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.jasaai-chat-messages {
  height: 210px;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  scroll-behavior: smooth;
}

.jasaai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.jasaai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(37, 46, 61, 0.15);
  border-radius: 4px;
}

.jasaai-chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.jasaai-chat-msg.is-new {
  opacity: 0;
  transform: translateY(6px);
}

.jasaai-chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: #1e293b;
  border: 1px solid rgba(37, 46, 61, 0.06);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(37, 46, 61, 0.04);
}

.jasaai-chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.jasaai-chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(37, 46, 61, 0.06);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.jasaai-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: jasaai-bounce 1.2s infinite ease-in-out;
}

.jasaai-chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.jasaai-chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes jasaai-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.jasaai-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
  background: #f1f5f9;
}

.jasaai-chat-chip {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #fff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.jasaai-chat-chip:hover {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.jasaai-chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #fff;
  border-top: 1px solid rgba(37, 46, 61, 0.05);
  align-items: center;
}

.jasaai-chat-input-wrap input {
  flex: 1;
  border: none;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  outline: none;
  font-family: inherit;
  color: #1e293b;
  transition: background 0.15s, box-shadow 0.15s;
}

.jasaai-chat-input-wrap input::placeholder {
  color: #94a3b8;
}

.jasaai-chat-input-wrap input:focus {
  background: #e2e8f0;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.jasaai-chat-input-wrap button {
  border: none;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.jasaai-chat-input-wrap button:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.jasaai-chat-input-wrap button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.jasaai-chat-contact-prompt {
  padding: 14px 16px 16px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-top: 1px solid rgba(37, 46, 61, 0.05);
}

.jasaai-chat-contact-prompt p {
  font-size: 11.5px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.45;
}

.jasaai-chat-contact-prompt a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff !important;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2);
}

.jasaai-chat-contact-prompt a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.28);
}

.jasaai-chat-panel.is-limit .jasaai-chat-input-wrap {
  display: none;
}

.jasaai-chat-panel.is-limit .jasaai-chat-contact-prompt {
  display: block !important;
}

@media (max-width: 991px) {
  .jasaai-chat-widget.support-wrap {
    max-width: calc(100vw - 88px) !important;
    padding: 4px 4px 4px 5px !important;
  }

  .jasaai-chat-widget .status {
    padding: 3px 8px 3px 4px !important;
    gap: 8px !important;
  }

  .jasaai-chat-widget .support-avatar-wrap,
  .jasaai-chat-widget .support-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }

  .jasaai-chat-widget .contact-button,
  .jasaai-chat-widget .jasaai-nav-cta {
    height: 34px !important;
    max-height: 34px !important;
    padding: 0 12px !important;
  }

  .jasaai-chat-widget .contact-button .body-s---light {
    font-size: 10px !important;
  }

  .jasaai-chat-widget .info .body-s---light {
    font-size: 12px !important;
  }

  .jasaai-chat-widget .info .jasaai-nav-sub {
    font-size: 10px !important;
  }
}

@media (max-width: 479px) {
  .jasaai-chat-widget .info .jasaai-nav-sub {
    display: none;
  }

  .jasaai-chat-widget .contact-button .body-s---light {
    font-size: 0 !important;
  }

  .jasaai-chat-widget .contact-button .body-s---light::after {
    content: "Book";
    font-size: 10px;
  }
}

/* Homepage integrations card */
@media (min-width: 992px) {
  #w-node-_538df6e7-2f96-3883-3a10-4a86cb920a79-fb0ad12d {
    grid-column: 1 / -1;
  }
}

.why-us-column.grey .logos-row-wrapper {
  margin: 12px 0 8px;
  min-height: 72px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 72px,
    #000 calc(100% - 72px),
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 72px,
    #000 calc(100% - 72px),
    transparent 100%
  );
}

.why-us-column.grey .logos-row-wrapper::before,
.why-us-column.grey .logos-row-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 4;
  pointer-events: none;
}

.why-us-column.grey .logos-row-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #252e3d 15%, rgba(37, 46, 61, 0) 100%);
}

.why-us-column.grey .logos-row-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #252e3d 15%, rgba(37, 46, 61, 0) 100%);
}

.why-us-column.grey .logos-top-wrapper {
  animation: jasaai-logo-marquee 7s linear infinite;
  will-change: transform;
}

.why-us-column.grey .logos-row-wrapper:hover .logos-top-wrapper,
.why-us-column.grey .logos-row-wrapper.is-paused .logos-top-wrapper {
  animation-play-state: paused;
}

@keyframes jasaai-logo-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.why-us-column.grey .partner-logo-image {
  opacity: 1 !important;
  filter: none !important;
}

.jasaai-brand-logo {
  height: 80px !important;
  width: auto !important;
  max-width: 140px !important;
  min-height: 40px !important;
  object-fit: contain !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-us-column.grey .logo-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 8px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-us-column.grey .logo-image-wrapper:hover {
  transform: scale(1.35);
  z-index: 3;
}

.why-us-column.grey .logo-image-wrapper:hover .jasaai-brand-logo {
  transform: scale(1.05);
}

.jasaai-aileph-tag {
  margin-top: 2px;
  opacity: 0.72;
  font-weight: 500;
}
