/* TJF_PSM_EMBED_V1 */
#tjf-psm-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #0b5cab;
  color: #fff;
  font: 700 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
  cursor: pointer;
}
#tjf-psm-launcher:hover { filter: brightness(1.06); }
#tjf-psm-launcher:focus-visible {
  outline: 3px solid #ffd35a;
  outline-offset: 3px;
}
#tjf-psm-launcher .tjf-psm-icon {
  font-size: 18px;
  line-height: 1;
}

#tjf-psm-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  flex-direction: column;
  background: #f5f7fa;
}
#tjf-psm-overlay.tjf-open { display: flex; }

#tjf-psm-toolbar {
  height: 58px;
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 1px 8px rgba(15,23,42,.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#tjf-psm-title {
  min-width: 0;
  flex: 1;
}
#tjf-psm-title strong {
  display: block;
  color: #172033;
  font-size: 15px;
  line-height: 1.2;
}
#tjf-psm-title span {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tjf-psm-toolbtn {
  min-height: 38px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  padding: 0 12px;
  font: 650 13px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}
.tjf-psm-toolbtn:hover { background: #f2f4f7; }
#tjf-psm-close {
  background: #0b5cab;
  color: #fff;
  border-color: #0b5cab;
}

#tjf-psm-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #fff;
}
#tjf-psm-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}
#tjf-psm-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f8fafc;
  color: #344054;
  text-align: center;
  font: 600 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#tjf-psm-loading.tjf-hidden { display: none; }

@media (max-width: 700px) {
  #tjf-psm-launcher {
    right: 12px;
    bottom: 74px;
    min-height: 42px;
    padding: 0 13px;
    font-size: 13px;
  }
  #tjf-psm-toolbar {
    height: 54px;
    flex-basis: 54px;
    padding: 0 9px;
    gap: 7px;
  }
  #tjf-psm-title span { display: none; }
  .tjf-psm-toolbtn {
    padding: 0 9px;
    font-size: 12px;
  }
}

/* TJF Circular H authenticated rail button */
#tjf-psm-rail-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 2px auto;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#tjf-psm-rail-button:hover {
  background: rgba(127,127,127,.16);
}
#tjf-psm-rail-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
#tjf-psm-rail-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
