.fhpc-configurator {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid #eadde5;
  border-radius: 12px;
  background: #fff9fc;
}

/* I-Tip layout trial: keep the top product header compact and place the
   three customer-facing choices in a full-width section below it. */
.fhpc-keratin-product .single-product-extras {
  display: none !important;
}

.fhpc-keratin-product div.product .fh-product-customization {
  clear: both;
  width: 100%;
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  border: 1px solid #eadde5;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.fhpc-keratin-product .fh-product-customization > h2 {
  margin: 0 0 1.25rem;
}

.fhpc-keratin-product .fh-product-customization form.cart {
  display: block;
  width: 100%;
  max-width: none;
}

.fhpc-keratin-product .fh-product-customization .wapf {
  width: 100%;
}

.fhpc-keratin-product .fh-product-customization .wapf-field-container {
  margin-bottom: 1.1rem;
}

.fhpc-keratin-product .fh-product-customization__price {
  margin: 1.25rem 0 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid #eadde5;
}

.fhpc-keratin-product .fh-product-customization__price .price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.fhpc-keratin-product .fh-product-info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.fhpc-keratin-product .fh-product-info-tags__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.36rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid #d6ddea;
  border-radius: 999px;
  background: #f5f8fd;
  color: #182746;
  line-height: 1;
}

.fhpc-keratin-product .fh-product-info-tags__item small {
  color: #68758a;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: lowercase;
}

.fhpc-keratin-product .fh-product-info-tags__item strong {
  font-size: 0.86rem;
}

.fhpc-keratin-product .fh-product-info-tags__item--lead-time strong {
  color: #8b1743;
}

.fhpc-keratin-product .fh-product-info-tags__item--moq {
  border-color: #eadac7;
  background: #fffaf3;
}

.fhpc-keratin-product .fh-product-info-tags__item--moq strong {
  color: #8c5a20;
}

/* Product summary beside the gallery: three compact, scannable sections.
   The copy remains content-driven rather than using a fixed height so it
   cannot overflow when the customer increases browser text size. */
.fhpc-keratin-product .woocommerce-product-details__short-description .fh-itip-summary-copy {
  display: grid;
  gap: 0;
  margin: 0.9rem 0 0;
}

.fhpc-keratin-product .fh-itip-summary-copy__section {
  padding: 0;
}

.fhpc-keratin-product .fh-itip-summary-copy__section p {
  margin: 0 !important;
  margin-block: 0 !important;
  color: #4c566b;
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .fhpc-keratin-product .woocommerce-product-details__short-description .fh-itip-summary-copy {
    gap: 0;
    margin-top: 0.75rem;
  }

  .fhpc-keratin-product .fh-itip-summary-copy__section {
    padding: 0;
  }

  .fhpc-keratin-product .fh-itip-summary-copy__section p {
    font-size: 1.05rem;
    line-height: 1.52;
  }
}

.fhpc-keratin-product .fh-product-customization__price--summary {
  margin-top: 1.1rem;
  padding-top: 0;
  border-top: 0;
}

