/* Channel Talk — keep below cart drawer / notices, above page chrome */
#ch-plugin,
#ch-plugin-script,
.ch-desk-messenger,
.ch-mobile-messenger {
  z-index: 5500 !important;
  font-family: var(--font-body, 'Plus Jakarta Sans', 'Apple SD Gothic Neo', system-ui, sans-serif) !important;
}

/* Compact messenger panel (outer shell only — iframe content stays Channel-managed) */
#ch-plugin-script,
.ch-desk-messenger,
.ch-mobile-messenger {
  width: 360px !important;
  max-width: min(360px, calc(100vw - 24px)) !important;
  height: min(600px, calc(100vh - 88px)) !important;
  max-height: calc(100vh - 88px) !important;
  right: 16px !important;
  bottom: 16px !important;
  top: auto !important;
  left: auto !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22) !important;
}

#ch-plugin-script-iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: 16px !important;
}

@media (max-width: 640px) {
  #ch-plugin-script,
  .ch-desk-messenger,
  .ch-mobile-messenger {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    height: min(76vh, 600px) !important;
    max-height: calc(100vh - 80px) !important;
    right: 12px !important;
    left: 12px !important;
    bottom: 12px !important;
  }
}

#ch-plugin *,
.ch-desk-messenger *,
.ch-mobile-messenger * {
  font-family: inherit !important;
}

body.nav-lock #ch-plugin,
body.nav-lock .ch-desk-messenger {
  z-index: 5400 !important;
}

body.nav-lock {
  overflow: hidden;
}

.pay-support-link,
.checkout-notice-link--btn,
.refx-channel-btn,
.nav-support,
.foot-support {
  cursor: pointer;
}

/* Pre-chat hint beside Channel Talk launcher */
.channel-talk-hint {
  position: fixed;
  z-index: 5499;
  max-width: min(168px, calc(100vw - 96px));
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.channel-talk-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
}

.channel-talk-hint-text {
  position: relative;
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line, #e2e8f0) 88%, #fff);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  color: var(--ink-2, #334155);
  font-family: var(--font-body, 'Plus Jakarta Sans', 'Apple SD Gothic Neo', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: right;
  word-break: keep-all;
}

.channel-talk-hint-text::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid color-mix(in srgb, var(--line, #e2e8f0) 88%, #fff);
  border-top: 1px solid color-mix(in srgb, var(--line, #e2e8f0) 88%, #fff);
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 640px) {
  .channel-talk-hint {
    max-width: min(142px, calc(100vw - 88px));
  }

  .channel-talk-hint-text {
    font-size: 10px;
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-talk-hint {
    transition: none;
  }
}
