/* Enqueued only for the five eligible door product pages. The custom theme
   does not call body_class(), so selectors use the actual form components. */
/* Door forms sit inside the theme's icon-button list. Keep text links in flow. */
form.cart .mkc-door-supply-note a,
form.cart .mkc-door-supply-note a:hover,
form.cart .mkc-door-supply-note a:focus {
  display: inline;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #934d3a;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .15em;
  white-space: normal;
  overflow-wrap: break-word;
}

form.cart .mkc-door-supply-note {
  display: block;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  line-height: 1.5;
  text-align: left;
}

form.cart .mkc-door-supply-note {
  margin: 0 0 24px;
  color: #424942;
  font-size: 15px;
}

form.cart .mkc-door-supply-note p {
  margin: 0 0 .6em;
  padding: 0;
  font: inherit;
  line-height: inherit;
}

form.cart .mkc-door-supply-note p:last-child {
  margin-bottom: 0;
}

/* This theme moves its static minimum-price list into APF's totals wrapper.
   Hide it both before and after that move, only on these door product pages. */
.product_details_info > .pro_dtl_prize,
form.cart .mkc-door-totals > .pro_dtl_prize {
  display: none !important;
}

form.cart .mkc-door-totals:not(.mkc-door-price-ready) .wapf--inner,
form.cart .mkc-door-price-prompt[hidden] {
  display: none !important;
}

form.cart .mkc-door-totals .wapf--inner {
  padding: 16px 0;
  margin: 0;
  border-top: 1px solid #deded5;
}

form.cart .mkc-door-totals .wapf--inner > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

form.cart .mkc-door-totals .wapf--inner > div > span {
  float: none;
  max-width: 100%;
}

form.cart .mkc-door-total-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #424942;
}

form.cart .mkc-door-totals .wapf-grand-total {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #252d29;
}

form.cart .mkc-door-price-prompt {
  margin: 8px 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #555e56;
}

form.cart .mkc-door-hinge-quantity {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #424942;
}

form.cart .mkc-door-hinge-quantity:empty {
  display: none;
}

/* Visible native radio choices avoid reliance on a mobile select popup.
   The hidden APF select remains the canonical submitted/priced value. */
form.cart select.mkc-door-hinge-source {
  display: none !important;
}

form.cart .mkc-door-hinge-choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

form.cart .mkc-door-hinge-choices .mkc-door-hinge-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 12px;
  margin: 0;
  border: 1px solid #b7bcb7;
  border-radius: 4px;
  background: #fff;
  color: #252d29;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

form.cart .mkc-door-hinge-choices .mkc-door-hinge-choice.is-selected {
  border-color: #934d3a;
  background: #f7f7f2;
}

form.cart .mkc-door-hinge-choices .mkc-door-hinge-choice:focus-within {
  outline: 2px solid #934d3a;
  outline-offset: 2px;
}

form.cart .mkc-door-hinge-choice input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #934d3a;
}

form.cart .mkc-door-hinge-choice span {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  font: inherit;
}
