@layer blocks {
  .color-family.block {
    position: relative;
    padding: 6.5rem 0;
  }
  .color-family__inner {
    width: 100%;
    overflow-x: clip;
    padding-top: 0.25rem;
    margin-top: 4rem;
  }
  .color-family__top {
    display: flex;
    flex-direction: column;
    row-gap: 4rem;
    margin-bottom: 1rem;
  }
  @media (min-width: 1024px) {
    .color-family__top {
      flex-direction: row;
      align-items: center;
      row-gap: 0;
      margin-bottom: 2.5rem;
    }
  }
  .color-family__heading {
    color: var(--theme-text-primary);
    margin: 0;
  }
  @media (min-width: 1024px) {
    .color-family__heading {
      flex: 1;
      min-width: 0;
    }
  }
  .color-family__carousel {
    position: relative;
  }
  .color-family__flat-grid {
    width: 100%;
  }
  .color-family__skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
  }
  @media (min-width: 768px) {
    .color-family__skeleton {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  @media (min-width: 1024px) {
    .color-family__skeleton {
      grid-template-columns: repeat(7, 1fr);
    }
  }
  .color-family__skeleton-swatch {
    aspect-ratio: 1/1;
  }
  .color-family__carousel .carousel__slide {
    width: 28.5vw;
    max-width: 10.75rem;
  }
  @media (min-width: 768px) {
    .color-family__carousel .carousel__slide {
      width: 12.9375rem;
      max-width: none;
    }
  }
  .color-family__slide {
    position: relative;
    width: 100%;
  }
  .color-family__carousel {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  .color-family__carousel .carousel {
    order: 1;
  }
  .color-family__cta-bar {
    order: 2;
    position: sticky;
    bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-inline: 0;
    z-index: 1;
    pointer-events: none;
  }
  @media (max-width: 767px) {
    .color-family__cta-bar {
      bottom: 1.5rem;
      width: 100%;
    }
  }
  .color-family__cta {
    width: max-content;
    pointer-events: auto;
  }
  @media (max-width: 767px) {
    .color-family__cta {
      width: 100%;
    }
  }
  .color-family__cta--left {
    margin-right: auto;
  }
  .color-family__cta--right {
    margin-left: auto;
  }
  .color-family__error {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--theme-text-primary);
    padding: 3rem 0;
    text-align: center;
  }
  .color-family__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}