/* Override the --applebite-bitebot-* variables on #applebite-bitebot-animation-root .applebite-bitebot-widget to suit the host page. */
/* These classes are added only by the WordPress bridge after successful mounting. */
.abc-launcher.abc-launcher--robot-replaced { display: none !important; }
.bitebot-root[data-bitebot="bb_demo_bitebot_v1"] > button.bitebot-launcher.applebite-bitebot-original-launcher-hidden { display: none !important; }
#applebite-bitebot-animation-root.applebite-bitebot-chat-open { visibility: hidden; }
#applebite-bitebot-animation-root .applebite-bitebot-widget {
  --applebite-bitebot-right: 24px;
  --applebite-bitebot-bottom: 16px;
  --applebite-bitebot-width: 210px;
  --applebite-bitebot-height: 252px;
  --applebite-bitebot-bubble-right: 74px;
  --applebite-bitebot-blue: #087bea;
  --applebite-bitebot-z: 9990;
  position: fixed;
  right: calc(var(--applebite-bitebot-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--applebite-bitebot-bottom) + env(safe-area-inset-bottom, 0px));
  width: var(--applebite-bitebot-width);
  z-index: var(--applebite-bitebot-z);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  text-align: left;
  color: #f7f9ff;
  pointer-events: none;
  isolation: isolate;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget, #applebite-bitebot-animation-root .applebite-bitebot-widget * { box-sizing: border-box; }
#applebite-bitebot-animation-root .applebite-bitebot-widget [hidden] { display: none !important; }
#applebite-bitebot-animation-root .applebite-bitebot-widget button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget button:focus-visible {
  outline: 3px solid #075ecc;
  outline-offset: 5px;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__character { position: relative; width: 100%; }
#applebite-bitebot-animation-root .applebite-bitebot-widget__robot {
  display: block;
  position: relative;
  width: 100%;
  height: var(--applebite-bitebot-height);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__robot:hover,
#applebite-bitebot-animation-root .applebite-bitebot-widget__robot:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__video,
#applebite-bitebot-animation-root .applebite-bitebot-widget__fallback,
#applebite-bitebot-animation-root .applebite-bitebot-widget__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__bubble {
  position: absolute;
  bottom: calc(100% + 9px);
  right: var(--applebite-bitebot-bubble-right);
  width: max-content;
  max-width: min(274px, calc(100vw - 48px));
  padding: 15px 19px;
  border: 1px solid rgba(183, 211, 255, .34);
  border-radius: 20px 20px 5px 20px;
  background: linear-gradient(145deg, rgba(13, 29, 54, .98), rgba(5, 11, 20, .98));
  color: #f7f9ff;
  box-shadow: 0 16px 44px rgba(0, 6, 18, .46), 0 0 0 1px rgba(23, 103, 255, .08);
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
  animation: applebite-bitebot-bubble-in 240ms ease-out both;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 17px;
  width: 13px;
  height: 13px;
  border-right: 1px solid rgba(183, 211, 255, .34);
  border-bottom: 1px solid rgba(183, 211, 255, .34);
  background: #081324;
  transform: rotate(45deg);
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__bubble:hover,
#applebite-bitebot-animation-root .applebite-bitebot-widget__bubble:focus {
  border-color: var(--applebite-bitebot-blue);
  background: #0d1d36;
  color: #fff;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__hide {
  position: absolute;
  right: -3px;
  top: -3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(183, 211, 255, .3);
  border-radius: 50%;
  background: rgba(5, 11, 20, .94);
  color: #b7d3ff;
  box-shadow: 0 8px 24px rgba(0, 6, 18, .32);
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__hide svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__hide:hover,
#applebite-bitebot-animation-root .applebite-bitebot-widget__hide:focus { color: #fff; background: #0d1d36; }
#applebite-bitebot-animation-root .applebite-bitebot-widget__restore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-left: auto !important;
  padding: 11px 16px;
  border: 1px solid rgba(183, 211, 255, .34);
  border-radius: 999px;
  background: linear-gradient(145deg, #0d1d36, #050b14);
  color: #d8e8ff;
  font-weight: 650 !important;
  box-shadow: 0 12px 34px rgba(0, 6, 18, .38);
}
#applebite-bitebot-animation-root .applebite-bitebot-widget__restore svg { width: 22px; height: 22px; }
#applebite-bitebot-animation-root .applebite-bitebot-widget__restore svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
#applebite-bitebot-animation-root .applebite-bitebot-widget__restore svg circle { fill: currentColor; }
#applebite-bitebot-animation-root .applebite-bitebot-widget__restore:hover,
#applebite-bitebot-animation-root .applebite-bitebot-widget__restore:focus {
  border-color: var(--applebite-bitebot-blue);
  background: #10294f;
  color: #fff;
}
@keyframes applebite-bitebot-bubble-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  #applebite-bitebot-animation-root .applebite-bitebot-widget {
    --applebite-bitebot-right: 14px;
    --applebite-bitebot-bottom: 24px;
    --applebite-bitebot-width: 146px;
    --applebite-bitebot-height: 180px;
    --applebite-bitebot-bubble-right: 42px;
  }
  #applebite-bitebot-animation-root .applebite-bitebot-widget__bubble {
    max-width: min(244px, calc(100vw - 48px));
    padding: 13px 16px;
    font-size: 14px !important;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  #applebite-bitebot-animation-root .applebite-bitebot-widget { --applebite-bitebot-width: 146px; --applebite-bitebot-height: 164px; }
  #applebite-bitebot-animation-root .applebite-bitebot-widget__bubble { max-width: 228px; padding: 11px 14px; }
}
@media (max-height: 450px) {
  #applebite-bitebot-animation-root .applebite-bitebot-widget { --applebite-bitebot-bottom: 14px; --applebite-bitebot-width: 132px; --applebite-bitebot-height: 144px; --applebite-bitebot-bubble-right: 42px; }
  #applebite-bitebot-animation-root .applebite-bitebot-widget__bubble { max-width: 228px; padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #applebite-bitebot-animation-root .applebite-bitebot-widget__bubble { animation: none; }
}
