/**
 * OCRAI – bublina nápovědy u ikony otazníku (hover / focus-within).
 * Markup: ``js/ocrai_help_tip.js``.
 */
.ocrai-help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.ocrai-help-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgb(226 232 240);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  color: rgb(100 116 139);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
  cursor: help;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.ocrai-help-tip-btn:hover,
.ocrai-help-tip:focus-within .ocrai-help-tip-btn {
  color: rgb(13 148 136);
  border-color: rgb(153 246 228);
  background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 100%);
  box-shadow: 0 0 0 3px rgb(45 212 191 / 0.2);
  transform: translateY(-0.5px);
}
.ocrai-help-tip-bubble {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(18rem, 72vw);
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgb(241 245 249);
  background: linear-gradient(165deg, rgb(15 23 42) 0%, rgb(30 41 59) 100%);
  border: 1px solid rgb(51 65 85);
  box-shadow:
    0 18px 40px -16px rgb(15 23 42 / 0.55),
    0 0 0 1px rgb(15 23 42 / 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}
.ocrai-help-tip-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgb(30 41 59);
}
.ocrai-help-tip:hover .ocrai-help-tip-bubble,
.ocrai-help-tip:focus-within .ocrai-help-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ocrai-help-tip--left .ocrai-help-tip-bubble {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}
.ocrai-help-tip--left .ocrai-help-tip-bubble::after {
  left: auto;
  right: 0.65rem;
  transform: none;
}
.ocrai-help-tip--left:hover .ocrai-help-tip-bubble,
.ocrai-help-tip--left:focus-within .ocrai-help-tip-bubble {
  transform: translateX(0) translateY(0);
}