.fhpc-keratin-product .fh-product-customization__price--summary > .price {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.fhpc-keratin-product .fh-product-customization__price--summary .fh-packaging-summary {
  margin-top: 0;
}

/* Keep the selectable text badges aligned as a predictable grid. */
.fhpc-keratin-product .field-61b7c97 .wapf-swatch-wrapper {
  display: grid !important;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.6rem;
}

.fhpc-keratin-product .field-cd39fdc .wapf-swatch-wrapper {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

/* Visual texture selector. The original radio inputs remain active underneath,
   so WooCommerce/WAPF still receives the existing configured values. */
.fhpc-keratin-product .fh-texture-picker {
  margin-top: 1.2rem;
}

.fhpc-keratin-product .fh-texture-reference {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #eadde5;
}

.fhpc-keratin-product .field-cd39fdc > .wapf-field-input {
  display: none;
}

.fhpc-keratin-product .field-61b7c97 > .wapf-field-label,
.fhpc-keratin-product .field-cd39fdc > .wapf-field-label {
  color: #0a174e;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.fhpc-keratin-product .fh-texture-reference__heading {
  margin: 0 0 0.75rem;
}

.fhpc-keratin-product .fh-texture-reference__mapping {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.fhpc-keratin-product .fh-texture-reference__item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "number name name name"
    "number code lead moq";
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.48rem 0.55rem;
  border: 1px solid #e7e1e5;
  border-radius: 7px;
  background: #faf7f9;
  color: #352d33;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.fhpc-keratin-product .fh-texture-reference__item:hover {
  border-color: #ec78ad;
  background: #fff5fa;
}

.fhpc-keratin-product .fh-texture-reference__item.is-selected {
  border-color: #c9006e;
  background: #ffd9eb;
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.28);
  color: #76003f;
  font-weight: 600;
}

.fhpc-keratin-product .fh-texture-reference__item.is-selected em {
  padding: 0.18rem 0.38rem;
  border-radius: 999px;
  background: #c9006e;
  color: #fff;
}

.fhpc-keratin-product .fh-texture-reference__item strong {
  grid-area: number;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  color: #e6007e;
  font-size: 1.22rem;
  line-height: 1;
}

.fhpc-keratin-product .fh-texture-reference__item span {
  grid-area: name;
  white-space: nowrap;
  line-height: 1.18;
  font-weight: 600;
}

.fhpc-keratin-product .fh-texture-reference__item em {
  grid-area: code;
  color: #0a174e;
  font-style: normal;
  font-weight: 700;
}

.fhpc-keratin-product .fh-texture-reference__lead-time {
  grid-area: lead;
  color: #8b1743;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.fhpc-keratin-product .fh-texture-reference__moq {
  grid-area: moq;
  color: #8b1743;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.fhpc-keratin-product .fh-texture-reference__image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e7e1e5;
  border-radius: 8px;
  background: #fff;
}

.fhpc-keratin-product .fh-packaging-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  margin-top: 1.35rem;
}

.fhpc-keratin-product .fh-packaging-options__group {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #eadde5;
  border-radius: 10px;
  background: #fff9fc;
}

.fhpc-keratin-product .fh-packaging-options__group:last-child {
  margin-bottom: 0;
}

.fhpc-keratin-product .fh-packaging-options__group legend {
  margin-bottom: 0.5rem;
  color: #0a174e;
  font-size: 0.95rem;
  font-weight: 600;
}

.fhpc-keratin-product .fh-packaging-options__choices {
  display: grid;
  gap: 0.55rem;
}

.fhpc-keratin-product .fh-packaging-options__group:nth-of-type(1) .fh-packaging-options__choices {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fhpc-keratin-product .fh-packaging-options__group:nth-of-type(2) .fh-packaging-options__choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fhpc-keratin-product .fh-packaging-choice {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.fhpc-keratin-product .fh-packaging-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.fhpc-keratin-product .fh-packaging-choice span {
  display: block;
  min-width: 78px;
  padding: 0.62rem 0.75rem;
  border: 2px solid #ded9dd;
  border-radius: 8px;
  background: #fff;
  color: #352d33;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.fhpc-keratin-product .fh-packaging-choice:hover span {
  border-color: #ec78ad;
}

.fhpc-keratin-product .fh-packaging-choice input:checked + span {
  border-color: #c9006e;
  background: #ffd9eb;
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.24);
  color: #76003f;
}

.fhpc-keratin-product .fh-packaging-choice input:focus-visible + span {
  outline: 2px solid #0a174e;
  outline-offset: 2px;
}

.fhpc-keratin-product .fh-packaging-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-top: 0.9rem;
  border: 1px solid #cdd7e5;
  border-radius: 9px;
  background: #f3f6fb;
  cursor: default;
}

