/* Partner coaching overlay + improved hint tooltip visibility */
/* CTA / accent color matches Add to Cart (.footer_btn-add / .templatefooter_btn-add): #3fbfb9 */

.cw-coach-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  pointer-events: none;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
}
.cw-coach-overlay.is-open {
  display: block;
  /* Swallow all clicks over the app; only .cw-coach-card stays interactive */
  pointer-events: auto;
}
.cw-coach-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  pointer-events: auto;
}
.cw-coach-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.55), 0 0 0 3px #3fbfb9, 0 8px 24px rgba(0, 0, 0, 0.25);
  background: transparent;
  /* Visual highlight only — parent overlay still blocks clicks through the cutout */
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.cw-coach-card {
  position: absolute;
  z-index: 2;
  background: #ffffff;
  color: #1a1a1a;
  border: 2px solid #3fbfb9;
  border-radius: 10px;
  padding: 18px 18px 14px;
  padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-family: "Avenir LT Std", "Avenir", Helvetica, Arial, sans-serif;
  pointer-events: auto;
}
.cw-coach-progress {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3fbfb9;
  margin-bottom: 8px;
}
.cw-coach-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}
.cw-coach-body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}
.cw-coach-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cw-coach-btn {
  min-width: 96px;
  height: 40px;
  border-radius: 40px;
  border: 2px solid #3fbfb9;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
}
.cw-coach-btn-skip {
  background: #ffffff;
  color: #3fbfb9;
}
.cw-coach-btn-next {
  background: #3fbfb9;
  color: #ffffff;
  margin-left: auto;
}
.cw-coach-btn:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

/* Allow programmatic scrollIntoView while the overlay blocks free interaction */
body.cw-coach-open {
  overflow: auto;
}

/* Higher-contrast hint tooltips (Help → HOW TO USE APP) */
.hint-tooltip_container {
  z-index: 1200;
}
.hint-tooltip_container.open {
  opacity: 1;
  display: block;
  pointer-events: auto;
  animation: cwHintFadeIn 0.35s ease-out;
}
.hint-tooltip {
  color: #111827 !important;
  background: #fffdf5 !important;
  border: 2px solid #1f497d !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}
.hint-tooltip:before {
  border-color: #1f497d transparent transparent transparent !important;
}
.hint-tooltip_left:before {
  border-color: transparent #1f497d transparent transparent !important;
}
.hint-tooltip_right:before {
  border-color: transparent transparent transparent #1f497d !important;
}
.hint-tooltip.cw-hint-pulse {
  animation: cwHintPulse 1.4s ease-in-out 2;
}

@keyframes cwHintFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cwHintPulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
  50% { box-shadow: 0 0 0 4px rgba(31, 73, 125, 0.35), 0 8px 20px rgba(0, 0, 0, 0.22); }
}

.help-main-div .cw-how-it-works-btn,
#cw-how-it-works-btn {
  /* Same square block shape as the other help buttons (stylesheet.css .help-main-div button) */
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 0;
  border: none;
  border-radius: 0;
  background-color: #3fbfb9;
  color: #ffffff;
  font-size: 14px;
  line-height: 17px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 767px) {
  .cw-coach-card {
    left: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: none;
  }
  .hint-tooltip {
    width: min(230px, 70vw) !important;
    font-size: 13px !important;
  }
}
