@layer components {
  .color-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  @media (min-width: 1024px) {
    .color-selection {
      gap: 2rem;
    }
  }
  .color-selection__label-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .color-selection__label {
    display: block;
    color: var(--theme-text-primary);
  }
  .color-selection__sub-label {
    display: block;
    color: var(--theme-text-secondary);
  }
  .color-selection__trigger-swatch {
    display: inline-block;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    aspect-ratio: 1/1;
    background-color: var(--swatch-color);
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  @media (min-width: 1024px) {
    .color-selection__trigger-swatch {
      width: 1.5rem;
      height: 1.5rem;
    }
  }
  .color-selection__trigger-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .color-selection__trigger-label-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .color-selection__trigger-name {
    display: block;
    color: var(--theme-text-primary);
  }
  .color-selection__trigger-code {
    display: block;
    color: var(--theme-text-secondary);
  }
  .color-selection__swatch {
    display: inline-block;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    aspect-ratio: 1/1;
    background-color: var(--swatch-color);
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  @media (min-width: 1024px) {
    .color-selection__swatch {
      width: 1.5rem;
      height: 1.5rem;
    }
  }
  .color-selection__help-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--theme-text-secondary);
  }
  @media (min-width: 1024px) {
    .color-selection__help-text {
      flex-direction: row;
      align-items: baseline;
    }
  }
  .color-selection__help-text a,
  .color-selection__help-text a.button {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    transition: background-size 0.45s cubic-bezier(0.5, 0, 0, 1), background-position 0.45s cubic-bezier(0.5, 0, 0, 1);
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    min-height: auto;
    color: var(--theme-text-primary);
    text-decoration: none;
    background-image: linear-gradient(currentcolor, currentcolor);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 100% 0.09375rem;
  }
  .color-selection__help-text a.hover, .color-selection__help-text a:hover,
  .color-selection__help-text a.button.hover,
  .color-selection__help-text a.button:hover {
    background-size: 0% 0.09375rem;
  }
  .color-selection__help-text a.focus, .color-selection__help-text a:focus-visible,
  .color-selection__help-text a.button.focus,
  .color-selection__help-text a.button:focus-visible {
    outline: 0.125rem solid var(--theme-focus-primary);
    outline-offset: 0.25rem;
    border-radius: 6rem;
  }
  @media (prefers-reduced-motion: reduce) {
    .color-selection__help-text a,
    .color-selection__help-text a.button {
      transition-duration: 0ms;
    }
  }
  .color-selection__help-text a .button-content,
  .color-selection__help-text a.button .button-content {
    display: inline;
    -webkit-text-stroke-width: 0;
  }
  .color-selection__help-text a .button-content::before, .color-selection__help-text a .button-content::after,
  .color-selection__help-text a.button .button-content::before,
  .color-selection__help-text a.button .button-content::after {
    content: none;
  }
  .color-selection__swatch-img,
  .color-selection__trigger-swatch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .color-selection .select-dropdown__option[aria-disabled=true] {
    opacity: 0.5;
    cursor: not-allowed;
  }
  @media (forced-colors: active) {
    .color-selection .select-dropdown__option[aria-disabled=true] {
      opacity: 1;
      outline: 2px dashed GrayText;
    }
  }
}