
/* Targetic sitewide Online Check assistant */
.online-check-assistant {
  --oca-content-right: calc(100vw - 54px);
  --oca-panel-right: 54px;
  --oca-panel-width: min(486px, calc(100vw - 34px));
  --oca-panel-top: 108px;
  --oca-panel-bottom: 24px;
  --oca-overlay-top: 0px;
  --oca-overlay-bottom: 0px;
  --oca-tab-width: 54px;
  --oca-tab-top: 0px;
  --oca-tab-bottom: 0px;
  position: relative;
  z-index: 900;
}

.online-check-tab {
  position: fixed;
  z-index: 904;
  top: var(--oca-tab-top);
  bottom: var(--oca-tab-bottom);
  left: var(--oca-content-right);
  width: var(--oca-tab-width);
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 7px;
  border: 0;
  border-left: 1px solid rgba(8,185,255,.38);
  border-right: 1px solid rgba(8,185,255,.38);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5,35,61,.985), rgba(3,25,45,.995));
  box-shadow: 8px 0 26px rgba(0,0,0,.12);
  color: #eef7fb;
  font: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, left .22s ease;
}
.online-check-tab:hover,
.online-check-tab:focus-visible {
  border-left-color: rgba(8,185,255,.72);
  border-right-color: rgba(8,185,255,.72);
  background: linear-gradient(180deg, rgba(7,54,87,.995), rgba(4,32,55,.995));
  box-shadow: 8px 0 30px rgba(0,0,0,.17);
  outline: none;
}
.online-check-tab-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #f0f7fb;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.online-check-tab-word span {
  display: block;
  width: 1em;
  text-align: center;
}
.online-check-tab-arrow {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  margin: 4px 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 7px solid rgba(210,235,247,.78);
  transition: transform .2s ease, border-color .16s ease;
}
.online-check-tab:hover .online-check-tab-arrow,
.online-check-tab:focus-visible .online-check-tab-arrow {
  border-right-color: #fff;
}

.online-check-backdrop {
  position: fixed;
  z-index: 899;
  top: var(--oca-overlay-top);
  right: 0;
  bottom: var(--oca-overlay-bottom);
  left: 0;
  background: rgba(2,18,33,.91);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.online-check-panel {
  position: fixed;
  z-index: 903;
  top: var(--oca-panel-top);
  right: var(--oca-panel-right);
  width: var(--oca-panel-width);
  max-height: calc(100vh - var(--oca-panel-top) - var(--oca-panel-bottom));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(8,185,255,.46);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(8,35,60,.997), rgba(3,24,43,.997));
  box-shadow: -8px 24px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.015);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity .2s ease, transform .22s ease, visibility .2s ease;
  overflow: hidden;
}
.online-check-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright, #08b9ff) 18%, var(--cyan-bright, #08b9ff) 82%, transparent);
  opacity: .72;
  pointer-events: none;
}
.online-check-assistant.is-open .online-check-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.online-check-assistant.is-open:not(.is-mobile-mode) .online-check-tab {
  border-left-color: rgba(8,185,255,.72);
  border-right-color: rgba(8,185,255,.72);
  background: linear-gradient(180deg, rgba(7,54,87,.995), rgba(4,32,55,.995));
  box-shadow: 8px 0 30px rgba(0,0,0,.17);
}
.online-check-assistant.is-open:not(.is-mobile-mode) .online-check-tab-arrow {
  transform: rotate(180deg);
}
.online-check-assistant.is-mobile-mode.is-open .online-check-tab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.online-check-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 15px;
  border-bottom: 1px solid rgba(135,170,196,.2);
}
.online-check-panel-title {
  margin: 0;
  max-width: 390px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1.10;
  font-weight: 600;
}
.online-check-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(142,177,201,.45);
  border-radius: 50%;
  background: transparent;
  color: #e7f1f6;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.online-check-close:hover,
.online-check-close:focus-visible {
  border-color: var(--cyan-bright, #08b9ff);
  background: rgba(8,185,255,.09);
  outline: none;
}
.online-check-panel-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(142,177,201,.45) transparent;
}