.fhpc-keratin-product .fh-packaging-summary::before {
  content: 'selected specifications';
  grid-column: 1 / -1;
  padding: 0.48rem 0.75rem;
  background: #0a174e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-align: left;
  text-transform: lowercase;
}

.fhpc-keratin-product .fh-packaging-summary__item {
  min-width: 0;
  padding: 0.72rem 0.65rem;
  border-right: 1px solid #d8e0eb;
  text-align: center;
}

.fhpc-keratin-product .fh-packaging-summary__item:last-child {
  border-right: 0;
}

.fhpc-keratin-product .fh-packaging-summary__item span,
.fhpc-keratin-product .fh-packaging-summary__item strong {
  display: block;
}

.fhpc-keratin-product .fh-packaging-summary__item span {
  margin-bottom: 0.18rem;
  color: #6a7484;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: lowercase;
}

.fhpc-keratin-product .fh-packaging-summary__item strong {
  color: #17233f;
  font-size: 0.94rem;
  line-height: 1.25;
  white-space: nowrap;
}

.fhpc-keratin-product .fh-pack-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid #e1d7dd;
  border-radius: 9px;
  background: #fff1f8;
}

.fhpc-keratin-product .fh-pack-price span {
  color: #5f5159;
  font-size: 0.9rem;
  font-weight: 600;
}

.fhpc-keratin-product .fh-pack-price strong {
  color: #c9006e;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.fhpc-keratin-product .fhsp-moq-validation {
	margin: 0.8rem 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid #c92f55;
	border-radius: 8px;
	background: #fff2f5;
	color: #7d1834;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.45;
}

.fhpc-keratin-product .fhsp-moq-validation[hidden] {
	display: none !important;
}

.fhpc-keratin-product .fh-texture-picker__title {
  margin: 0 0 0.35rem;
  color: #0a174e;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
}

.fhpc-keratin-product .fh-texture-picker__title span {
  color: #e6007e;
}

.fhpc-keratin-product .fh-texture-picker__intro {
  margin: 0 0 0.85rem;
  color: #635862;
  font-size: 0.92rem;
}

.fhpc-keratin-product .fh-texture-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.fhpc-keratin-product .fh-texture-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #ded9dd;
  border-radius: 9px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fhpc-keratin-product .fh-texture-card:hover {
  border-color: #ec78ad;
  transform: translateY(-1px);
}

.fhpc-keratin-product .fh-texture-card.is-selected {
  border-color: #e6007e;
  box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.16);
}

