/* FR-039 / HU 15 — circular color swatches on PDP (demo-a / demo-b) */
.dpy-swatch-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dpy-color-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.dpy-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-sizing: border-box;
  background-color: #c8ccd2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.dpy-color-swatch--placeholder {
  background-image: linear-gradient(
    135deg,
    #e8eaed 25%,
    #c8ccd2 25%,
    #c8ccd2 50%,
    #e8eaed 50%,
    #e8eaed 75%,
    #c8ccd2 75%
  );
  background-size: 8px 8px;
}

.dpy-color-swatch.is-selected {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px #1a1a1a;
}

.dpy-color-swatch:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.pc-swatches.dpy-color-swatches,
.color-swatches.dpy-color-swatches {
  gap: 5px;
  height: 18px;
  min-height: 18px;
  margin: 0 0 4px;
  overflow: hidden;
  align-items: center;
}

.dpy-color-swatch.dpy-card-color-swatch,
.dpy-card-color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