/* Scoped Quick Check UI inside assistant */
.online-check-panel .selftest-topic-label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.online-check-panel .selftest-step-label {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: #edf4f8;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}
.online-check-panel .selftest-step-label strong { color: var(--cyan-bright, #08b9ff); font-size: 13.5px; }
.online-check-panel .selftest-step-label span { color: #94aabc; font-weight: 500; }
.online-check-panel .selftest-help-wrap { position: static; }
.online-check-panel .selftest-help {
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid rgba(142,177,201,.58); border-radius: 50%; background: transparent;
  color: #cfe0eb; font: inherit; font-size: 12px; line-height: 1; font-weight: 700; cursor: pointer;
}
.online-check-panel .selftest-help:hover,
.online-check-panel .selftest-help:focus-visible,
.online-check-panel .selftest-help[aria-expanded="true"] { border-color: var(--cyan-bright, #08b9ff); background: rgba(8,185,255,.12); color: #fff; outline: none; }
.online-check-panel .selftest-help-popover {
  display: none; position: absolute; z-index: 4; left: auto; right: 0; top: 28px;
  width: min(330px, 100%); max-width: 100%; padding: 10px 11px;
  border: 1px solid rgba(8,185,255,.34); border-radius: 6px; background: #071f36; box-shadow: 0 12px 30px rgba(0,0,0,.28);
  color: #dce8ef; font-size: 12px; line-height: 1.42; overflow-wrap: anywhere;
}
.online-check-panel .selftest-help-wrap:hover .selftest-help-popover,
.online-check-panel .selftest-help-wrap:focus-within .selftest-help-popover,
.online-check-panel .selftest-help[aria-expanded="true"] + .selftest-help-popover { display: block; }

.online-check-panel .selftest-topic-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 16px;
}
.online-check-panel .selftest-topic,
.online-check-panel .selftest-example {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(142,177,201,.4);
  border-radius: 6px;
  background: transparent;
  color: #dbe7ee;
  font: inherit;
  font-size: 11.9px;
  line-height: 1.22;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.online-check-panel .selftest-topic:hover,
.online-check-panel .selftest-topic:focus-visible,
.online-check-panel .selftest-example:hover,
.online-check-panel .selftest-example:focus-visible {
  border-color: rgba(8,185,255,.86); color: #fff; background: rgba(8,185,255,.07); outline: none;
}
.online-check-panel .selftest-topic.is-active,
.online-check-panel .selftest-topic[aria-pressed="true"] {
  border-color: var(--cyan-bright, #08b9ff); background: var(--cyan-bright, #08b9ff); color: #031729;
  box-shadow: 0 7px 18px rgba(0,0,0,.15);
}
.online-check-panel .selftest-example { border-style: dashed; background: rgba(8,185,255,.04); }
.online-check-panel .selftest-example:disabled { opacity: .55; cursor: wait; }
.online-check-panel .selftest-topic-icon {
  width: 31px; height: 31px; flex: 0 0 31px; color: var(--cyan-bright, #08b9ff);
}
.online-check-panel .selftest-topic-icon svg {
  width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.online-check-panel .selftest-topic-icon .hex { stroke-width: 2.9; }
.online-check-panel .selftest-topic[data-topic="program-governance"] .selftest-topic-icon,
.online-check-panel .selftest-topic[data-topic="stabilization"] .selftest-topic-icon { color: var(--orange, #ff9800); }
.online-check-panel .selftest-topic[data-topic="erp-finance"] .selftest-topic-icon { color: var(--lime, #a5d600); }
.online-check-panel .selftest-example .selftest-topic-icon { color: var(--cyan-bright, #08b9ff); }
.online-check-panel .selftest-topic.is-active .selftest-topic-icon,
.online-check-panel .selftest-topic[aria-pressed="true"] .selftest-topic-icon { color: #031729; }

.online-check-panel .selftest-input-step { display: flex; margin: 0 0 6px; }
.online-check-panel .selftest-input-help { margin: 0 0 9px; color: #b9c8d4; font-size: 12.2px; line-height: 1.4; }
.online-check-panel .selftest-form textarea {
  width: 100%; min-height: 120px; resize: vertical; padding: 11px 12px; border: 1px solid rgba(142,177,201,.48); border-radius: 6px;
  background: rgba(1,18,33,.8); color: #f3f7f9; font: inherit; font-size: 13px; line-height: 1.45; outline: none;
}
.online-check-panel .selftest-form textarea:focus { border-color: var(--cyan-bright, #08b9ff); box-shadow: 0 0 0 2px rgba(8,185,255,.08); }
.online-check-panel .selftest-form textarea::placeholder { color: #8ea8b9; }
.online-check-panel .selftest-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.online-check-panel .selftest-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.online-check-panel .selftest-submit {
  min-height: 40px; padding: 0 15px; border: 1px solid rgba(8,185,255,.8); border-radius: 5px; background: rgba(8,185,255,.11);
  color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.online-check-panel .selftest-submit:hover,
.online-check-panel .selftest-submit:focus-visible { border-color: var(--cyan-bright, #08b9ff); background: rgba(8,185,255,.2); outline: none; }
.online-check-panel .selftest-submit:disabled { opacity: .6; cursor: wait; }
.online-check-panel .selftest-status { color: #b9c8d4; font-size: 12px; line-height: 1.35; }
.online-check-panel .selftest-status.is-error { color: #ffb7b7; }

.online-check-panel .selftest-result { margin-top: 15px; padding: 15px; border: 1px solid rgba(135,170,196,.27); border-radius: 7px; }
.online-check-panel .selftest-result[hidden] { display: none; }
.online-check-panel .selftest-result-positive { border-color: rgba(156,203,9,.48); background: linear-gradient(180deg, rgba(10,37,53,.92), rgba(3,25,42,.96)); }
.online-check-panel .selftest-result-none { background: rgba(2,21,39,.74); }
.online-check-panel .selftest-result-step { margin: 0 0 10px; color: var(--cyan-bright, #08b9ff); font-size: 12.5px; font-weight: 700; }
.online-check-panel .selftest-result-assigned { margin: 0 0 9px; color: #f1f6f9; font-size: 13px; line-height: 1.4; font-weight: 600; }
.online-check-panel .selftest-assignment-list { display: grid; gap: 6px; }
.online-check-panel .selftest-assignment-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 34px; padding: 7px 9px; border: 1px solid rgba(8,185,255,.25); border-radius: 5px; background: rgba(8,185,255,.06); }
.online-check-panel .selftest-assignment-name { color: #e7f1f6; font-size: 12px; line-height: 1.3; }
.online-check-panel .selftest-assignment-score { min-width: 44px; color: var(--cyan-bright, #08b9ff); font-size: 12.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.online-check-panel .selftest-success-flow { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(156,203,9,.22); }
.online-check-panel .selftest-success-message { margin: 0; color: #f5f9ee; font-size: 13.2px; line-height: 1.4; font-weight: 700; }
.online-check-panel .selftest-contact-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 12px; padding: 0 14px; border: 1px solid rgba(8,185,255,.8); border-radius: 5px; background: rgba(8,185,255,.11); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.online-check-panel .selftest-contact-check { display: inline-block; margin-left: 8px; color: #b6e51a; font-size: 18px; line-height: 1; font-weight: 900; }
.online-check-panel .selftest-contact-note { margin: 7px 0 0; color: #aebfca; font-size: 11.4px; line-height: 1.4; }
.online-check-panel .selftest-no-match { margin: 0; color: #f3f6f8; font-size: 13px; line-height: 1.4; font-weight: 600; }

/* The opened assistant dims only the actual content area. Header and footer remain visible. */
.online-check-assistant.is-open .online-check-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Narrow desktop / tablet: the full-height rail hugs the viewport edge. */
.online-check-assistant.is-edge-mode .online-check-tab {
  left: auto;
  right: 0;
  width: var(--oca-tab-width);
  top: var(--oca-tab-top);
  bottom: var(--oca-tab-bottom);
  height: auto;
  min-height: 0;
  border-left: 1px solid rgba(8,185,255,.38);
  border-right: 1px solid rgba(8,185,255,.38);
  border-radius: 0;
  box-shadow: -8px 0 24px rgba(0,0,0,.16);
}
@media (max-width: 760px) {
  .online-check-panel {
    top: var(--oca-panel-top);
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - var(--oca-panel-top) - var(--oca-panel-bottom));
    border-radius: 10px;
  }
  .online-check-panel-header { padding: 16px 16px 13px; }
  .online-check-panel-title { font-size: 23px; line-height: 1.10; }
  .online-check-panel-scroll { padding: 15px 16px 18px; }
  .online-check-panel .selftest-topic-buttons { grid-template-columns: 1fr; gap: 6px; }
  .online-check-panel .selftest-topic,
  .online-check-panel .selftest-example { min-height: 52px; }
  .online-check-panel .selftest-help-popover { left: auto; right: 0; width: min(300px, 100%); }
  .online-check-assistant.is-mobile-mode .online-check-tab {
    left: auto;
    right: 0;
    top: 34vh;
    bottom: auto;
    width: 46px;
    height: auto;
    min-height: 214px;
    padding: 12px 6px;
    gap: 10px;
    border-left: 1px solid rgba(8,185,255,.38);
    border-right: 1px solid rgba(8,185,255,.38);
    border-radius: 9px 0 0 9px;
    box-shadow: -7px 8px 24px rgba(0,0,0,.22);
  }
  .online-check-assistant.is-mobile-mode .online-check-tab-word { font-size: 10.5px; gap: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .online-check-tab,
  .online-check-panel,
  .online-check-backdrop { transition: none; }
}

html.online-check-is-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
