/* ============================================================
   Signature Homeworx — Info Tooltip widget.
   Tokens: edit this block to re-skin.
   ============================================================ */
.shx-tt {
  --shxtt-navy: #0D0040;
  --shxtt-navy-hover: #251a5e;
  --shxtt-white: #ffffff;
  --shxtt-gold: #fbbc04;
  --shxtt-font: 'Outfit', system-ui, sans-serif;
  /* v1.1: Elementor color controls write these onto the wrapper; the
     defaults below (and the --light override) are the scheme presets. */
  --shxtt-trigger: var(--shxtt-navy);
  --shxtt-trigger-hover: var(--shxtt-trigger);
  --shxtt-bubble-bg: var(--shxtt-navy);
  --shxtt-bubble-text: var(--shxtt-white);
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--shxtt-font);
}

.shx-tt__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 2px 4px;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: var(--shxtt-trigger);
  border-radius: 6px;
}
.shx-tt__trigger:hover,
.shx-tt__trigger:focus-visible { color: var(--shxtt-trigger-hover); }
.shx-tt__trigger:focus-visible { outline: 3px solid var(--shxtt-navy-hover); outline-offset: 2px; }
.shx-tt--light { --shxtt-trigger: var(--shxtt-white); }
.shx-tt--light .shx-tt__trigger:focus-visible { outline-color: var(--shxtt-gold); }

.shx-tt__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.shx-tt__label {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.shx-tt__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.shx-tt__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 320px;
  background: var(--shxtt-bubble-bg);
  color: var(--shxtt-bubble-text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
}
.shx-tt.is-open .shx-tt__bubble { opacity: 1; visibility: visible; }
.shx-tt__bubble--below { bottom: auto; top: calc(100% + 10px); }

/* Invisible hover bridge across the gap between trigger and bubble */
.shx-tt__bubble::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.shx-tt__bubble--below::before { top: auto; bottom: 100%; }

.shx-tt__arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--shxtt-bubble-bg);
}
.shx-tt__bubble--below .shx-tt__arrow {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--shxtt-bubble-bg);
}

/* Rich content inside the bubble */
.shx-tt__bubble p { margin: 0 0 8px; }
.shx-tt__bubble p:last-child { margin-bottom: 0; }
.shx-tt__bubble ul, .shx-tt__bubble ol { margin: 0 0 8px; padding-left: 18px; }
.shx-tt__bubble ul:last-child, .shx-tt__bubble ol:last-child { margin-bottom: 0; }
.shx-tt__bubble a { color: var(--shxtt-gold); text-decoration: underline; }
.shx-tt__bubble a:focus-visible { outline: 2px solid var(--shxtt-gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .shx-tt__bubble { transition: none; }
}