.fhpc-keratin-product .fh-texture-card.is-selected::after {
  content: '\2713';
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e6007e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.fhpc-keratin-product .fh-texture-card__visual {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #fff;
  overflow: hidden;
}

.fhpc-keratin-product .fh-texture-card__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fhpc-keratin-product .fh-texture-card__label {
  display: block;
  min-height: 2.7em;
  padding: 0.48rem 0.25rem;
  color: #0a174e;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.fhpc-keratin-product .fh-lead-time {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
}

.fhpc-keratin-product .field-61b7c97 .fh-lead-time {
  display: block;
  margin-top: 0.22rem;
  color: #8b1743;
}

.fhpc-keratin-product .field-61b7c97 .fh-moq {
  display: block;
  margin-top: 0.14rem;
  color: #6a7484;
  font-size: 0.6rem;
  line-height: 1.1;
}

.fhpc-keratin-product .field-61b7c97 .wapf-checked .fh-lead-time {
  color: #ffd3e7;
}

.fhpc-keratin-product .field-61b7c97 .wapf-checked .fh-moq {
  color: #e4ebf5;
}

.fhpc-keratin-product .field-61b7c97 .wapf-field-label abbr.required,
.fhpc-keratin-product .field-cd39fdc .wapf-field-label abbr.required {
  border: 0;
  color: #d71920;
  text-decoration: none;
}

.fhpc-keratin-product .fh-length-prompt {
  margin: 0.3rem 0 0.75rem;
  color: #635862;
  font-size: 0.92rem;
  line-height: 1.45;
}

.fhpc-keratin-product .fh-texture-card__lead-time {
  display: block;
  margin: -0.16rem 0 0.48rem;
  color: #8b1743;
  text-align: center;
}

.fhpc-keratin-product .fh-texture-card__moq {
  display: block;
  margin: -0.16rem 0 0.48rem;
  color: #6a7484;
  font-size: 0.62rem;
  text-align: center;
}

/* Hair color selector: standard texture swatches plus structured custom codes. */
.fhpc-keratin-product .field-caba1f5 > .wapf-field-label,
.fhpc-keratin-product .field-caba1f5 > .wapf-field-input,
.fhpc-keratin-product .field-caba1f5 .wapf-description {
  display: none;
}

.fhpc-keratin-product .fh-color-picker {
  margin-top: 0.2rem;
}

.fhpc-keratin-product .fh-color-picker__title {
  margin: 0 0 0.35rem;
  color: #0a174e;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
}

.fhpc-keratin-product .fh-color-picker__title span {
  color: #d71920;
}

.fhpc-keratin-product .fh-color-picker__intro,
.fhpc-keratin-product .fh-length-prompt,
.fhpc-keratin-product .fh-texture-reference__heading {
  color: #635862;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
}

.fhpc-keratin-product .fh-color-group {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 2px solid #ddd4da;
  border-radius: 10px;
}

.fhpc-keratin-product .fh-color-group--dark {
  border-color: #8a7c84;
  background: #f7f4f5;
}

.fhpc-keratin-product .fh-color-group--light {
  border-color: #dbc5a7;
  background: #fffaf2;
}

.fhpc-keratin-product .fh-color-group h4,
.fhpc-keratin-product .fh-custom-heading {
  margin: 0 0 0.55rem;
  color: #0a174e;
  font-size: 0.95rem;
  font-weight: 600;
}

.fhpc-keratin-product .fh-color-group h4 {
  display: inline-block;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
}

.fhpc-keratin-product .fh-color-group--dark h4 {
  background: #3d3439;
  color: #fff;
}

.fhpc-keratin-product .fh-color-group--light h4 {
  background: #ead8bd;
  color: #4e3d28;
}

.fhpc-keratin-product .fh-color-group--dark .fh-color-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fhpc-keratin-product .fh-color-group--light .fh-color-grid {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.fhpc-keratin-product .fh-color-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.65rem;
}

.fhpc-keratin-product .fh-color-swatch,
.fhpc-keratin-product .fh-custom-color {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #ded9dd;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fhpc-keratin-product .fh-color-swatch:hover,
.fhpc-keratin-product .fh-custom-color:hover {
  border-color: #ec78ad;
  transform: translateY(-1px);
}

.fhpc-keratin-product .fh-color-swatch.is-selected,
.fhpc-keratin-product .fh-custom-color.is-selected {
  border-color: #e6007e;
  box-shadow: 0 0 0 2px rgba(230, 0, 126, 0.16);
}

.fhpc-keratin-product .fh-color-swatch.is-selected::after,
.fhpc-keratin-product .fh-custom-color.is-selected::after {
  content: '\2713';
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: auto;
  z-index: 3;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e6007e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.fhpc-keratin-product .fh-color-swatch__image,
.fhpc-keratin-product .fh-custom-color__visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f4f1f3;
  background-repeat: no-repeat;
}

.fhpc-keratin-product .fh-color-swatch__label,
.fhpc-keratin-product .fh-custom-color__title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.32rem 0.2rem;
  background: rgba(20, 17, 19, 0.78);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: none;
}

.fhpc-keratin-product .fh-color-swatch__lead-time,
.fhpc-keratin-product .fh-custom-color__lead-time {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  z-index: 1;
  padding: 0.22rem 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #8b1743;
}

.fhpc-keratin-product .fh-color-swatch__moq,
.fhpc-keratin-product .fh-custom-color__moq {
  position: absolute;
  left: 0.3rem;
  bottom: 0.3rem;
  z-index: 1;
  padding: 0.22rem 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #536071;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
}

.fhpc-keratin-product .fh-custom-heading {
  margin-top: 1.35rem;
}

.fhpc-keratin-product .fh-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.fhpc-keratin-product .fh-custom-color__visual {
  aspect-ratio: 2 / 1;
}

.fhpc-keratin-product .fh-custom-color--t .fh-custom-color__visual {
  background: #eee url('t-color.jpg') center / cover no-repeat;
}

.fhpc-keratin-product .fh-custom-color--p .fh-custom-color__visual {
  background: #222 url('piano-color.jpg') center / cover no-repeat;
}

.fhpc-keratin-product .fh-custom-color--tp .fh-custom-color__visual {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 52%, transparent 73%),
    #eee url('tp-color.jpg') center / cover no-repeat;
}

