#ih-apparel .ih-decoration-method .ih-garment-color-dock {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#ih-apparel .ih-decoration-method .ih-shirt-swatches {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

#ih-apparel .ih-shirt-swatches > .ih-shirt-color-header {
  justify-self: stretch;
  width: 100%;
  min-height: 36px;
  padding: 3px 5px;
  gap: 5px;
  line-height: 1.25;
  font-size: 11px;
  text-align: left;
  white-space: normal;
  background: #fff;
}

#ih-apparel .ih-shirt-thumbnail {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid #c9dbe7;
  border-radius: 5px;
  background: #f1f5f7;
}

#ih-apparel .ih-shirt-thumbnail::before {
  content: "";
  grid-area: 1 / 1;
  width: 22px;
  height: 21px;
  background: var(--shirt-thumbnail-color, #718397);
  clip-path: polygon(28% 7%, 40% 2%, 50% 12%, 60% 2%, 72% 7%, 100% 29%, 85% 51%, 73% 42%, 73% 97%, 27% 97%, 27% 42%, 15% 51%, 0 29%);
  filter: drop-shadow(0 1px 1px #17334c66);
}

#ih-apparel .ih-shirt-thumbnail .ih-shirt-color-photo {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
}

#ih-apparel .ih-shirt-add-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

#ih-apparel .ih-shirt-add-actions button {
  min-height: 28px;
  padding: 2px 4px;
  color: #165985;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
}

#ih-apparel .ih-shirt-color-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 24px));
  max-height: min(640px, calc(100dvh - 24px));
  padding: 16px;
}

#ih-apparel .ih-shirt-color-dialog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

#ih-apparel .ih-shirt-color-dialog-header h3 {
  margin: 0;
  padding: 0;
}

#ih-apparel .ih-shirt-color-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 8px;
}

#ih-apparel .ih-shirt-color-options button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 7px;
  background: #fff;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

#ih-apparel .ih-shirt-color-options button[aria-pressed="true"] {
  border-color: #15567b;
  background: #e6f2fb;
}

#ih-apparel .ih-shirt-color-dot {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1px solid #b3c2cc;
  border-radius: 50%;
  background: var(--shirt-swatch, #f2f5f7);
}
