/* Coach Jordan's bubble, bottom right (HL-069 build 4). Replaces the "Ask a question" pill only while
   Coach is live on the website; ask-widget.css still styles the plain form the rest of the time.
   Black, white and HoopLife red. Phone first: the panel is the whole screen on a phone. */

.hl-coach-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483000;
  min-height: 58px;
  padding: 0 1.15rem 0 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #bf202f;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.hl-coach-launcher img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.hl-coach-launcher-label {
  font-family: Cooperhewitt, "Rubik Variablefont Wght", Rubik, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
@media (hover: hover) {
  .hl-coach-launcher:hover { transform: translateY(-2px); }
}
.hl-coach-hidden { display: none !important; }

.hl-coach-tip {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  max-width: 240px;
}
.hl-coach-tip-body {
  border: 0;
  background: none;
  padding: 0.85rem 1rem;
  font: 600 0.95rem/1.35 Rubik, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.hl-coach-tip-x {
  border: 0;
  background: none;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.55rem 0.6rem 0 0;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: #555;
}

.hl-coach-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483001;
  width: 400px;
  height: min(640px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
}
.hl-coach-panel .coach-shell {
  flex: 1;
  max-width: none;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
}
.hl-coach-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
/* The Forget me link sits clear of the close button. */
.hl-coach-panel .coach-forget { margin-right: 44px; }

@media (max-width: 600px) {
  .hl-coach-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 52px; }
  .hl-coach-tip { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hl-coach-panel {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