.fhpc-keratin-product .fh-custom-color--m .fh-custom-color__visual {
  background: #a67d55 url('m-color.jpg') center / cover no-repeat;
}

.fhpc-keratin-product .fh-custom-color--other .fh-custom-color__visual {
  background: linear-gradient(100deg, #652345, #d31b6f 30%, #7b4b9d 62%, #e2b75f);
}

.fhpc-keratin-product .fh-color-editor {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 8px;
  background: #faf7f9;
}

.fhpc-keratin-product .fh-color-editor[hidden] {
  display: none !important;
}

.fhpc-keratin-product .fh-color-editor label {
  display: block;
  margin-bottom: 0.4rem;
  color: #0a174e;
  font-weight: 600;
}

.fhpc-keratin-product .fh-color-editor .wapf-field-input {
  display: block;
}

.fhpc-keratin-product .fh-color-editor input {
  width: 100%;
}

.fhpc-keratin-product .fh-color-editor.is-standard input {
  background: #f0ecef;
  color: #473f44;
}

.fhpc-keratin-product .fh-color-editor.is-custom:not(.is-valid) {
  border: 2px solid #c42f69;
  background: #fff1f6;
  box-shadow: 0 0 0 3px rgba(196, 47, 105, 0.12);
}

.fhpc-keratin-product .fh-color-editor.is-custom:not(.is-valid) label {
  color: #a4144b;
  font-size: 1.03rem;
}

.fhpc-keratin-product .fh-color-editor.is-custom:not(.is-valid) label::before {
  content: 'Required '; 
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: #a4144b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fhpc-keratin-product .fh-color-editor.is-custom:not(.is-valid) input {
  border-color: #c42f69;
  background: #fff;
}

.fhpc-keratin-product .fh-color-editor.is-custom:not(.is-valid) .fh-color-help {
  color: #8b1743;
  font-weight: 600;
}

.fhpc-keratin-product .fh-color-editor.is-custom.is-valid {
  border: 1px solid #cbd8cf;
  background: #f7fbf8;
}

.fhpc-keratin-product .fh-color-editor.is-custom.is-valid .fh-color-help {
  color: #356e45;
}

.fhpc-keratin-product .fh-color-help {
  margin: 0.45rem 0 0;
}

.fhpc-keratin-product .field-61b7c97 .wapf-swatch,
.fhpc-keratin-product .field-cd39fdc .wapf-swatch {
  width: 100%;
  margin: 0 !important;
  box-sizing: border-box;
}

.fhpc-keratin-product .field-61b7c97 .wapf-swatch label,
.fhpc-keratin-product .field-cd39fdc .wapf-swatch label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.55rem 0.4rem;
  text-align: center;
  line-height: 1.2;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .fhpc-keratin-product .field-61b7c97 .wapf-swatch-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fhpc-keratin-product .field-cd39fdc .wapf-swatch-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fhpc-keratin-product .fh-color-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.fhpc-configurator h3 {
  margin: 0 0 0.35rem;
}

.fhpc-intro,
.fhpc-note {
  color: #635862;
}

.fhpc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-top: 1rem;
}

