.facade-picker {
  clear: both;
  display: flow-root;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0 0 15px;
  background: #fff;
  color: #101828;
  overflow: visible !important;
}

/* On homepage inside rating section use section gray background, not white underlay */
.rating-section .facade-picker {
  background: transparent;
}

.rating-section .facade-picker__result,
.rating-section .facade-picker__result-info,
.rating-section .facade-picker__panel {
  background: transparent;
}

.facade-picker-page .page__container-full {
  padding-left: 43px;
}

.facade-picker *,
.facade-picker *::before,
.facade-picker *::after {
  box-sizing: border-box;
}

/* Protect facade picker from global rating-section span sizing */
.facade-picker span {
  width: auto;
  height: auto;
}

.facade-picker__head {
  margin-bottom: 18px;
}

.facade-picker__eyebrow {
  margin: 0 0 8px;
  color: #c8a33a;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.facade-picker__title,
.facade-picker h1,
.facade-picker h2 {
  margin: 0;
  color: #101828;
  font-family: var(--title-font, "Onest"), Onest, sans-serif;
  letter-spacing: 0;
}

.facade-picker__title {
  max-width: none;
}

.facade-picker__title-highlight {
  display: inline;
  color: inherit;
}

.facade-picker__grid {
  display: flow-root;
  margin: 0;
  margin-bottom: 0;
}

.facade-picker__grid > [class*="col-"] {
  padding-left: 0;
}

.facade-picker__grid > [class*="col-"] + [class*="col-"] {
  padding-left: 28px;
}

.facade-picker__form {
  width: 100%;
  padding: 0;
}

.facade-picker__result {
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
}

.facade-picker__panel,
.facade-picker__empty {
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  background: #fff;
}

.facade-picker__empty {
  padding: 24px;
  color: #667085;
}

.facade-picker__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.facade-picker__row--params {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facade-picker__row--material-wall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facade-picker__field {
  margin-bottom: 14px;
}

.facade-picker__field > label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
}

.facade-picker select,
.facade-picker input[type="number"] {
  width: 100%;
  height: 48px;
  border: 1px solid #d8dbe2;
  border-radius: 6px;
  background: #fff;
  color: #101828;
  padding: 0 12px;
  font-size: 16px;
  outline: none;
}

.facade-picker select:focus,
.facade-picker input[type="number"]:focus {
  border-color: #c8a33a;
  box-shadow: 0 0 0 3px rgba(200, 163, 58, 0.18);
}

.facade-picker__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facade-picker__choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.facade-picker__choice,
.facade-picker__checks label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  border: 1px solid #e3e6eb;
  border-radius: 6px;
  padding: 8px 10px;
  color: #344054;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.facade-picker__choice {
  width: 100%;
  min-height: 54px;
  flex-direction: column;
  text-align: left;
  font-family: inherit;
}

.facade-picker__choice span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.facade-picker__choice:hover,
.facade-picker__checks label:hover {
  border-color: #c8a33a;
  background: #fffaf0;
}

.facade-picker__choice.is-active,
.facade-picker__checks label:has(input:checked) {
  border-color: #c8a33a;
  background: #fff7df;
  color: #101828;
  box-shadow: 0 0 0 2px rgba(200, 163, 58, 0.16);
}

.facade-picker__choice.is-active span {
  color: #8a6a12;
}

.facade-picker__checks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.facade-picker__checks label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.2;
}

.facade-picker__preview {
  aspect-ratio: 1 / 1;
  min-height: 430px;
  background: #f5f6f8;
  overflow: hidden;
  min-width: 0;
}

.facade-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.facade-picker__preview a {
  display: block;
  width: 100%;
  height: 100%;
}

.facade-picker__result-info {
  min-width: 0;
  background: #fff;
  margin-top: 16px;
}

.facade-picker__result-info .facade-picker__result-head,
.facade-picker__result-info .facade-picker__metrics,
.facade-picker__result-info .facade-picker__actions {
  margin-left: 0;
  margin-right: 0;
}

.facade-picker__result-head,
.facade-picker__metrics,
.facade-picker__actions {
  margin: 14px 18px;
}

.facade-picker__result h2 {
  font-size: 26px;
  line-height: 1.16;
  font-weight: 900;
}

.facade-picker__result-head p:last-child {
  margin: 8px 0 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.45;
}

.facade-picker__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.facade-picker__metrics div {
  border: 1px solid #e3e6eb;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.facade-picker__metrics span {
  display: block;
  color: #19b957;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.facade-picker__metrics small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  line-height: 1.25;
}

.facade-picker__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.facade-picker__button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #202a45;
  border-radius: 6px;
  background: #202a45;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.facade-picker__button:hover {
  color: #fff;
  background: #313a54;
}

.facade-picker__button--ghost {
  border-color: #d8dbe2;
  background: #fff;
  color: #202a45;
}

.facade-picker__button--ghost:hover {
  background: #f5f6f8;
  color: #202a45;
}

@media (max-width: 767.98px) {
  .facade-picker-page .page__container-full {
    padding-left: 16px;
    padding-right: 16px;
  }

  .facade-picker {
    padding-top: 0;
  }

  .facade-picker__title {
    white-space: normal;
  }

  .facade-picker__preview {
    min-height: 0;
    max-height: 520px;
  }

  .facade-picker__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  .facade-picker__form > .facade-picker__field,
  .facade-picker__result-info {
    grid-column: 1 / -1;
  }

  .facade-picker__row--params,
  .facade-picker__row--material-wall {
    display: contents;
  }

  .facade-picker__row:not(.facade-picker__row--params):not(.facade-picker__row--material-wall),
  .facade-picker__choice-grid,
  .facade-picker__metrics,
  .facade-picker__actions {
    grid-template-columns: 1fr;
  }

  .facade-picker__result-info .facade-picker__actions {
    margin-bottom: 0;
  }

  .facade-picker__grid > [class*="col-"] + [class*="col-"] {
    padding-left: 0;
    margin-top: -10px;
  }

}
