/* Process widget v2: isolated fix for consistent positioning and interaction. */
.mygpt-process-widget {
  position: fixed !important;
  right: clamp(.9rem, 2.2vw, 1.75rem) !important;
  bottom: clamp(.9rem, 2.2vw, 1.75rem) !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483000 !important;
  width: min(390px, calc(100vw - 1.8rem)) !important;
  max-width: calc(100vw - 1.8rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  isolation: isolate;
}
.mygpt-process-widget .mygpt-process-trigger,
.mygpt-process-widget .mygpt-process-panel {
  pointer-events: auto !important;
}
.mygpt-process-widget .mygpt-process-trigger {
  -webkit-appearance: none;
  appearance: none;
  display: flex !important;
  position: relative !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 68px;
  margin: 0 0 0 auto !important;
  align-items: center !important;
  gap: .75rem !important;
  padding: .55rem .9rem .55rem .55rem !important;
  border: 1px solid rgba(36, 88, 255, .22) !important;
  border-radius: 1.15rem !important;
  background: rgba(255, 255, 255, .98) !important;
  color: #0f172a !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .20) !important;
  cursor: pointer !important;
  text-align: left !important;
  font: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}
.mygpt-process-widget .mygpt-process-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 88, 255, .42) !important;
  box-shadow: 0 24px 58px rgba(15, 23, 42, .24) !important;
}
.mygpt-process-widget .mygpt-process-trigger:focus-visible,
.mygpt-process-widget .mygpt-process-close:focus-visible,
.mygpt-process-widget .mygpt-process-link:focus-visible,
.mygpt-process-widget .mygpt-process-mail:focus-visible {
  outline: 3px solid #2458ff !important;
  outline-offset: 3px !important;
}
.mygpt-process-widget .mygpt-process-trigger img {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  border-radius: 15px !important;
  object-fit: cover !important;
  background: #fff !important;
}
.mygpt-process-widget .mygpt-process-trigger span {
  display: grid !important;
  gap: .16rem !important;
}
.mygpt-process-widget .mygpt-process-trigger strong {
  display: block !important;
  color: #0f172a !important;
  font-size: .96rem !important;
  line-height: 1.15 !important;
}
.mygpt-process-widget .mygpt-process-trigger small {
  display: block !important;
  color: #5f6f89 !important;
  font-size: .76rem !important;
  line-height: 1.25 !important;
}
.mygpt-process-widget .mygpt-process-panel {
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + .7rem) !important;
  left: auto !important;
  top: auto !important;
  display: block;
  width: 100% !important;
  max-height: calc(100vh - 7rem) !important;
  margin: 0 !important;
  padding: 1.15rem !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  border: 1px solid rgba(36, 88, 255, .20) !important;
  border-radius: 1.45rem !important;
  background: rgba(255, 255, 255, .99) !important;
  color: #0f172a !important;
  box-shadow: 0 28px 75px rgba(15, 23, 42, .25) !important;
}
.mygpt-process-widget .mygpt-process-panel[hidden] {
  display: none !important;
}
.mygpt-process-widget .mygpt-process-panel-head {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  gap: .85rem !important;
  align-items: start !important;
  padding-right: 1.75rem !important;
}
.mygpt-process-widget .mygpt-process-panel-head img {
  display: block !important;
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  object-fit: cover !important;
}
.mygpt-process-widget .mygpt-process-panel-head strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
}
.mygpt-process-widget .mygpt-process-panel-head p {
  margin: .35rem 0 0 !important;
  color: #5f6f89 !important;
  font-size: .82rem !important;
  line-height: 1.55 !important;
}
.mygpt-process-widget .mygpt-process-close {
  -webkit-appearance: none;
  appearance: none;
  position: absolute !important;
  top: .65rem !important;
  right: .65rem !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #edf3ff !important;
  color: #40506c !important;
  font: inherit !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.mygpt-process-widget .mygpt-process-close:hover {
  background: #dfe9ff !important;
  color: #0f172a !important;
}
.mygpt-process-widget .mygpt-process-link {
  display: inline-flex !important;
  width: 100% !important;
  margin-top: 1rem !important;
}
.mygpt-process-widget .mygpt-process-mail {
  display: block !important;
  margin-top: .7rem !important;
  color: #173db8 !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  .mygpt-process-widget {
    right: .65rem !important;
    bottom: .65rem !important;
    width: calc(100vw - 1.3rem) !important;
    max-width: calc(100vw - 1.3rem) !important;
  }
  .mygpt-process-widget .mygpt-process-trigger {
    min-height: 60px;
    padding-right: .75rem !important;
  }
  .mygpt-process-widget .mygpt-process-trigger img {
    width: 48px !important;
    height: 48px !important;
    flex-basis: 48px !important;
    border-radius: 13px !important;
  }
  .mygpt-process-widget .mygpt-process-trigger small {
    display: none !important;
  }
}

/* In short browser windows the card opens inside the viewport instead of above it. */
@media (max-height: 560px) {
  .mygpt-process-widget .mygpt-process-panel {
    position: fixed !important;
    left: .65rem !important;
    right: .65rem !important;
    top: auto !important;
    bottom: .65rem !important;
    width: auto !important;
    max-height: calc(100vh - 1.3rem) !important;
  }
  .mygpt-process-widget.is-open .mygpt-process-trigger {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
