/* Shadow target custom select for text decoration effects. */
.td-shadow-target-select {
  position: relative;
  display: grid;
  gap: 6px;
}

.td-shadow-target-select.is-open {
  z-index: 20;
}

.td-shadow-target-trigger {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  width: 100%;
  border: 1px solid #e0d6dc;
  border-radius: 8px;
  background: #fff;
  color: #2f292c;
  cursor: pointer;
  padding: 6px 10px;
  text-align: left;
}

.td-shadow-target-trigger:hover,
.td-shadow-target-select.is-open .td-shadow-target-trigger {
  border-color: #c64b7f;
  background: #fff8fb;
}

.td-shadow-target-trigger:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-shadow-target-caret {
  position: relative;
  justify-self: center;
  width: 10px;
  height: 10px;
}

.td-shadow-target-caret::before {
  position: absolute;
  inset: 2px 0 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #776e74;
  border-bottom: 2px solid #776e74;
  transform: rotate(45deg);
  content: "";
}

.td-shadow-target-select.is-open .td-shadow-target-caret::before {
  inset: 5px 0 0;
  transform: rotate(225deg);
}

.td-shadow-target-menu {
  position: absolute;
  z-index: 21;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid #ead9e2;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(54, 46, 68, .12);
}

.td-shadow-target-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
  color: #2f292c;
  cursor: pointer;
  padding: 5px 8px;
  text-align: left;
}

.td-shadow-target-option:hover {
  border-color: #d188a9;
  background: #fffafd;
}

.td-shadow-target-option.is-active {
  border-color: #c64b7f;
  background: #fff8fb;
}

.td-shadow-target-option:focus-visible {
  outline: 2px solid #0b84ff;
  outline-offset: 2px;
}

.td-shadow-target-swatch {
  box-sizing: border-box;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(45, 39, 42, .16);
  border-radius: 999px;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .72);
}

.td-shadow-target-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.td-shadow-target-label {
  overflow: hidden;
  color: #2e282b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-shadow-target-meta {
  overflow: hidden;
  color: #726970;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-shadow-target-check {
  justify-self: center;
  color: #b93f72;
  font-size: 14px;
  font-weight: 900;
}
