.mc-app #customerContactForm {
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  margin-top: .65rem;
}
.mc-app #customerContactForm > fieldset {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: .65rem .85rem .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem .75rem;
}
.mc-app #customerContactForm > fieldset > legend {
  padding-inline: .3rem;
  color: var(--mc-text);
  font-weight: 700;
}
.mc-app #customerContactForm > fieldset > .mc-note,
.mc-app #customerContactForm > fieldset > label:has(textarea) { grid-column: 1 / -1; }
.mc-app #customerContactForm > fieldset > .mc-note { margin: 0; }
.mc-app #customerContactForm label { min-width: 0; gap: .2rem; }
.mc-app #customerContactForm textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: .45rem .6rem;
  color: var(--mc-text);
  background: var(--mc-field);
  border: 1px solid #55729a;
  border-radius: .5rem;
  font: inherit;
  resize: vertical;
}
.mc-app .mc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}
.mc-app .mc-catalog-grid :is(h2, h3) { margin: 0; }
.mc-app .mc-catalog-grid ul { padding-inline-start: 1.25rem; overflow-wrap: anywhere; }
.mc-app .mc-catalog-grid li { margin-bottom: .4rem; }
.mc-app .mc-catalog-grid form { max-width: none; min-width: 0; margin: 0; }
@media (min-width: 67rem) {
  .mc-app #customerContactForm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-app #customerContactForm > :nth-child(n+3) { grid-column: 1 / -1; }
}
@media (max-width: 38rem) {
  .mc-app #customerContactForm > fieldset, .mc-app .mc-catalog-grid { grid-template-columns: minmax(0, 1fr); }
}


/* The shared stylesheet pins headers by default. Customer headings stay in flow. */
.mc-app .mc-main:has(#customerDetailPanel) > .mc-intro,
.mc-app #customerDetailPanel > .mc-detail-header {
  position: static;
  z-index: auto;
  background: transparent;
  border-bottom: 0;
}
.mc-app #customerDetailPanel {
  padding: clamp(1rem, 2.1vw, 1.7rem);
  scroll-margin-top: 1rem;
}
.mc-app #customerDetailPanel > .mc-detail-header {
  align-items: center;
  gap: .85rem 1.5rem;
}
.mc-app #customerDetailTitle { margin: .35rem 0 0; }
.mc-app #customerDetailMessage:empty { display: none; }
.mc-app #customerDetailPanel .mc-detail-nav {
  gap: .6rem;
  margin: max(18px, 1.15rem) 0 1rem;
}
.mc-app #customerContactSection {
  padding-top: 1.1rem;
}
.mc-app #customerContactSection > .mc-note {
  max-width: 70ch;
  margin-top: .45rem;
}
.mc-app #customerContactForm {
  gap: max(16px, 1rem);
  margin-top: 1.1rem;
  align-items: start;
}
.mc-app #customerContactForm > fieldset {
  align-content: start;
  padding: .85rem 1.05rem 1.05rem;
  gap: .85rem 1rem;
}
.mc-app #customerContactForm > fieldset > legend {
  padding-inline: .45rem;
  font-size: .95rem;
}
.mc-app #customerContactForm label {
  gap: .35rem;
  margin: 0;
}
.mc-app #customerContactForm textarea { min-height: 4.25rem; }
.mc-app #customerContactForm > fieldset > .mc-note {
  order: 1;
  padding-top: .2rem;
  font-size: .8rem;
}
.mc-app #customerContactForm > div:last-child {
  padding-top: .85rem;
  border-top: 1px solid var(--mc-border);
}
@media (min-width: 67rem) {
  .mc-app #customerContactForm > fieldset:nth-child(-n+2) { align-self: stretch; }
}
@media (max-width: 38rem) {
  .mc-app #customerContactForm > fieldset { padding-inline: .75rem; }
}