.fhpc-field {
  margin: 0;
}

.fhpc-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.fhpc-field select {
  width: 100%;
  min-height: 44px;
  border-color: #d8c7d2;
  border-radius: 6px;
  background: #fff;
}

.fhpc-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #eadde5;
}

.fhpc-summary span,
.fhpc-summary strong {
  display: block;
}

.fhpc-summary strong {
  margin-top: 0.2rem;
  color: #d60073;
  font-size: 1.1rem;
}

.fhpc-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
	.fhpc-keratin-product .fh-product-info-tags {
		gap: 0.42rem;
		margin-top: 0.7rem;
	}

	.fhpc-keratin-product .fh-product-info-tags__item {
		padding: 0.34rem 0.5rem;
	}
	.fhpc-keratin-product div.product .fh-product-customization {
		margin-top: 1.5rem;
		padding: 1rem;
	}

	.fhpc-keratin-product .field-61b7c97 .wapf-swatch-wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fhpc-keratin-product .field-cd39fdc .wapf-swatch-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-color-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.fhpc-keratin-product .fh-color-group--dark .fh-color-grid,
	.fhpc-keratin-product .fh-color-group--light .fh-color-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-custom-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-texture-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem;
	}

	.fhpc-keratin-product .fh-texture-reference__mapping {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-texture-reference__item {
		font-size: 0.84rem;
	}

	.fhpc-keratin-product .fh-packaging-options {
		grid-template-columns: 1fr;
		row-gap: 0.75rem;
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding-right: 0.75rem;
		padding-left: 0.75rem;
		box-sizing: border-box;
	}

	.fhpc-keratin-product .fh-packaging-options__group {
		padding: 0.85rem;
	}

	.fhpc-keratin-product .fh-packaging-options__choices {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-packaging-options__group:nth-of-type(1) .fh-packaging-options__choices,
	.fhpc-keratin-product .fh-packaging-options__group:nth-of-type(2) .fh-packaging-options__choices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-packaging-choice span {
		min-width: 0;
		font-size: 0.84rem;
	}

	.fhpc-keratin-product .fh-packaging-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fhpc-keratin-product .fh-packaging-summary__item {
		border-right: 1px solid #eadde5;
		border-bottom: 1px solid #eadde5;
	}

	.fhpc-keratin-product .fh-packaging-summary__item:nth-child(even) {
		border-right: 0;
	}

	.fhpc-keratin-product .fh-packaging-summary__item:last-child {
		grid-column: 1 / -1;
		border-right: 0;
		border-bottom: 0;
	}

	.fhpc-keratin-product .fh-pack-price {
		justify-content: center;
	}

	.fhpc-keratin-product .fh-color-swatch__label,
	.fhpc-keratin-product .fh-custom-color__title {
		font-size: 0.74rem;
	}

	/* On four-column phone grids, make the lead-time chip high contrast rather
	 * than relying on a tiny pale label over the hair photo. */
	.fhpc-keratin-product .fh-color-swatch__lead-time,
	.fhpc-keratin-product .fh-custom-color__lead-time {
		display: block;
		min-width: 2.05rem;
		padding: 0.22rem 0.28rem;
		background: #8b1743;
		color: #fff;
		font-size: 0.68rem;
		text-align: center;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
	}

	.fhpc-keratin-product .fh-color-swatch__moq,
	.fhpc-keratin-product .fh-custom-color__moq {
		padding: 0.18rem 0.24rem;
		background: rgba(255, 255, 255, 0.96);
		font-size: 0.54rem;
	}

  .fhpc-fields,
  .fhpc-summary {
    grid-template-columns: 1fr;
  }
}
