.sp-container {
  z-index: 2147483647;
}

/* Global Spectrum component(add-on) sizing fix */
.sp-original-input-container {
  display: inline-flex;
  align-items: stretch;
}

.sp-original-input-container .sp-add-on {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  width: 36px !important;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--p-color-sub-op, rgba(71, 85, 105, .35)) !important;
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
}

.sp-original-input-container .sp-add-on .sp-colorize {
  display: block;
  width: 100%;
  height: 100%;
}

input.spectrum.with-add-on {
  min-height: 36px;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
}

/* Global help-dot tooltip utility */
.ui-help-dot,
.pt-admin-help-dot {
  position: relative;
  z-index: 2147483646;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--p-color-sub-op, rgba(51, 65, 85, .35));
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
  color: var(--p-color-sub, var(--content-font-color, #334155));
  background: color-mix(in srgb, var(--p-color-main, var(--card-bg-color, #fff)) 92%, #000 8%);
  cursor: help;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14);
  transition: transform .14s ease, box-shadow .14s ease;
}

.ui-help-dot:hover,
.ui-help-dot:focus-visible,
.pt-admin-help-dot:hover,
.pt-admin-help-dot:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .2);
}

.ui-help-dot::after,
.pt-admin-help-dot::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  display: none;
  padding: 8px 10px;
  border: 1px solid var(--p-color-sub-op, rgba(51, 65, 85, .35));
  border-radius: 8px;
  background: color-mix(in srgb, var(--p-color-main, var(--card-bg-color, #fff)) 92%, #000 8%);
  color: var(--p-color-sub, var(--content-font-color, #334155));
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2147483647;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.ui-help-dot:hover::after,
.ui-help-dot:focus-visible::after,
.pt-admin-help-dot:hover::after,
.pt-admin-help-dot:focus-visible::after {
  display: block;
  opacity: 1;
  visibility: visible;
}
