/* Shared explanatory info tip (US + China calculators) */
.gst-info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.gst-info-tip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gst-info-tip__btn svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  pointer-events: none;
}
.gst-info-tip__btn:hover {
  color: #475569;
  background: #f3f4f6;
}
.gst-info-tip__btn[aria-expanded="true"] {
  color: #334155;
  background: #eef2f7;
}
.gst-info-tip__btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.gst-info-tip__popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  box-sizing: border-box;
  width: max-content;
  max-width: min(20rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
  text-align: left;
  white-space: normal;
}
.gst-info-tip__popover[hidden] {
  display: none !important;
}
.gst-info-tip__popover.gst-info-tip__popover--flip-up {
  top: auto;
  bottom: calc(100% + 6px);
}
.gst-info-tip__popover.gst-info-tip__popover--align-start {
  left: 0;
  transform: none;
}
.gst-info-tip__popover.gst-info-tip__popover--align-end {
  left: auto;
  right: 0;
  transform: none;
}
