.lp-colors {
  --lp-colors-background: #fff;
  --lp-colors-text: #111;
  --lp-colors-accent: #f5bc2e;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  grid-template-areas: "preview copy" "swatches swatches";
  align-items: center;
  gap: 40px clamp(28px, 4vw, 80px);
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  color: var(--lp-colors-text);
  background: var(--lp-colors-background);
  font-family: inherit;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.4;
}
.lp-colors, .lp-colors * { box-sizing: border-box; }
.lp-colors .lp-colors__copy { grid-area: copy; min-width: 0; text-align: center; }
.lp-colors .lp-colors__heading {
  margin: 0 0 32px;
  color: inherit;
  font-family: inherit;
  font-size: clamp(30px, 2.65vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}
.lp-colors .lp-colors__copy p { margin: 0 0 30px; font-size: inherit; line-height: inherit; }
.lp-colors .lp-colors__copy p:last-child { margin-bottom: 0; }
.lp-colors .lp-colors__copy sup { font-size: .55em; }
.lp-colors .lp-colors__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
  font-weight: 600;
}
.lp-colors .lp-colors__benefits li { margin: 0; padding: 0; }
.lp-colors .lp-colors__benefits li > span:first-child { color: var(--lp-colors-accent); font-size: 1.2em; padding-right: .25em; }
.lp-colors .lp-colors__preview { grid-area: preview; min-width: 0; aspect-ratio: 1.72; overflow: hidden; }
.lp-colors .lp-colors__pool-image { display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; object-fit: cover; }
.lp-colors .lp-colors__swatches {
  grid-area: swatches;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 1.3vw, 24px);
  width: 78%;
  margin-left: auto;
}
.lp-colors .lp-colors__swatch {
  display: block;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lp-colors .lp-colors__texture { display: block; position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; }
.lp-colors .lp-colors__texture img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center; }
.lp-colors .lp-colors__texture::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid var(--lp-colors-background);
  transform: translateX(-50%);
  opacity: 0;
}
.lp-colors .lp-colors__color-name {
  display: block;
  margin-top: 4px;
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1.3;
  white-space: nowrap;
  visibility: hidden;
}
.lp-colors .lp-colors__swatch[aria-pressed="true"] .lp-colors__texture::after { opacity: 1; }
.lp-colors .lp-colors__swatch[aria-pressed="true"] .lp-colors__color-name { visibility: visible; }
.lp-colors .lp-colors__swatch:focus-visible { outline: 3px solid #087a9c; outline-offset: 5px; }
.lp-colors .lp-colors__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lp-colors .lp-colors__status--error { position: static; grid-column: 1 / -1; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; text-align: center; font-size: 16px; }

@media (max-width: 1024px) {
  .lp-colors { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "preview" "swatches"; gap: 24px; font-size: 18px; }
  .lp-colors .lp-colors__copy { max-width: 600px; margin: 0 auto; padding: 0 16px; }
  .lp-colors .lp-colors__heading { font-size: clamp(30px, 5vw, 38px); margin-bottom: 26px; }
  .lp-colors .lp-colors__copy p { margin-bottom: 24px; }
  .lp-colors .lp-colors__benefits { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 24px; }
  .lp-colors .lp-colors__desktop-break { display: none; }
  .lp-colors .lp-colors__preview { aspect-ratio: 1.94; }
  .lp-colors .lp-colors__swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(76%, 460px); margin: 0 auto; }
  .lp-colors .lp-colors__texture::after { border-left-width: 10px; border-right-width: 10px; border-bottom-width: 10px; }
  .lp-colors .lp-colors__color-name { margin-top: 3px; font-size: 12px; }
}
