/* Afaq contextual help — intentionally isolated from global WordPress styles. */
.afaq-help-info{display:inline-flex!important;vertical-align:middle;align-items:center;justify-content:center;width:27px;height:27px;min-width:27px;margin-inline-start:9px;border:1px solid #d4e2ed;border-radius:50%;background:#f2f8fe;color:#1875ba;cursor:pointer;padding:0;line-height:1;transition:background .15s ease,border-color .15s ease}
.afaq-help-info:hover{background:#e6f3ff;border-color:#93c5fd}.afaq-help-info:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
.afaq-help-dialog{border:0;border-radius:16px;padding:0;width:min(440px,calc(100vw - 32px));max-height:min(85vh,650px);color:#1e293b;background:#fff;box-shadow:0 24px 72px rgba(15,23,42,.2);direction:rtl}
.afaq-help-dialog::backdrop{background:rgba(15,23,42,.48)}
.afaq-help-dialog__inner{padding:23px}.afaq-help-dialog__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.afaq-help-dialog h2{font-size:19px;line-height:1.5;margin:0 0 12px}.afaq-help-dialog p{font-size:14px;line-height:1.9;color:#475569;white-space:pre-line;overflow-wrap:anywhere;margin:0 0 21px}.afaq-help-dialog__close{background:#f1f5f9;border:0;border-radius:8px;width:33px;height:33px;font-size:24px;line-height:1;cursor:pointer;color:#334155}.afaq-help-dialog__ok{border:0;border-radius:9px;background:#0d6fac;color:#fff;padding:10px 22px;font:inherit;cursor:pointer}.afaq-help-dialog__ok:focus-visible,.afaq-help-dialog__close:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.afaq-help-info{transition:none}}

/* Contextual help for supported form labels; retain form control geometry. */
.afaq-help-field{width:24px!important;height:24px!important;min-width:24px!important;margin-inline:7px 8px!important;vertical-align:middle!important;flex:0 0 24px!important;position:relative;z-index:1}
label>.afaq-help-field{display:inline-flex!important}
@media(max-width:560px){.afaq-help-dialog{width:calc(100vw - 28px)}}

/* v7.16.59: enforce help trigger dimensions over the global .afaq-system-body button rule. */
.afaq-system-body button.afaq-help-info,
.afaq-system-body button.afaq-help-info:hover,
.afaq-system-body button.afaq-help-info:active,
.afaq-system-body button.afaq-help-info:focus {
  appearance:none!important;-webkit-appearance:none!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;box-sizing:border-box!important;
  width:22px!important;min-width:22px!important;max-width:22px!important;
  height:22px!important;min-height:22px!important;max-height:22px!important;
  flex:0 0 22px!important;vertical-align:middle!important;
  padding:0!important;margin:0 5px!important;gap:0!important;
  border:1px solid #bfdbfe!important;border-radius:999px!important;
  background:#eff6ff!important;color:#2563eb!important;
  font-size:13px!important;line-height:1!important;font-weight:400!important;
  box-shadow:none!important;transform:none!important;letter-spacing:normal!important;
  cursor:help!important;transition:background-color .15s ease,border-color .15s ease!important;
}
.afaq-system-body button.afaq-help-info:hover {background:#dbeafe!important;border-color:#93c5fd!important;}
.afaq-system-body button.afaq-help-info:focus-visible {outline:2px solid #2563eb!important;outline-offset:2px!important;}
.afaq-system-body button.afaq-help-info svg,
.afaq-system-body button.afaq-help-info svg * {
  visibility:visible!important;opacity:1!important;
}
.afaq-system-body button.afaq-help-info svg {
  display:block!important;position:static!important;width:15px!important;height:15px!important;
  min-width:15px!important;max-width:15px!important;min-height:15px!important;max-height:15px!important;
  flex:none!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;
  stroke-width:2!important;pointer-events:none!important;transform:none!important;
}
/* The dialog action buttons should not inherit global green CTA styling. */
.afaq-system-body .afaq-help-dialog button.afaq-help-dialog__close {
  width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;
  padding:0!important;background:#f1f5f9!important;color:#334155!important;box-shadow:none!important;transform:none!important;
}
.afaq-system-body .afaq-help-dialog button.afaq-help-dialog__ok {
  min-height:38px!important;padding:8px 18px!important;background:#2563eb!important;color:#fff!important;
  box-shadow:none!important;transform:none!important;
}

/* v7.16.61 — anchored, click-to-toggle contextual explanation. */
.afaq-help-popover[hidden]{display:none!important}
.afaq-help-popover{
 position:fixed!important;z-index:2147483000!important;box-sizing:border-box!important;
 width:min(310px,calc(100vw - 24px));max-height:min(340px,calc(100dvh - 24px));overflow-y:auto;
 background:#fff!important;color:#1e293b!important;border:1px solid #dbe5ef!important;
 border-radius:12px!important;padding:14px 16px!important;
 box-shadow:0 12px 32px rgba(15,23,42,.14)!important;
 direction:rtl;text-align:right;line-height:1.65;
 animation:afaq-help-appear .14s ease-out both;
}
.afaq-help-popover__title{display:block;font-size:13px;font-weight:700;line-height:1.6;color:#0f172a;margin:0 0 5px}
.afaq-help-popover__text{font-size:12.5px;line-height:1.8;color:#475569;margin:0;white-space:pre-line;overflow-wrap:anywhere}
@keyframes afaq-help-appear{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.afaq-help-popover{animation:none!important}}
/* One grid/flex child for both title text and icon. Input remains a separate child. */
.afaq-help-label-line{display:inline-flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;width:fit-content;max-width:100%;vertical-align:middle;line-height:1.5}
.afaq-help-label-line button.afaq-help-info{margin:0!important;flex:0 0 22px!important}
/* Triggers stay in the same line as titles instead of becoming a block below. */
.afaq-system-body button.afaq-help-info{display:inline-flex!important;vertical-align:middle!important;white-space:nowrap!important}
.afaq-settings-page-head h1 .afaq-help-info{vertical-align:middle!important}

/* v7.16.62 — no fill, outline or rounded button chrome: icon only. */
.afaq-help-info, .afaq-help-info:hover, .afaq-help-info:focus,
.afaq-system-body button.afaq-help-info,
.afaq-system-body button.afaq-help-info:hover,
.afaq-system-body button.afaq-help-info:active,
.afaq-system-body button.afaq-help-info:focus {
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;filter:none!important;
 color:#2563eb!important;padding:0!important;
}
.afaq-system-body button.afaq-help-info:hover{color:#1d4ed8!important;}
.afaq-system-body button.afaq-help-info:focus-visible{outline:2px solid #2563eb!important;outline-offset:2px!important;border-radius:3px!important;}

/* v7.16.63: keep title glyph and its help control on the same text baseline. */
.afaq-help-label-line{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:4px!important;align-self:flex-start!important;width:auto!important;max-width:100%!important;white-space:normal!important;vertical-align:baseline!important}
.afaq-help-label-line>.afaq-help-info{display:inline-flex!important;position:static!important;align-self:center!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;margin:0!important;vertical-align:middle!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#2563eb!important}
.afaq-help-label-line>.afaq-help-info svg{width:15px!important;height:15px!important}
.afaq-system-body .afaq-settings-page-head h1 button.afaq-help-info,
.afaq-system-body .afaq-settings-group-head h2 button.afaq-help-info{display:inline-flex!important;margin-inline-start:5px!important;margin-inline-end:0!important;vertical-align:middle!important}


/* v7.16.64 — ReUI/Lucent-inspired anchored contextual information (WordPress-native, no React dependency). */
.afaq-help-popover{
  width:min(344px,calc(100vw - 24px))!important;
  max-height:min(370px,calc(100dvh - 24px))!important;
  padding:0!important;overflow:visible!important;
  border:1px solid #e2e8f0!important;border-radius:13px!important;
  background:#fff!important;color:#0f172a!important;
  box-shadow:0 18px 38px -12px rgba(15,23,42,.20),0 4px 12px -5px rgba(15,23,42,.10)!important;
  font-family:inherit;line-height:1.6;
  animation:afaq-reui-help-in .16s cubic-bezier(.2,.75,.3,1) both!important;
}
.afaq-help-popover--above{transform-origin:bottom right}
.afaq-help-popover:not(.afaq-help-popover--above){transform-origin:top right}
.afaq-help-popover__head{display:flex;align-items:center;gap:9px;padding:14px 14px 8px;min-width:0}
.afaq-help-popover__mark{width:27px;height:27px;min-width:27px;display:inline-flex;align-items:center;justify-content:center;background:#eff6ff;color:#2563eb;border-radius:8px}
.afaq-help-popover__mark svg{width:16px;height:16px}
.afaq-help-popover__title{flex:1;min-width:0;margin:0!important;color:#111827!important;font-size:13px!important;font-weight:650!important;line-height:1.6!important}
.afaq-help-popover__text{padding:0 14px 15px;margin:0!important;color:#64748b!important;font-size:12.5px!important;line-height:1.9!important;max-height:250px;overflow:auto}
.afaq-help-popover__close,
.afaq-system-body button.afaq-help-popover__close,
.afaq-system-body button.afaq-help-popover__close:hover{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;
 padding:0!important;border:0!important;border-radius:6px!important;
 background:transparent!important;color:#64748b!important;box-shadow:none!important;transform:none!important;
 cursor:pointer!important;flex:none!important;
}
.afaq-help-popover__close:hover{background:#f1f5f9!important;color:#0f172a!important}
.afaq-help-popover__close:focus-visible{outline:2px solid #2563eb!important;outline-offset:2px!important}
.afaq-help-popover__close svg{width:14px!important;height:14px!important;stroke:currentColor!important;display:block!important}
.afaq-help-popover__arrow{
 position:absolute;left:calc(var(--afaq-help-arrow-x, 24px) - 6px);top:-6px;
 width:12px;height:12px;transform:rotate(45deg);background:#fff;border-top:1px solid #e2e8f0;border-left:1px solid #e2e8f0;
 pointer-events:none;
}
.afaq-help-popover--above .afaq-help-popover__arrow{top:auto;bottom:-6px;transform:rotate(225deg)}
@keyframes afaq-reui-help-in{from{opacity:0;scale:.975}to{opacity:1;scale:1}}
@media(prefers-reduced-motion:reduce){.afaq-help-popover{animation:none!important}}
@media(max-width:560px){.afaq-help-popover__head{padding:12px 12px 7px}.afaq-help-popover__text{padding:0 12px 13px}}
/* The trigger itself remains glyph-only, exactly adjacent to its text. */
.afaq-help-label-line{flex-wrap:nowrap!important;gap:3px!important}
.afaq-help-label-line>.afaq-help-info,
.afaq-system-body button.afaq-help-info{border:none!important;background:transparent!important;box-shadow:none!important;outline-offset:2px!important}
