/* Match the framed fields and rounded sections of the medal quote. */
html body :is(form, .pin-studio) :is(
  input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"], [type="color"],
            [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"]),
  select,
  textarea
):not([hidden]),
html body :is(#mc-ai-prompt, #search-input, #pqc-product, .mq-directory input) {
  border: 1px solid #c9d0d4;
  border-radius: 5px;
  padding-inline: 12px;
}

html body form :is(.lmq-option, .pq-choice, .pqc-options > label, .md-choice > span,
                   .english-file-control, .english-file-button, [data-pick-file]):not(.mgm-cta),
html body form input[type="file"]::file-selector-button {
  border-radius: 8px;
}

html body :is(.lmq-summary, .pq-summary, .md-summary, .mq-side, [data-mq-review], #mc-payment-summary) {
  border-radius: 12px;
}

.mq-stage [data-mq-review] {
  background: #f1f5f7;
  padding: 12px;
}

/* Inline configurators reuse the quote markup without becoming modal boxes. */
html body dialog:is(#product-quote, #patch-quote-dialog, #legacy-medal-quote, #pqc-dialog):not(.ml-native) {
  border-radius: 22px !important;
}

.mgm-field-error {
  display: block;
  margin-block: .35rem 0;
  color: #9a1738;
  font-size: .875rem;
  line-height: 1.4;
  text-align: start;
  overflow-wrap: anywhere;
}

html body :is(input, select, textarea, [data-pick-file])[aria-invalid="true"] {
  outline: 2px solid #9a1738;
  outline-offset: 1px;
  scroll-margin-block: 1rem;
}
