.v-color-swatches {
  margin: 1rem 0;
}

.v-color-swatches__label {
  margin: 0 0 .35rem;
}

.v-color-swatches__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.v-color-swatches__link {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 50%;
}

.v-color-swatches__link:hover {
  border-color: #767676;
}

.v-color-swatches__link[aria-current="page"] {
  border-color: #202020;
}

.v-color-swatches__link:focus-visible {
  outline: 2px solid #205ba1;
  outline-offset: 2px;
}

.v-color-swatches__dot {
  width: 28px;
  height: 28px;
  border: 1px solid #0005;
  border-radius: 50%;
  background-color: var(--swatch-color, #777);
}

.v-color-swatches__link[data-color="blue"] { --swatch-color: #2ba3d8; }
.v-color-swatches__link[data-color="green"] { --swatch-color: #6aae35; }
.v-color-swatches__link[data-color="grey"] { --swatch-color: #767b80; }
.v-color-swatches__link[data-color="orange"] { --swatch-color: #ec762c; }
.v-color-swatches__link[data-color="pink"] { --swatch-color: #e35a9e; }
.v-color-swatches__link[data-color="red"] { --swatch-color: #d13b3d; }
.v-color-swatches__link[data-color="yellow"] { --swatch-color: #f4c62d; }

.v-color-swatches__name {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (forced-colors: active) {
  .v-color-swatches__link {
    width: auto;
    min-width: 44px;
    padding-inline: .5rem;
    border-radius: 4px;
    border-color: transparent;
  }

  .v-color-swatches__link[aria-current="page"] {
    border-color: CurrentColor;
  }

  .v-color-swatches__dot {
    display: none;
  }

  .v-color-swatches__name {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
  }
}
