.hardware-finishes,
.hardware-finishes *,
.material-picker,
.material-picker * {
  box-sizing: border-box;
}

.as-section.hardware-finishes {
  background: #edf5f5;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.hardware-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7e8;
  border-radius: 14px;
  background: #fff;
}

.hardware-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

#allrecords .hardware-card h3 {
  margin: 0;
  padding: 16px 18px 20px;
  border-top: 1px solid #eef2f2;
  color: #183b43;
  font: 500 17px/1.4 "Fira Sans", Arial, sans-serif;
  overflow-wrap: anywhere;
}

.material-field__label {
  display: block;
  margin-bottom: 12px;
  color: #333;
  font: 500 22px/1.4 "Fira Sans", Arial, sans-serif;
}

.material-picker__native {
  display: none !important;
}

.material-picker {
  width: 100%;
  min-width: 0;
  color: #233538;
  font-family: "Fira Sans", Arial, sans-serif;
}

.material-picker__toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 8px 16px 8px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 5px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.material-picker__preview {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid #edf2f2;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}

.material-picker__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.material-picker__chevron {
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.material-picker__toggle[aria-expanded="true"] {
  border-color: #137e93;
}

.material-picker__toggle[aria-expanded="true"] .material-picker__chevron {
  transform: rotate(225deg);
}

.material-picker__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.material-picker__options[hidden] {
  display: none;
}

.material-picker__option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 5px;
  border: 1px solid #c6d7da;
  border-radius: 6px;
  color: inherit;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

.material-picker__option img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 3px;
  object-fit: contain;
}

.material-picker__option span {
  padding: 7px 2px 5px;
  overflow-wrap: anywhere;
}

.material-picker__option[aria-pressed="true"] {
  border-color: #137e93;
  box-shadow: inset 0 0 0 1px #137e93;
  background: #edf5f5;
}

.material-picker__option:hover,
.material-picker__toggle:hover {
  border-color: #137e93;
}

.material-picker button:focus-visible {
  outline: 3px solid #137e93;
  outline-offset: 3px;
}

.site-form-field-error .material-picker__toggle {
  border-color: #d80000;
}

@media (max-width: 767px) {
  .hardware-grid,
  .material-picker__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hardware-grid {
    gap: 16px 12px;
  }

  #allrecords .hardware-card h3 {
    padding: 12px 10px 16px;
    font-size: 15px;
  }

  .material-picker__option {
    font-size: 13px;
  }
}
