/* UPA — Icons: upa-icon-symbol, upa-icon-picker */
body.upa-page .upa-icon-symbol {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f5d73;
  line-height: 0;
  position: relative;
  overflow: hidden;
}

body.upa-page .upa-icon-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.upa-page .upa-icon-symbol img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.upa-page .upa-icon-picker {
  position: relative;
}

body.upa-page .upa-icon-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

body.upa-page .upa-icon-picker__trigger-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.upa-page .upa-icon-picker__trigger-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.upa-page .upa-icon-picker__trigger-icon .upa-icon-symbol {
  width: 1.1rem;
  height: 1.1rem;
  overflow: visible;
}

body.upa-page .upa-icon-picker__menu {
  position: absolute;
  z-index: 40;
  width: 100%;
  max-height: 16rem;
  overflow: auto;
  margin-top: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--upa-border);
  background: #fff;
  padding: 0.25rem;
  box-shadow: 0 10px 22px rgba(18, 23, 35, 0.12);
}

body.upa-page .upa-icon-picker__menu[hidden] {
  display: none !important;
}

body.upa-page .upa-icon-picker--grid .upa-icon-picker__menu[hidden] {
  display: none !important;
}

body.upa-page .upa-icon-picker__option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: transparent;
  color: var(--upa-text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  cursor: pointer;
}

body.upa-page .upa-icon-picker__option:hover,
body.upa-page .upa-icon-picker__option.is-selected {
  background: rgba(31, 111, 235, 0.1);
}

body.upa-page .upa-icon-picker--grid .upa-icon-picker__menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, 2.25rem);
  justify-content: flex-start;
  align-content: start;
  gap: 0.35rem;
  max-height: 14rem;
}

body.upa-page .upa-icon-picker--grid .upa-icon-picker__option {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
}

body.upa-page .upa-icon-picker--grid .upa-icon-symbol {
  width: 1rem;
  height: 1rem;
}

body.upa-page .upa-icon-picker--grid .upa-icon-picker__option-label {
  display: none;
}

body.upa-page .upa-icon-picker--grid .upa-icon-picker__option.is-selected {
  border-color: color-mix(in srgb, var(--upa-primary) 40%, transparent);
}
