.afs-flooring-pilot-nav {
  border-block: 1px solid #dedede;
  color: #181818;
  background: #fafafa;
}

.afs-flooring-pilot-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 6px;
}

.afs-flooring-pilot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-inline: 9px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.afs-flooring-pilot-nav a:hover { background: #efefef; }
.afs-flooring-pilot-nav a[aria-current] {
  background: #f0f0f0;
  box-shadow: inset 0 -3px 0 #c91527;
  font-weight: 650;
}

.afs-flooring-pilot-nav a:focus-visible,
.afs-pilot-gallery-switcher button:focus-visible,
.afs-pilot-color:focus-visible {
  outline: 2px solid #c91527;
  outline-offset: 2px;
}

.afs-pilot-material-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}

.afs-pilot-material-card figcaption,
.afs-pilot-image-credit {
  margin: 6px 0 12px;
  color: #545454;
  font-size: .8125rem;
}

.afs-pilot-material-card h3 { margin-top: 8px; }
.afs-flooring-pilot-landing .project-links a { min-height: 44px; display: inline-flex; align-items: center; }

.afs-broadloom-review-note {
  margin: 0 0 14px;
  color: #505050;
  font-size: 14px;
}

#catalog-grid.afs-broadloom-reviewed-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html body #catalog-grid .catalog-card.afs-broadloom-sample-card > .catalog-image-button {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 0;
  overflow: hidden;
  background: #f3f3f3;
}

#catalog-grid .afs-broadloom-sample-card .afs-pilot-card-swatch {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afs-pilot-card-meta { margin: 0; color: #4e4e4e; font-size: 14px; }

.afs-pilot-swatch-pending {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 110px;
  height: 100%;
  padding: 12px;
  background: #efefef;
  color: #555;
  text-align: center;
  font-size: 14px;
}

.afs-pilot-gallery-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

#product-dialog :is(.afs-pilot-gallery-switcher button, .afs-pilot-color) {
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  background: #fff;
  color: #181818;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

#product-dialog :is(.afs-pilot-gallery-switcher button, .afs-pilot-color)[aria-pressed="true"] {
  border-color: #181818;
  box-shadow: inset 0 -3px 0 #c91527;
  font-weight: 650;
}

#product-dialog .afs-pilot-swatch-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 190px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

#product-dialog .afs-pilot-swatch-frame > img {
  display: block;
  width: 100%;
  max-height: min(550px, 65vh);
  height: auto;
  object-fit: contain;
}

.afs-pilot-colors { margin: 0 0 18px; padding: 0; }
.afs-pilot-colors h3 { margin: 0 0 8px; font-size: 19px; }
.afs-pilot-color-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 6px;
}

#product-dialog .afs-pilot-color {
  padding: 5px;
  text-align: left;
}

#product-dialog .afs-pilot-color-swatch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 2px;
}

.afs-pilot-color-name,
.afs-pilot-color-code {
  display: block;
  margin: 3px 2px 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.afs-pilot-color-status { margin: 8px 0 0; color: #414141; font-size: 14px; }
.afs-pilot-repeat { padding: 20px; text-align: center; }
.afs-pilot-repeat p { font-size: 20px; }
.afs-pilot-blocked-send { padding: 10px 16px; border-left: 3px solid #c91527; }

@media (max-width: 1040px) {
  #catalog-grid.afs-broadloom-reviewed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .afs-flooring-pilot-nav-inner {
    width: calc(100% - 28px);
    gap: 1px 4px;
    padding-block: 5px;
  }
  .afs-flooring-pilot-nav a { min-height: 38px; padding-inline: 7px; font-size: 13px; }
  html body #catalog-grid.afs-broadloom-reviewed-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #product-dialog .afs-pilot-swatch-frame > img { max-height: 51vh; }
}
