:root {
  --mhm-navy: #082c4c;
  --mhm-blue: #075985;
  --mhm-coral: #ff6b4a;
  --mhm-ink: #13202b;
  --mhm-muted: #60717c;
  --mhm-mist: #eef5f8;
  --mhm-line: #d5e1e7;
  --mhm-white: #fff;
  --mhm-radius: 18px;
  --mhm-shadow: 0 18px 50px rgba(8, 44, 76, 0.12);
}

/* Private-seller plans and PayPal billing. */
.mhm-plan-strip {
  align-items: center;
  background: linear-gradient(135deg, #e9f8f4, #f4fbff);
  border: 1px solid #bcded5;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.25rem;
  padding: .9rem 1rem;
}

.mhm-plan-strip div,
.mhm-plan-strip strong,
.mhm-plan-strip span {
  display: block;
}

.mhm-plan-strip span {
  color: #006b52;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.mhm-plan-strip a {
  font-weight: 750;
}

.mhm-video-field video,
.mhm-vehicle-video video {
  background: #061f31;
  border-radius: 14px;
  display: block;
  max-height: 560px;
  max-width: 100%;
  width: 100%;
}

.mhm-video-field video {
  margin: .75rem 0;
  max-height: 360px;
}

.mhm-current-video-note {
  align-items: center;
  background: #edf6fa;
  border: 1px solid #b8d8e7;
  border-left: 4px solid var(--mhm-blue);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  justify-content: space-between;
  margin: .8rem 0;
  padding: .8rem 1rem;
}

.mhm-current-video-note strong {
  color: var(--mhm-navy);
}

.mhm-current-video-note span {
  color: var(--mhm-muted);
  font-size: .9rem;
}

.mhm-video-upload-progress {
  align-items: center;
  background: #eef7fb;
  border: 1px solid #b8d8e7;
  border-radius: 10px;
  display: grid;
  gap: .45rem;
  margin-top: .75rem;
  padding: .8rem 1rem;
}

.mhm-video-upload-progress[hidden] {
  display: none;
}

.mhm-video-upload-progress progress {
  accent-color: #087ca7;
  height: 12px;
  width: 100%;
}

.mhm-video-upload-progress span {
  color: #16435a;
  font-size: .9rem;
  font-weight: 700;
}

.mhm-video-upload-progress.is-error {
  background: #fff2f1;
  border-color: #e3a7a1;
}

.mhm-csv-import-progress {
  align-items: center;
  background: #eef7fb;
  border: 1px solid #b8d8e7;
  border-radius: 12px;
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.mhm-csv-import-progress[hidden] {
  display: none;
}

.mhm-csv-import-progress progress {
  accent-color: #087ca7;
  height: 14px;
  width: 100%;
}

.mhm-csv-import-progress span {
  color: #16435a;
  font-size: 0.92rem;
  font-weight: 700;
}

.mhm-csv-import-progress.is-error {
  background: #fff2f1;
  border-color: #e3a7a1;
}

.mhm-csv-import-progress.is-error progress {
  accent-color: #bd3328;
}

.mhm-confirm-dialog {
  background: transparent;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(6, 31, 53, 0.32);
  color: var(--mhm-navy);
  margin: auto;
  max-width: 460px;
  padding: 0;
  position: fixed;
  width: calc(100% - 2rem);
  z-index: 100000;
}

.mhm-confirm-dialog::backdrop {
  background: rgba(5, 27, 45, 0.68);
  backdrop-filter: blur(3px);
}

.mhm-confirm-card {
  background: var(--mhm-white);
  border: 1px solid rgba(184, 216, 231, 0.75);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 1.8rem);
  text-align: center;
}

.mhm-confirm-mark {
  align-items: center;
  background: #fff0ec;
  border-radius: 50%;
  color: #b93220;
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.mhm-confirm-card h2 {
  color: var(--mhm-navy);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  margin: 0.8rem 0 0.45rem;
}

.mhm-confirm-card p {
  color: var(--mhm-muted);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 38ch;
}

.mhm-confirm-actions {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.mhm-confirm-actions button {
  border: 1px solid #b9cbd4;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 46px;
  padding: 0.65rem 1rem;
}

.mhm-confirm-cancel {
  background: #f4f8fa;
  color: var(--mhm-navy);
}

.mhm-confirm-continue {
  background: var(--mhm-coral);
  border-color: var(--mhm-coral) !important;
  color: var(--mhm-navy);
}

.mhm-confirm-continue.is-danger {
  background: #b93220;
  border-color: #b93220 !important;
  color: #fff;
}

.mhm-confirm-actions button:hover,
.mhm-confirm-actions button:focus-visible {
  box-shadow: 0 7px 20px rgba(8, 44, 76, 0.16);
  transform: translateY(-1px);
}

.mhm-video-upload-progress.is-error span {
  color: #8a1f17;
}

.mhm-vehicle-video {
  margin: 1.5rem 0;
}

.mhm-billing-intro {
  margin-bottom: 1.25rem;
}

.mhm-subscription-status {
  background: #eef7fb;
  border-left: 4px solid #087ca7;
  border-radius: 8px;
  padding: .8rem 1rem;
}

.mhm-plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhm-plan-grid--dealer {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mhm-plan-card {
  background: #fff;
  border: 1px solid #d9e2e7;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(9, 45, 65, .07);
  padding: 1.35rem;
}

.mhm-plan-card--plus {
  background: linear-gradient(155deg, #073e5d, #006b67);
  border-color: #006b67;
  color: #fff;
}

.mhm-plan-card--bulk {
  border-color: #ff6a4d;
  box-shadow: 0 14px 32px rgba(255, 106, 77, .14);
  overflow-wrap: anywhere;
}

.mhm-plan-card--bulk .mhm-plan-price strong {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

@media (max-width: 1020px) and (min-width: 761px) {
  .mhm-plan-grid--dealer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mhm-plan-card.is-current {
  box-shadow: 0 0 0 3px rgba(255, 106, 77, .2), 0 14px 32px rgba(9, 45, 65, .12);
}

.mhm-plan-card-head {
  align-items: flex-start;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.mhm-plan-card-head h3,
.mhm-plan-card-head p {
  margin: 0;
}

.mhm-plan-card-head > span,
.mhm-plan-current-label,
.mhm-plan-unavailable {
  background: #e6f7f1;
  border-radius: 999px;
  color: #006b52;
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  padding: .4rem .7rem;
}

.mhm-plan-card--plus .mhm-kicker,
.mhm-plan-card--plus h3,
.mhm-plan-card--plus li {
  color: #fff;
}

.mhm-plan-card--plus .mhm-plan-card-head > span {
  background: #ff6a4d;
  color: #112f40;
}

.mhm-plan-price {
  margin: 1.2rem 0;
}

.mhm-plan-price strong {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.mhm-plan-card ul {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.mhm-paypal-button {
  background: #ffc439;
  border-color: #ffc439;
  color: #102a3a;
  font-weight: 850;
}

.mhm-plan-card--plus .mhm-danger-button {
  background: #fff;
  border-color: #fff;
}

.mhm-plan-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.mhm-plan-actions .mhm-danger-button {
  margin-top: 0;
}

.mhm-billing-note {
  color: #526b78;
  font-size: .88rem;
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .mhm-plan-grid {
    grid-template-columns: 1fr;
  }

  .mhm-plan-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mhm-plan-actions > a {
    box-sizing: border-box;
    justify-content: center;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  .mhm-plan-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }
}

/* Public private-seller and dealer package pages. */
.mhm-package-page-body .mh-standard-page {
  box-sizing: border-box;
  margin-inline: auto !important;
  max-width: none !important;
  width: 100% !important;
}

.mhm-package-page-body .mh-standard-page > .wp-block-post-title,
.mhm-package-page-body .mh-standard-page > .wp-block-post-content {
  box-sizing: border-box;
  margin-inline: auto !important;
  max-width: var(--wp--style--global--wide-size, 1200px) !important;
  width: 100% !important;
}

.mhm-package-page {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--wp--style--global--wide-size, 1200px) !important;
  min-width: 0;
  width: 100%;
}

.mhm-package-page-intro {
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.mhm-package-page-intro h2,
.mhm-package-page-intro p {
  margin-block-start: 0;
}

.mhm-package-page .mhm-plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mhm-package-page .mhm-plan-card > .mhm-button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 760px) {
  .mhm-package-page-body .mh-standard-page > .wp-block-post-title,
  .mhm-package-page-body .mh-standard-page > .wp-block-post-content,
  .mhm-package-page {
    max-width: 100% !important;
    min-width: 0;
    width: 100% !important;
  }

  .mhm-package-page .mhm-plan-card > .mhm-button {
    align-self: stretch;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
  }
}

.mhm-panel,
.mhm-search-form,
.mhm-enquiry {
  background: var(--mhm-white);
  border: 1px solid var(--mhm-line);
  border-radius: var(--mhm-radius);
  box-shadow: 0 8px 28px rgba(8, 44, 76, 0.08);
  color: var(--mhm-ink);
  margin: 1.5rem 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.mhm-honeypot {
  height: 1px !important;
  left: -10000px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
}

.mhm-panel h2,
.mhm-enquiry h2,
.mhm-dashboard-header h2 {
  color: var(--mhm-navy);
  margin-top: 0;
}

.mhm-kicker {
  color: var(--mhm-coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.mhm-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhm-form-grid--search {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mhm-location-search { grid-column: span 2; }
.mhm-location-search-row { align-items: stretch; display: flex; gap: .5rem; }
.mhm-location-search-row input { min-width: 0; }
.mhm-location-search-row button {
  background: #e7f8f3;
  border: 1px solid #8acdbb;
  border-radius: 9px;
  color: #006b52;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 800;
  padding: .65rem .8rem;
  white-space: nowrap;
}
.mhm-location-search-row button:hover { background: #d7f1e9; }
.mhm-location-search-row button:disabled { cursor: wait; opacity: .65; }
.mhm-location-search > small { color: var(--mhm-muted); font-size: .74rem; font-weight: 500; line-height: 1.35; }
.mhm-distance-badge {
  background: #e7f8f3;
  border-radius: 999px;
  color: #006b52;
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  margin: .15rem .75rem .6rem 0;
  padding: .38rem .65rem;
}

.mhm-form-grid label,
.mhm-panel > form > label,
.mhm-account-grid form > label {
  display: block;
}

.mhm-form-grid label > span,
.mhm-panel form label > span,
.mhm-account-grid form label > span {
  color: #42535e;
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
}

.mhm-form-grid input,
.mhm-form-grid select,
.mhm-form-grid textarea,
.mhm-panel form > label input,
.mhm-account-grid form > label input,
.mhm-account-grid form select {
  background: #f8fbfc;
  border: 1px solid #bdccd4;
  border-radius: 10px;
  color: var(--mhm-ink);
  font: inherit;
  min-height: 50px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.mhm-form-grid textarea {
  resize: vertical;
}

.mhm-form-grid input:focus,
.mhm-form-grid select:focus,
.mhm-form-grid textarea:focus,
.mhm-panel input:focus {
  border-color: var(--mhm-blue);
  box-shadow: 0 0 0 3px rgba(7, 89, 133, 0.15);
  outline: 0;
}

.mhm-span-2 {
  grid-column: span 2;
}

.mhm-listing-form fieldset {
  border: 0;
  border-top: 1px solid var(--mhm-line);
  margin: 2rem 0 0;
  padding: 2rem 0 0;
}

.mhm-check-group { margin-top: 1.25rem; }
.mhm-check-group h3 { font-size: 1rem; margin: 0 0 .75rem; }
.mhm-checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem 1rem; }
.mhm-checkbox-grid label { align-items: center; display: flex; font-weight: 500; gap: .5rem; }
.mhm-checkbox-grid input { flex: 0 0 auto; height: 1.1rem; width: 1.1rem; }
.mhm-search-options { border-top: 1px solid #dbe3e8; margin-top: 1.25rem; padding-top: 1rem; }
.mhm-search-options summary { color: #073b4c; cursor: pointer; font-weight: 800; }
.mhm-custom-model[hidden] { display: none !important; }
.mh-account-link--user { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-account-link--user span { color: #13b58c; font-size: .7em; margin-right: .25rem; }
.mh-account-link--user { align-items: center; display: inline-flex; gap: .45rem; }
.mh-account-link--user .mh-account-avatar { border-radius: 50%; height: 28px; object-fit: cover; width: 28px; }
.mh-account-link--user .mh-account-name { color: inherit; font-size: inherit; margin: 0; overflow: hidden; text-overflow: ellipsis; }
.mhm-equipment { margin: 2rem 0; }
.mhm-equipment ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem 1.25rem; list-style: none; padding: 0; }
.mhm-equipment li::before { color: #00a67e; content: '\2713'; font-weight: 900; margin-right: .5rem; }

@media (max-width: 760px) {
	.mhm-checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
	.mhm-checkbox-grid { grid-template-columns: 1fr; }
}

/* Vehicle slideshow and full-screen viewer. */
.mh-single-vehicle .mh-detail-image { display: none; }
.mhm-slideshow { margin: 1.5rem 0 2rem; }
.mhm-slide-stage { background: #071b26; border-radius: 18px; box-shadow: 0 12px 35px rgba(8,44,76,.18); overflow: hidden; position: relative; }
.mhm-slide-main { aspect-ratio: 4 / 3; cursor: zoom-in; display: block; height: auto; object-fit: contain; width: 100%; }
.mhm-slide-arrow,.mhm-fullscreen-prev,.mhm-fullscreen-next { align-items: center; background: rgba(5,20,29,.76); border: 1px solid rgba(255,255,255,.55); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 2.2rem; height: 46px; justify-content: center; line-height: 1; padding: 0 0 4px; position: absolute; top: 50%; transform: translateY(-50%); width: 46px; z-index: 3; }
.mhm-slide-prev,.mhm-fullscreen-prev { left: 14px; }
.mhm-slide-next,.mhm-fullscreen-next { right: 14px; }
.mhm-slide-arrow:hover,.mhm-fullscreen-prev:hover,.mhm-fullscreen-next:hover { background: #006b52; }
.mhm-fullscreen-button { align-items: center; background: rgba(5,20,29,.78); border: 1px solid rgba(255,255,255,.55); border-radius: 999px; bottom: 14px; color: #fff; cursor: pointer; display: flex; font-weight: 750; gap: .4rem; padding: .6rem .85rem; position: absolute; right: 14px; z-index: 3; }
.mhm-slide-counter,.mhm-fullscreen-counter { background: rgba(5,20,29,.78); border-radius: 999px; bottom: 14px; color: #fff; font-weight: 750; left: 14px; padding: .5rem .75rem; position: absolute; z-index: 3; }
.mhm-slide-thumbs { display: flex; gap: .65rem; margin-top: .75rem; overflow-x: auto; padding: .2rem .1rem .65rem; scrollbar-width: thin; }
.mhm-slide-thumbs button { background: #fff; border: 3px solid transparent; border-radius: 10px; cursor: pointer; flex: 0 0 92px; height: 70px; overflow: hidden; padding: 0; }
.mhm-slide-thumbs button[aria-selected="true"] { border-color: #00a67e; box-shadow: 0 0 0 2px rgba(0,166,126,.18); }
.mhm-slide-thumbs img { height: 100%; object-fit: cover; width: 100%; }
.mhm-slideshow[data-count="1"] .mhm-slide-arrow,.mhm-slideshow[data-count="1"] .mhm-fullscreen-prev,.mhm-slideshow[data-count="1"] .mhm-fullscreen-next { display: none; }
.mhm-fullscreen-viewer { background: #03090d; border: 0; height: 100vh; inset: 0; margin: 0; max-height: none; max-width: none; padding: 0; position: fixed; width: 100vw; }
.mhm-fullscreen-viewer::backdrop { background: rgba(0,0,0,.96); }
.mhm-fullscreen-viewer[open] { align-items: center; display: flex; justify-content: center; }
.mhm-fullscreen-viewer img { height: 100%; max-height: 100vh; max-width: 100vw; object-fit: contain; width: 100%; }
.mhm-fullscreen-close { align-items: center; background: rgba(5,20,29,.82); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; cursor: pointer; display: flex; font-size: 2rem; height: 48px; justify-content: center; line-height: 1; padding: 0 0 4px; position: absolute; right: 18px; top: 18px; width: 48px; z-index: 5; }

@media (max-width: 600px) {
  .mhm-slide-arrow { height: 40px; width: 40px; }
  .mhm-slide-prev { left: 8px; }
  .mhm-slide-next { right: 8px; }
  .mhm-fullscreen-button { bottom: 10px; font-size: .82rem; right: 10px; }
  .mhm-slide-counter { bottom: 10px; left: 10px; }
  .mhm-slide-thumbs button { flex-basis: 76px; height: 58px; }
}

.mhm-listing-form legend {
  color: var(--mhm-navy);
  font-size: 1.25rem;
  font-weight: 800;
  padding-right: 0.8rem;
}

.mhm-button,
.mhm-panel .mhm-button,
.mhm-enquiry .mhm-button {
  align-items: center;
  background: var(--mhm-coral);
  border: 0;
  border-radius: 999px;
  color: var(--mhm-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
}

.mhm-button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.mhm-listing-form .mhm-button:disabled {
  cursor: wait;
  opacity: .65;
}

.mhm-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
}

.mhm-consent {
  align-items: flex-start;
  display: flex !important;
  gap: 0.55rem;
  margin-top: 1rem;
}

.mhm-consent input {
  flex: 0 0 auto;
  height: 18px !important;
  margin-top: 0.25rem;
  min-height: 0 !important;
  width: 18px !important;
}

.mhm-upload {
  background: var(--mhm-mist);
  border: 2px dashed #9bb2be;
  border-radius: 14px;
  cursor: pointer;
  display: block;
  padding: 1.5rem;
  text-align: center;
}

.mhm-upload input {
  display: block;
  margin: 0.75rem auto 0;
  max-width: 440px;
}

.mhm-main-image-heading {
  color: var(--mhm-navy);
  font-weight: 800;
  margin: 1.25rem 0 0.75rem;
}

.mhm-main-image-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  margin: 0 0 1rem;
}

.mhm-main-image-grid--new {
  margin-top: 1rem;
}

.mhm-main-image-card {
  background: #fff;
  border: 2px solid #c8d5dc;
  border-radius: 13px;
  cursor: pointer;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0.45rem;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.mhm-main-image-card:hover {
  border-color: var(--mhm-blue);
  transform: translateY(-1px);
}

.mhm-main-image-card.is-main {
  border-color: var(--mhm-orange);
  box-shadow: 0 0 0 3px rgba(255, 98, 52, .16);
}

.mhm-main-image-card > input[type="radio"] {
  accent-color: var(--mhm-orange);
  height: 20px;
  left: 0.75rem;
  margin: 0;
  min-height: 0;
  position: absolute;
  top: 0.75rem;
  width: 20px;
  z-index: 2;
}

.mhm-main-image-visual {
  aspect-ratio: 4 / 3;
  background: var(--mhm-mist);
  border-radius: 9px;
  display: block !important;
  overflow: hidden;
}

.mhm-main-image-visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mhm-main-image-label {
  color: var(--mhm-blue) !important;
  display: block;
  font-size: .78rem !important;
  font-weight: 850 !important;
  padding: .55rem .3rem .2rem;
  text-align: center;
}

.mhm-main-image-card.is-main .mhm-main-image-label {
  color: #a93616 !important;
}

.mhm-main-image-card small {
  color: #667782;
  display: block;
  overflow: hidden;
  padding: 0 .3rem .3rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mhm-main-image-help,
.mhm-main-image-limit {
  background: #edf6fa;
  border-left: 4px solid var(--mhm-blue);
  border-radius: 8px;
  color: #264958;
  margin: 1rem 0 0;
  padding: .8rem 1rem;
}

.mhm-main-image-help.is-error {
  background: #fff0ed;
  border-left-color: #c63d24;
  color: #8a2c1b;
  font-weight: 750;
}

.mhm-notice {
  border: 1px solid;
  border-radius: 12px;
  font-weight: 700;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
}

.mhm-notice--success {
  background: #e5f7ed;
  border-color: #79c899;
  color: #175a32;
}

.mhm-notice--error {
  background: #fff0ed;
  border-color: #f3a08d;
  color: #8a2c1b;
}

.mhm-notice--info {
  background: #eaf4f8;
  border-color: #9fc8d9;
  color: #164e68;
}

.mhm-account-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhm-account-page .mh-standard-page {
  box-sizing: border-box;
  max-width: none !important;
  min-height: 0;
  padding: 0.3rem 1.25rem;
  width: 100%;
}

.mhm-account-page .mh-standard-page > .wp-block-post-title {
  display: none;
}

.mhm-account-page .wp-block-post-content {
  max-width: 1160px !important;
  margin-block-start: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

.mhm-sell-page .mh-standard-page {
  box-sizing: border-box;
  max-width: none !important;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
}

.mhm-sell-page .mh-standard-page > .wp-block-post-title,
.mhm-sell-page .wp-block-post-content {
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
}

.mhm-sell-page .wp-block-post-content {
  overflow: visible;
}

.mhm-search-shell {
  left: auto;
  margin: 1.5rem auto 2.5rem !important;
  max-width: 1180px !important;
  position: relative;
  transform: none;
  width: 100%;
}

.mhm-search-shell .mhm-search-form {
  margin: 0;
  width: 100%;
}

.mhm-auth-shell {
  background:
    radial-gradient(circle at 5% 8%, rgba(255, 107, 74, 0.34), transparent 24rem),
    linear-gradient(145deg, #061f35, var(--mhm-blue));
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(8, 44, 76, 0.2);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  grid-template-columns: minmax(240px, 0.72fr) minmax(560px, 1.5fr);
  left: auto;
  margin: 0 auto !important;
  max-width: none !important;
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.5rem);
  position: relative;
  transform: none;
  width: 100%;
}

.mhm-vehicle-archive-page .mh-vehicle-archive,
.mh-vehicle-archive {
  box-sizing: border-box;
  max-width: none !important;
  width: 100%;
}

.mhm-vehicle-archive-page .mh-vehicle-archive > *,
.mh-vehicle-archive > * {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
  width: 100%;
}

.mhm-auth-shell::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 430px;
  position: absolute;
  right: -180px;
  top: -220px;
  width: 430px;
}

.mhm-auth-intro {
  align-self: center;
  color: var(--mhm-white);
  margin: 0;
  max-width: 390px;
  position: relative;
  text-align: left;
  z-index: 1;
}

.mhm-auth-intro h1 {
  color: var(--mhm-white);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0.35rem 0 0.75rem;
  max-width: 11ch;
}

.mhm-auth-intro > p:not(.mhm-kicker) {
  color: #d6e7ef;
  font-size: 0.98rem;
  margin: 0;
  max-width: 35ch;
}

.mhm-auth-intro ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 1.15rem 0;
  padding: 0;
}

.mhm-auth-intro li {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.mhm-auth-intro li span {
  align-items: center;
  background: var(--mhm-coral);
  border-radius: 50%;
  color: var(--mhm-ink);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.mhm-auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-start;
}

.mhm-auth-trust strong {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
}

.mhm-admin-login {
  color: #c7dce6 !important;
  display: inline-block;
  font-size: 0.76rem;
  margin-top: 1rem;
  opacity: 0.75;
}

.mhm-auth-workspace {
  align-self: center;
  background: var(--mhm-white);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 15, 30, 0.2);
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mhm-auth-tabs {
  background: #edf4f7;
  border-radius: 14px;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0.65rem 0.65rem 0;
  padding: 0.3rem;
}

.mhm-auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 11px;
  color: var(--mhm-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 42px;
  padding: 0.55rem 1rem;
}

.mhm-auth-tabs button[aria-selected="true"] {
  background: var(--mhm-white);
  box-shadow: 0 3px 12px rgba(8, 44, 76, 0.1);
  color: var(--mhm-navy);
}

.mhm-auth-view[hidden] {
  display: none !important;
}

.mhm-auth-workspace .mhm-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

.mhm-auth-card {
  align-self: start;
}

.mhm-auth-heading {
  margin-bottom: 1rem;
}

.mhm-auth-heading h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 0;
}

.mhm-auth-heading > p:last-child {
  color: var(--mhm-muted);
  font-size: 0.86rem;
  margin: 0.25rem 0 0;
}

.mhm-auth-step {
  color: var(--mhm-muted);
  font-size: 0.82rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.mhm-auth-options {
  align-items: center;
  display: flex;
  font-size: 0.86rem;
  justify-content: space-between;
  margin: 0.85rem 0 1rem;
}

.mhm-auth-options .mhm-consent {
  margin: 0;
}

.mhm-button--wide {
  width: 100%;
}

.mhm-password-wrap {
  color: inherit !important;
  display: block;
  font-size: inherit !important;
  font-weight: inherit !important;
  margin: 0 !important;
  position: relative;
}

.mhm-password-wrap input {
  padding-right: 4.2rem !important;
}

.mhm-password-toggle {
  background: transparent;
  border: 0;
  color: var(--mhm-blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.45rem;
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
}

.mhm-auth-form > label,
.mhm-register-fields > label {
  display: block;
  margin: 0;
  min-width: 0;
}

.mhm-auth-form > label + label {
  margin-top: 0.8rem;
}

.mhm-auth-form label > span:first-child:not(.mhm-password-wrap) {
  color: #42535e;
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  margin: 0 0 0.28rem;
}

.mhm-auth-form label input,
.mhm-auth-form label select {
  background: #f8fbfc;
  border: 1px solid #bdccd4;
  border-radius: 9px;
  color: var(--mhm-ink);
  font: inherit;
  min-height: 46px;
  padding: 0.62rem 0.75rem;
  width: 100%;
}

.mhm-register-fields {
  display: grid;
  gap: 0.72rem 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhm-auth-register-actions {
  align-items: center;
  border-top: 1px solid var(--mhm-line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
}

.mhm-auth-register-actions .mhm-consent {
  font-size: 0.8rem;
  margin: 0;
}

.mhm-auth-register-actions .mhm-button {
  flex: 0 0 auto;
  min-height: 44px;
}

.mhm-auth-single {
  left: 50%;
  margin: 2rem 0;
  max-width: 620px;
  position: relative;
  transform: translateX(-50%);
  width: min(620px, calc(100vw - 2rem));
}

.mhm-auth-single .mhm-panel {
  background: linear-gradient(150deg, #fff, #f3fafc);
  box-shadow: var(--mhm-shadow);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.mhm-auth-single form label {
  display: block;
  margin-bottom: 1rem;
}

.mhm-auth-back {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 750;
  margin-bottom: 1.5rem;
}

.mhm-password-hint {
  color: var(--mhm-muted);
  font-size: 0.82rem;
}

.mhm-account-grid .mhm-panel {
  margin: 0;
}

.mhm-account-grid form > label {
  margin-bottom: 1rem;
}

@media (min-width: 861px) and (max-height: 800px) {
  .mhm-auth-intro ul {
    margin-block: 0.9rem;
  }

  .mhm-auth-trust {
    display: none;
  }
}

@media (max-width: 860px) {
  .mhm-auth-shell {
    grid-template-columns: 1fr;
  }

  .mhm-auth-intro {
    max-width: none;
  }

  .mhm-auth-intro h1 {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
    max-width: none;
  }

  .mhm-auth-intro ul,
  .mhm-auth-trust {
    display: none;
  }
}

.mhm-dashboard-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mhm-dashboard-list {
  display: grid;
  gap: 1rem;
}

.mhm-dashboard-item {
  align-items: center;
  background: var(--mhm-white);
  border: 1px solid var(--mhm-line);
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: 150px 1fr auto;
  overflow: hidden;
  padding: 0.8rem;
}

.mhm-dashboard-item h3,
.mhm-dashboard-item p {
  margin: 0.25rem 0;
}

.mhm-dashboard-thumb {
  background: var(--mhm-mist);
  border-radius: 10px;
  height: 100px;
  overflow: hidden;
}

.mhm-dashboard-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mhm-status {
  background: #e9eef1;
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
}

.mhm-status--publish {
  background: #dff5e7;
  color: #176132;
}

.mhm-status--pending {
  background: #fff1cc;
  color: #785500;
}

.mhm-status--expired {
  background: #ffe6e1;
  color: #9f2d1d;
}

.mhm-dashboard-item--expired {
  border-color: #e5a79b;
}

.mhm-dashboard-advert-main {
  min-width: 0;
}

.mhm-advert-life {
  background: #f3f7f8;
  border-radius: 9px;
  display: grid;
  gap: 0.28rem;
  margin-top: 0.7rem;
  max-width: 560px;
  padding: 0.65rem 0.75rem;
}

.mhm-advert-life strong {
  color: #173f4c;
  font-size: 0.88rem;
}

.mhm-advert-life small {
  color: #63777f;
  line-height: 1.35;
}

.mhm-advert-life--pending {
  background: #fff8e5;
}

.mhm-advert-life--expired {
  background: #fff2ef;
}

.mhm-advert-life--expired strong {
  color: #9f2d1d;
}

.mhm-advert-life-bar {
  background: #d8e2e5;
  border-radius: 999px;
  height: 7px;
  margin-top: 0.25rem;
  overflow: hidden;
}

.mhm-advert-life-bar span {
  background: linear-gradient(90deg,#00a67e,#12c79a);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.mhm-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.mhm-dashboard-actions > a {
  align-items: center;
  background: #fff;
  border: 1px solid #a9c0ca;
  border-radius: 999px;
  color: var(--mhm-navy) !important;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 850;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  padding: 0.62rem 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.mhm-dashboard-actions > a:hover,
.mhm-dashboard-actions > a:focus-visible {
  background: #edf7fa;
  border-color: var(--mhm-blue);
  box-shadow: 0 6px 18px rgba(8, 44, 76, 0.12);
  transform: translateY(-1px);
}

.mhm-resubmit-button {
  background: #006b52;
  border-color: #006b52 !important;
  border-radius: 999px;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 800;
  padding: .45rem .7rem;
  text-decoration: none;
}

.mhm-resubmit-button:hover {
  background: #00513e;
}

.mhm-dashboard-actions > .mhm-resubmit-button {
  background: #006b52;
  border-color: #006b52 !important;
  color: #fff !important;
}

.mhm-dashboard-actions > .mhm-resubmit-button:hover,
.mhm-dashboard-actions > .mhm-resubmit-button:focus-visible {
  background: #00513e;
  border-color: #00513e !important;
}

.mhm-dashboard-actions > .mhm-paypal-button {
  background: #ffc439;
  border-color: #ffc439 !important;
  color: #102a3a !important;
}

.mhm-danger {
  background: #b93220 !important;
  border-color: #b93220 !important;
  color: #fff !important;
}

.mhm-dashboard-actions > .mhm-danger:hover,
.mhm-dashboard-actions > .mhm-danger:focus-visible {
  background: #982719 !important;
  border-color: #982719 !important;
}
.mhm-dashboard-sub-actions { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.mhm-danger-button { background: #fff4f1; border: 1px solid #e5a79b; border-radius: 999px; color: #a52d1b !important; display: inline-flex; font-size: .86rem; font-weight: 800; margin-top: .75rem; padding: .5rem .75rem; text-decoration: none; }
.mhm-danger-button:hover { background: #ffe5df; }
.mhm-dashboard-sub-actions .mhm-danger-button { margin-top: 0; }
.mhm-danger-button--solid { background: #b93220; border-color: #b93220; color: #fff !important; }
.mhm-danger-button--solid:hover,
.mhm-danger-button--solid:focus-visible { background: #982719; border-color: #982719; box-shadow: 0 6px 18px rgba(152,39,25,.2); }
.mhm-remove-saved { border-color: #e5a79b; color: #a52d1b; }

.mhm-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mhm-dealer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mhm-dealer-card {
  align-items: center;
  background: var(--mhm-white);
  border: 1px solid var(--mhm-line);
  border-radius: var(--mhm-radius);
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}

.mhm-dealer-card h2,
.mhm-dealer-card p {
  margin: 0.2rem 0;
}

.mhm-dealer-avatar img {
  border-radius: 50%;
  display: block;
}

.mhm-seller-enquiries {
  margin-top: 3rem;
}

.mhm-enquiry-list {
  display: grid;
  gap: 0.75rem;
}

.mhm-enquiry-list article {
  background: var(--mhm-white);
  border: 1px solid var(--mhm-line);
  border-radius: 12px;
  padding: 1rem;
}

.mhm-enquiry-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  justify-content: space-between;
}

.mhm-enquiry-list p {
  margin: 0.7rem 0;
}

.mhm-enquiry-list span,
.mhm-enquiry-list small {
  color: var(--mhm-muted);
}

.mhm-listing-card {
  background: var(--mhm-white);
  border: 1px solid var(--mhm-line);
  border-radius: var(--mhm-radius);
  overflow: hidden;
  position: relative;
}

.mhm-listing-card > a:first-child {
  color: var(--mhm-ink);
  display: block;
}

.mhm-listing-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.mhm-listing-card > a > div {
  padding: 1rem;
}

.mhm-listing-card h3,
.mhm-listing-card p {
  margin: 0.35rem 0;
}

.mhm-listing-card .mhm-save-button {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
}

.mhm-vehicle-summary {
  align-items: center;
  background: var(--mhm-mist);
  border: 1px solid var(--mhm-line);
  border-radius: var(--mhm-radius);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.mhm-vehicle-summary p {
  margin: 0;
}

.mhm-vehicle-summary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.mhm-view-count {
  align-items: center;
  background: #fff;
  border: 1px solid var(--mhm-line);
  border-radius: 999px;
  color: #36535e;
  display: inline-flex;
  font-size: .84rem;
  font-weight: 800;
  gap: .35rem;
  line-height: 1;
  padding: .48rem .7rem;
  white-space: nowrap;
}

.mhm-dashboard-advert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .55rem !important;
}

.mhm-price {
  color: var(--mhm-navy);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 850;
  line-height: 1.1;
}

.mhm-save-button {
  align-items: center;
  background: var(--mhm-white);
  border: 1px solid #9eb4bf;
  border-radius: 999px;
  color: var(--mhm-navy);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.3rem;
  padding: 0.55rem 0.8rem;
}

.mhm-save-button.is-saved {
  border-color: var(--mhm-coral);
  color: #b7351b;
}

.mhm-save-button > span:first-child {
  font-size: 1.25rem;
}
.mhm-save-button .mhm-save-label { font-size: inherit; }
.mhm-save-button.is-loading { opacity: .6; pointer-events: none; }
.mh-vehicle-card .mhm-save-button { margin: .4rem 1rem 1rem; position: relative; z-index: 2; }

.mhm-spec-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0 2rem;
}

.mhm-spec-grid > div {
  border-bottom: 1px solid var(--mhm-line);
  padding: 0.7rem 0;
}

.mhm-spec-grid dt {
  color: var(--mhm-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.mhm-spec-grid dd {
  color: var(--mhm-ink);
  font-weight: 750;
  margin: 0.2rem 0 0;
}

.mhm-enquiry {
  margin-top: 2.5rem;
}

/* Single-advert email, QR and print tools. */
.mhm-advert-tools {
  border-top: 1px solid var(--mhm-line);
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  scroll-margin-top: 2rem;
}

.mhm-advert-tools h3 {
  color: var(--mhm-navy);
  font-size: 1.05rem;
  margin: 0 0 .85rem;
}

.mhm-advert-tools .mhm-notice {
  font-size: .82rem;
  margin: 0 0 .8rem;
  padding: .7rem .8rem;
}

.mhm-advert-tool-list {
  display: grid;
  gap: .55rem;
}

.mhm-advert-action {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdbe0;
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--mhm-navy);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  gap: .65rem;
  min-height: 44px;
  padding: .65rem .75rem;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.mhm-advert-action > span:first-child {
  align-items: center;
  background: #e7f8f3;
  border-radius: 50%;
  color: #006b52;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
}

.mhm-advert-action:hover,
.mhm-advert-action:focus-visible {
  background: #f3fbf8;
  border-color: #00a67e;
  color: #005b46;
}

.mhm-advert-qr {
  background: #f5f8fa;
  border-radius: 12px;
  margin-top: .75rem;
  padding: .85rem;
  text-align: center;
}

.mhm-advert-qr[hidden] { display: none !important; }
.mhm-advert-qr img { background: #fff; display: block; height: auto; margin: 0 auto; max-width: 100%; width: 220px; }
.mhm-advert-qr p { color: var(--mhm-muted); font-size: .78rem; line-height: 1.45; margin: .7rem 0 0; }

.mhm-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 2rem;
}

.mhm-gallery a {
  border-radius: 12px;
  display: block;
  overflow: hidden;
}

.mhm-gallery img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
  width: 100%;
}

.mhm-gallery a:hover img {
  transform: scale(1.025);
}

.mhm-valuation {
  background: linear-gradient(135deg, #f0fafb, #fff);
}

/* DVLA vehicle lookup and advertised-price guide. */
.mhm-vehicle-lookup { background: linear-gradient(145deg,#f0fafb 0,#fff 45%,#f7fafb 100%); margin: 1.5rem auto 3rem; max-width: 1080px; padding: clamp(1.25rem,4vw,3rem); }
.mhm-lookup-intro { align-items: flex-start; display: flex; gap: 2rem; justify-content: space-between; }
.mhm-lookup-intro h1 { color: #073b4c; font-size: clamp(2rem,5vw,3.4rem); line-height: 1.03; margin: .2rem 0 .8rem; }
.mhm-lookup-intro > div { max-width: 720px; }
.mhm-lookup-switch { color: #006b52; flex: 0 0 auto; font-weight: 800; margin-top: .4rem; }
.mhm-lookup-form { background: #073b4c; border-radius: 18px; box-shadow: 0 15px 35px rgba(7,59,76,.16); color: #fff; margin-top: 1.6rem; padding: clamp(1.1rem,3vw,1.75rem); }
.mhm-lookup-fields { align-items: end; display: grid; gap: .9rem; grid-template-columns: minmax(210px,1.25fr) minmax(190px,1fr) auto; }
.mhm-lookup-fields--check { grid-template-columns: minmax(220px,1fr) auto; max-width: 650px; }
.mhm-lookup-fields label { display: grid; gap: .4rem; }
.mhm-lookup-fields label > span { color: #fff; font-size: .82rem; font-weight: 800; }
.mhm-lookup-fields input { background: #fff; border: 2px solid transparent; border-radius: 9px; color: #102f39; font-size: 1.05rem; min-height: 52px; padding: .75rem .9rem; }
.mhm-lookup-fields input[name="registration"] { font-size: 1.25rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.mhm-lookup-fields input:focus { border-color: #82f0d4; outline: 3px solid rgba(130,240,212,.25); }
.mhm-lookup-fields .mhm-button { min-height: 52px; white-space: nowrap; }
.mhm-lookup-fields .mhm-button:disabled { cursor: wait; opacity: .7; }
.mhm-lookup-privacy { color: #cfe4ea; font-size: .78rem; margin: .8rem 0 0; }
.mhm-lookup-status { border-radius: 10px; font-weight: 750; margin-top: 1rem; min-height: 0; }
.mhm-lookup-status:not(:empty) { padding: .8rem 1rem; }
.mhm-lookup-status.is-loading { background: #e8f5f8; color: #075985; }
.mhm-lookup-status.is-success { background: #e7f8f3; color: #006b52; }
.mhm-lookup-status.is-error { background: #fff0f0; color: #9f1c1c; }
.mhm-lookup-results { background: #fff; border: 1px solid #dbe3e8; border-radius: 18px; box-shadow: 0 12px 30px rgba(7,59,76,.09); margin-top: 1.25rem; overflow: hidden; scroll-margin-top: 2rem; }
.mhm-lookup-results > header { align-items: center; background: #f5f8fa; border-bottom: 1px solid #dbe3e8; display: flex; gap: 1rem; justify-content: space-between; padding: 1.25rem 1.5rem; }
.mhm-lookup-results > header > div { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; }
.mhm-lookup-results h2 { color: #073b4c; margin: 0; }
.mhm-registration-plate { background: #ffd633; border: 2px solid #161616; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); color: #111; display: inline-block; font-size: 1.15rem; font-weight: 900; letter-spacing: .1em; padding: .45rem .7rem; }
.mhm-lookup-source { background: #e7f8f3; border-radius: 999px; color: #006b52; flex: 0 0 auto; font-size: .76rem; font-weight: 850; padding: .45rem .7rem; text-transform: uppercase; }
.mhm-lookup-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: .25rem 1.5rem 1.25rem; }
.mhm-lookup-details > div { border-bottom: 1px solid #e5ebee; display: grid; gap: .25rem; padding: 1rem .75rem; }
.mhm-lookup-details span { color: #60747c; font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.mhm-lookup-details strong { color: #102f39; font-size: 1.02rem; }
.mhm-lookup-model-note,.mhm-lookup-disclaimer { color: #5f7279; font-size: .82rem; margin: 0; padding: 0 1.5rem 1.25rem; }
.mhm-lookup-model-note::before { content: "Important: "; font-weight: 850; }
.mhm-mot-history { border-top: 1px solid #dbe3e8; padding: 1.5rem; }
.mhm-mot-history > .mhm-kicker { color: #006b52; margin: 0 0 .2rem; }
.mhm-mot-history > h3 { color: #073b4c; margin: 0 0 1rem; }
.mhm-mot-test-list { display: grid; gap: .65rem; }
.mhm-mot-test { border: 1px solid #dbe3e8; border-radius: 11px; overflow: hidden; }
.mhm-mot-test summary { align-items: center; background: #f7fafb; cursor: pointer; display: grid; gap: .75rem; grid-template-columns: auto 1fr auto; list-style-position: inside; padding: .85rem 1rem; }
.mhm-mot-test[open] summary { border-bottom: 1px solid #dbe3e8; }
.mhm-mot-result { border-radius: 999px; color: #fff; font-size: .72rem; letter-spacing: .04em; min-width: 64px; padding: .38rem .6rem; text-align: center; }
.mhm-mot-result.is-pass { background: #087f5b; }
.mhm-mot-result.is-fail { background: #b42318; }
.mhm-mot-date { color: #173f4c; font-weight: 800; }
.mhm-mot-mileage { color: #526b74; font-size: .85rem; font-weight: 700; }
.mhm-mot-test-body { padding: 1rem 1.1rem; }
.mhm-mot-test-body > p { margin: 0 0 .5rem; }
.mhm-mot-number { color: #697b82; font-size: .78rem; }
.mhm-mot-test-body h4 { color: #173f4c; margin: 1rem 0 .6rem; }
.mhm-mot-test-body ul { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.mhm-mot-test-body li { align-items: start; background: #fff8e8; border-radius: 8px; display: grid; gap: .35rem; grid-template-columns: minmax(80px,auto) 1fr; padding: .65rem .75rem; }
.mhm-mot-test-body li strong { color: #8a5200; font-size: .72rem; }
.mhm-mot-test-body li strong.is-dangerous { color: #b42318; }
.mhm-mot-clear { background: #e7f8f3; border-radius: 8px; color: #006b52; padding: .7rem .8rem; }
.mhm-lookup-estimate { background: linear-gradient(135deg,#073b4c,#075985); color: #fff; margin: 0 1.5rem 1.25rem; padding: clamp(1.25rem,3vw,2rem); border-radius: 15px; }
.mhm-lookup-estimate .mhm-kicker { color: #82f0d4; margin: 0 0 .3rem; }
.mhm-lookup-estimate h3 { color: #fff; margin: 0 0 .7rem; }
.mhm-estimate-price { display: block; font-size: clamp(2rem,5vw,3.25rem); line-height: 1; }
.mhm-estimate-range { font-size: 1.05rem; font-weight: 750; }
.mhm-estimate-sample,.mhm-estimate-note,.mhm-estimate-unavailable { color: #d6e8ed; }
.mhm-estimate-note { border-top: 1px solid rgba(255,255,255,.2); font-size: .8rem; margin-bottom: 0; padding-top: .8rem; }

@media (max-width: 1000px) {
  .mhm-form-grid--search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mhm-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mhm-form-grid,
  .mhm-form-grid--search,
  .mhm-account-grid,
  .mhm-card-grid,
  .mhm-dealer-grid {
    grid-template-columns: 1fr;
  }

  .mhm-location-search { grid-column: auto; }

  .mhm-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mhm-lookup-intro { display: block; }
  .mhm-lookup-switch { display: inline-block; margin-top: .5rem; }
  .mhm-vehicle-lookup,.mhm-lookup-form,.mhm-lookup-fields { box-sizing: border-box; max-width: 100%; min-width: 0; width: 100%; }
  .mhm-lookup-fields,.mhm-lookup-fields--check { grid-template-columns: minmax(0,1fr); }
  .mhm-lookup-fields > label,.mhm-lookup-fields input,.mhm-lookup-fields .mhm-button { box-sizing: border-box; max-width: 100%; min-width: 0; width: 100%; }
  .mhm-lookup-details { grid-template-columns: repeat(2,minmax(0,1fr)); }

  .mhm-auth-shell {
    border-radius: 20px;
  }

  .mhm-auth-intro {
    text-align: left;
  }

  .mhm-auth-intro ul,
  .mhm-auth-trust {
    justify-content: flex-start;
  }

  .mhm-span-2 {
    grid-column: auto;
  }

  .mhm-dashboard-item {
    align-items: start;
    grid-template-columns: 100px 1fr;
  }

  .mhm-dashboard-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .mhm-dashboard-actions > a {
    flex: 1 1 105px;
  }
}

@media (max-width: 480px) {
  .mhm-location-search-row { flex-direction: column; }
  .mhm-location-search-row button { min-height: 44px; width: 100%; }
}

@media (max-width: 760px) {
  .mhm-advert-tools { max-width: 100%; min-width: 0; }
  .mhm-advert-action { overflow-wrap: anywhere; }
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  body > header,
  body > footer,
  .mh-single-vehicle + footer,
  .mh-single-vehicle .mh-enquiry-panel,
  .mh-single-vehicle .mhm-enquiry,
  .mh-single-vehicle .mhm-save-button,
  .mh-single-vehicle .mhm-slide-arrow,
  .mh-single-vehicle .mhm-fullscreen-button,
  .mh-single-vehicle .mhm-slide-counter,
  .mh-single-vehicle .mhm-slide-thumbs,
  .mh-single-vehicle .mhm-fullscreen-viewer,
  .mh-single-vehicle video { display: none !important; }
  .mh-single-vehicle,
  .mh-single-vehicle .mh-vehicle-detail,
  .mh-single-vehicle .wp-block-column { display: block !important; margin: 0 !important; max-width: none !important; padding: 0 !important; width: 100% !important; }
  .mh-single-vehicle .mhm-slideshow { margin: .5rem 0 1rem; }
  .mh-single-vehicle .mhm-slide-stage { background: #fff; border-radius: 0; box-shadow: none; }
  .mh-single-vehicle .mhm-slide-main { height: auto; max-height: 115mm; object-fit: contain; }
  .mh-single-vehicle .mhm-spec-grid { break-inside: avoid; }
  a { color: #111 !important; text-decoration: none !important; }
}

@media (max-width: 520px) {
  .mhm-vehicle-lookup {
    margin: 1rem auto 2rem;
    padding: 0.85rem;
  }

  .mhm-lookup-form {
    border-radius: 14px;
    padding: 0.85rem;
  }

  .mhm-account-page .mh-standard-page {
    padding: 0.6rem;
  }

  .mhm-auth-shell {
    border-radius: 16px;
    gap: 0.8rem;
    padding: 0.8rem;
    width: 100%;
  }

  .mhm-auth-intro > p:not(.mhm-kicker) {
    display: none;
  }

  .mhm-register-fields {
    grid-template-columns: 1fr;
  }

  .mhm-auth-register-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mhm-auth-register-actions .mhm-button {
    width: 100%;
  }

  .mhm-dashboard-header,
  .mhm-vehicle-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .mhm-vehicle-summary-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .mhm-dashboard-item {
    grid-template-columns: 1fr;
  }

  .mhm-dashboard-thumb {
    height: 180px;
  }

  .mhm-spec-grid {
    grid-template-columns: 1fr;
  }

  .mhm-lookup-results > header,.mhm-lookup-results > header > div { align-items: flex-start; flex-direction: column; }
  .mhm-lookup-details { grid-template-columns: 1fr; }
  .mhm-mot-test summary { align-items: start; grid-template-columns: 1fr; }
  .mhm-mot-test-body li { grid-template-columns: 1fr; }
}

/* Personal customer dashboard. */
.mhm-dashboard-page .mh-standard-page {
  box-sizing: border-box;
  max-width: none !important;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
  width: 100%;
}

.mhm-dashboard-page .mh-standard-page > .wp-block-post-title,
.mhm-dashboard-page .mh-standard-page > .wp-block-post-content {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
  width: 100% !important;
}

.mhm-personal-dashboard {
  box-sizing: border-box;
  margin: 1.5rem auto 3rem;
  max-width: 1180px;
  width: 100%;
}
.mhm-profile-header { align-items: center; background: linear-gradient(135deg,#073b4c,#075985); border-radius: 22px 22px 0 0; color: #fff; display: grid; gap: 1.25rem; grid-template-columns: auto 1fr auto; padding: clamp(1.25rem,3vw,2rem); }
.mhm-profile-header h1,.mhm-profile-header p { margin: .15rem 0; }
.mhm-profile-header .mhm-kicker { color: #82f0d4; }
.mhm-profile-header-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }
.mhm-profile-header .mhm-button--buy { background: #fff; color: #073b4c; }
.mhm-profile-avatar img,.mhm-profile-photo img { border: 4px solid rgba(255,255,255,.85); border-radius: 50%; display: block; height: 96px; object-fit: cover; width: 96px; }
.mhm-dashboard-nav { background: #fff; border: 1px solid #dbe3e8; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); overflow: visible; padding: .65rem 1rem; }
.mhm-dashboard-nav a { border-radius: 999px; color: #284652; font-weight: 750; min-width: 0; padding: .65rem .75rem; text-align: center; text-decoration: none; }
.mhm-dashboard-nav a:hover,.mhm-dashboard-nav a.is-active { background: #e7f8f3; color: #006b52; }
.mhm-dashboard-content { background: #f5f8fa; border: 1px solid #dbe3e8; border-radius: 0 0 22px 22px; border-top: 0; min-height: 420px; padding: clamp(1.25rem,3vw,2rem); }
.mhm-dashboard-title h2 { margin-top: 0; }
.mhm-personal-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
.mhm-personal-stats > div { background: #fff; border: 1px solid #dbe3e8; border-radius: 15px; padding: 1.25rem; }
.mhm-personal-stats strong { color: #073b4c; display: block; font-size: 2rem; line-height: 1; }
.mhm-personal-stats span { color: #5b6f77; display: block; font-weight: 650; margin-top: .5rem; }
.mhm-dashboard-welcome { background: #fff; border: 1px solid #dbe3e8; border-radius: 15px; margin-top: 1.25rem; padding: 1.5rem; }
.mhm-profile-form { max-width: 900px; }
.mhm-account-danger-zone { align-items: center; display: flex; gap: 1.5rem; justify-content: space-between; margin-top: 1.25rem; max-width: 900px; }
.mhm-account-danger-zone h3 { margin: 0 0 .35rem; }
.mhm-account-danger-zone p { margin: 0; }

.mhm-delete-account-page .wp-site-blocks > main,
.mhm-delete-account-page main.wp-block-group { width: 100%; }
.mhm-delete-account-wrap { margin: 0 auto; max-width: 1180px; padding: clamp(1rem, 3vw, 3rem) 1rem 4rem; }
.mhm-delete-intro { max-width: 780px; }
.mhm-delete-intro h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: .35rem 0 1rem; }
.mhm-delete-intro > p:last-child { color: #52656f; font-size: 1.08rem; }
.mhm-delete-layout { align-items: start; display: grid; gap: 2rem; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-top: 2rem; }
.mhm-delete-form { margin: 0; }
.mhm-delete-form > label:not(.mhm-consent) { display: block; }
.mhm-delete-form > label > span { display: block; font-weight: 800; margin-bottom: .45rem; }
.mhm-delete-form input[type="email"] { box-sizing: border-box; width: 100%; }
.mhm-delete-form .mhm-consent { align-items: flex-start; display: flex; gap: .65rem; margin: 1rem 0; }
.mhm-delete-form .mhm-danger-button { cursor: pointer; margin-top: .25rem; }
.mhm-delete-honeypot { height: 0 !important; left: -10000px !important; overflow: hidden !important; position: absolute !important; width: 0 !important; }
.mhm-delete-details { background: #edf6fa; border: 1px solid #d2e2e9; border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); }
.mhm-delete-details h3 { margin: 1.4rem 0 .5rem; }
.mhm-delete-details h3:first-child { margin-top: 0; }
.mhm-delete-details p { color: #425b67; }
.mhm-delete-details ol { margin: .75rem 0 0; padding-left: 1.25rem; }
.mhm-delete-details li + li { margin-top: .55rem; }

@media (max-width: 760px) {
	.mhm-account-danger-zone { align-items: flex-start; flex-direction: column; }
	.mhm-delete-layout { grid-template-columns: 1fr; }
}
.mhm-profile-photo { align-items: center; border-bottom: 1px solid #dbe3e8; display: flex; gap: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; }
.mhm-profile-photo img { border-color: #dbe3e8; height: 120px; width: 120px; }
.mhm-profile-photo label { display: grid; gap: .4rem; }
.mhm-profile-photo label > span { font-weight: 800; }
.mhm-profile-form small { color: #65777e; display: block; margin-top: .35rem; }

@media (max-width: 760px) {
	.mhm-dashboard-page .mh-standard-page { padding: 1.25rem .75rem 2.5rem; }
	.mhm-dashboard-nav { grid-template-columns: repeat(2,minmax(0,1fr)); padding: .6rem; }
	.mhm-personal-stats { grid-template-columns: 1fr 1fr; }
  .mhm-profile-header { grid-template-columns: auto 1fr; }
  .mhm-profile-header-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Public information, contact and finance pages. */
.mhm-content-page {
  left: 50%;
  margin: 0 0 4rem;
  max-width: none !important;
  position: relative;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2rem));
}

.mhm-content-intro {
  margin-bottom: 1.75rem;
  max-width: 780px;
}

.mhm-content-intro h2 {
  color: var(--mhm-navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.mhm-content-intro > p:last-child {
  color: var(--mhm-muted);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.mhm-about-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mhm-about-grid article {
  background: #fff;
  border: 1px solid var(--mhm-line);
  border-radius: var(--mhm-radius);
  box-shadow: 0 8px 28px rgba(8, 44, 76, 0.07);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mhm-about-grid h3 {
  color: var(--mhm-navy);
  margin-top: 0;
}

.mhm-about-grid p {
  margin-bottom: 0;
}

.mhm-about-cta {
  align-items: center;
  background: linear-gradient(135deg, #082c4c, #075985);
  border-radius: var(--mhm-radius);
  color: #fff;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mhm-about-cta h3 { color: #fff; margin: 0; }
.mhm-about-cta p { color: #cfe4ec; margin: .3rem 0 0; }
.mhm-about-cta > div:last-child { display: flex; flex: 0 0 auto; gap: .65rem; }

.mhm-contact-layout,
.mhm-finance-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.6fr);
}

.mhm-contact-card {
  background: linear-gradient(145deg, #082c4c, #075985);
  border-radius: var(--mhm-radius);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.mhm-contact-card > span {
  align-items: center;
  background: var(--mhm-coral);
  border-radius: 50%;
  color: var(--mhm-ink);
  display: inline-flex;
  font-size: 1.35rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.mhm-contact-card h3 { color: #fff; margin: 1rem 0 0.25rem; }
.mhm-contact-card a { color: #fff; font-weight: 800; }
.mhm-contact-card small { color: #cae0e9; display: block; margin-top: 1.25rem; }
.mhm-contact-form.mhm-panel { margin: 0; }
.mhm-contact-form .mhm-consent span { color: var(--mhm-muted); display: inline; font-size: 0.82rem; font-weight: 500; margin: 0; }

.mhm-finance-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
}

.mhm-finance-form.mhm-panel { margin: 0; }
.mhm-finance-form > label { display: block; margin-bottom: 1rem; }
.mhm-finance-form > label > span { color: #42535e; display: block; font-size: .82rem; font-weight: 750; margin-bottom: .35rem; }
.mhm-finance-form > label select { background: #f8fbfc; border: 1px solid #bdccd4; border-radius: 10px; font: inherit; min-height: 50px; padding: .7rem .8rem; width: 100%; }
.mhm-finance-form small { color: var(--mhm-muted); display: block; margin-top: .4rem; }

.mhm-finance-results {
  background: linear-gradient(145deg, #061f35, #075985);
  border-radius: var(--mhm-radius);
  box-shadow: var(--mhm-shadow);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: sticky;
  top: 1rem;
}

.mhm-finance-results .mhm-kicker { color: #82f0d4; }
.mhm-finance-monthly { display: block; font-size: clamp(2.35rem, 5vw, 3.8rem); line-height: 1; margin: .4rem 0; }
.mhm-finance-results > span { color: #cfe4ec; }
.mhm-finance-results dl { border-top: 1px solid rgba(255,255,255,.18); margin: 1.5rem 0 1rem; padding-top: 1rem; }
.mhm-finance-results dl div { display: flex; gap: 1rem; justify-content: space-between; padding: .45rem 0; }
.mhm-finance-results dt { color: #cfe4ec; }
.mhm-finance-results dd { font-weight: 800; margin: 0; text-align: right; }
.mhm-finance-results > p:last-child { color: #cfe4ec; font-size: .82rem; margin-bottom: 0; }
.mhm-finance-explainer { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 1.25rem; }
.mhm-finance-explainer article { background: var(--mhm-mist); border-radius: 14px; padding: 1.25rem; }
.mhm-finance-explainer h3 { color: var(--mhm-navy); margin-top: 0; }
.mhm-finance-explainer p { margin-bottom: 0; }
.mhm-finance-disclaimer { border-left: 4px solid var(--mhm-coral); color: var(--mhm-muted); font-size: .82rem; margin-top: 1.25rem; padding-left: 1rem; }

.mhm-guide-index {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(4,minmax(0,1fr));
  margin-bottom: 1.5rem;
}

.mhm-guide-index a {
  align-items: center;
  background: var(--mhm-mist);
  border: 1px solid var(--mhm-line);
  border-radius: 14px;
  color: var(--mhm-navy);
  display: flex;
  gap: .75rem;
  padding: 1rem;
  text-decoration: none;
}

.mhm-guide-index span {
  align-items: center;
  background: var(--mhm-coral);
  border-radius: 50%;
  color: var(--mhm-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.mhm-guide-articles { display: grid; gap: 1.15rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.mhm-guide-articles article { background: #fff; border: 1px solid var(--mhm-line); border-radius: var(--mhm-radius); box-shadow: 0 8px 28px rgba(8,44,76,.07); padding: clamp(1.25rem,3vw,2rem); scroll-margin-top: 1rem; }
.mhm-guide-articles h3 { color: var(--mhm-navy); font-size: 1.35rem; margin: 0 0 .8rem; }
.mhm-guide-articles ul { margin-bottom: 0; padding-left: 1.2rem; }
.mhm-guide-articles li + li { margin-top: .55rem; }
.mhm-guide-cta { align-items: center; background: linear-gradient(135deg,#082c4c,#075985); border-radius: var(--mhm-radius); color: #fff; display: flex; gap: 1.5rem; justify-content: space-between; margin-top: 1.25rem; padding: 1.5rem; }
.mhm-guide-cta h3 { color: #fff; margin: 0; }
.mhm-guide-cta p { color: #cfe4ec; margin: .3rem 0 0; }
.mhm-guide-cta .mhm-button { flex: 0 0 auto; }
.mhm-advice-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.mhm-advice-list-card { background: #fff; border: 1px solid var(--mhm-line); border-radius: var(--mhm-radius); box-shadow: 0 8px 28px rgba(8,44,76,.08); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.mhm-advice-list-image { aspect-ratio: 16/10; background: var(--mhm-mist); display: block; overflow: hidden; }
.mhm-advice-list-image img { height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.mhm-advice-list-card:hover .mhm-advice-list-image img { transform: scale(1.025); }
.mhm-advice-list-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.mhm-advice-list-body .mhm-kicker { margin-bottom: .45rem; }
.mhm-advice-list-body h3 { color: var(--mhm-navy); font-size: 1.35rem; line-height: 1.2; margin: 0 0 .7rem; }
.mhm-advice-list-body h3 a { color: inherit; text-decoration: none; }
.mhm-advice-list-body > p:not(.mhm-kicker) { color: var(--mhm-muted); margin: 0 0 1rem; }
.mhm-advice-read { color: var(--mhm-navy); font-weight: 800; margin-top: auto; text-decoration: none; }
.mhm-safety-alert { background: #fff3ef; border: 1px solid #f2ad9b; border-radius: 14px; margin-top: 1.25rem; padding: 1.25rem; }
.mhm-safety-alert strong { color: #8a2c1b; }
.mhm-safety-alert p { margin: .35rem 0 0; }

.mhm-legal-copy { margin: 0 auto; max-width: 850px; }
.mhm-legal-copy h2 { color: var(--mhm-navy); margin-top: 2rem; }
.mhm-legal-updated { background: var(--mhm-mist); border-radius: 10px; padding: .75rem 1rem; }

@media (max-width: 760px) {
  .mhm-about-grid,
  .mhm-contact-layout,
  .mhm-finance-layout,
  .mhm-finance-explainer,
  .mhm-guide-articles,
  .mhm-advice-grid {
    grid-template-columns: 1fr;
  }

  .mhm-finance-results { position: static; }
  .mhm-guide-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .mhm-about-cta { align-items: flex-start; flex-direction: column; }
  .mhm-about-cta > div:last-child { flex-direction: column; width: 100%; }
  .mhm-about-cta .mhm-button { width: 100%; }
  .mhm-guide-index { grid-template-columns: 1fr; }
  .mhm-guide-cta { align-items: flex-start; flex-direction: column; }
  .mhm-guide-cta .mhm-button { width: 100%; }
}

@media (max-width: 480px) {
  .mhm-personal-stats { grid-template-columns: 1fr; }
  .mhm-profile-header { grid-template-columns: 1fr; text-align: center; }
  .mhm-profile-avatar { justify-self: center; }
  .mhm-profile-header-actions { justify-content: center; }
  .mhm-profile-photo { align-items: flex-start; flex-direction: column; }
}
/* Give the eBay catalogue the same wide canvas as the rest of the marketplace.
 * The page template normally constrains ordinary articles to 760px. */
.mhm-ebay-page .mh-standard-page {
  box-sizing: border-box;
  max-width: none !important;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem);
  width: 100% !important;
}

.mhm-ebay-page .mh-standard-page > .wp-block-post-title {
  display: none;
}

.mhm-ebay-page .mh-standard-page > .wp-block-post-content {
  box-sizing: border-box;
  margin-inline: auto !important;
  max-width: var(--wp--style--global--wide-size, 1200px) !important;
  width: 100% !important;
}

.mhm-ebay-cars {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: none;
  padding: 0 0 3rem;
  width: 100%;
}

.mhm-ebay-search {
	margin: 1.5rem 0 2rem;
}

.mhm-ebay-search .mhm-form-grid--search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mhm-ebay-search .mhm-form-actions { align-items: center; display: flex; gap: 1rem; margin-top: 1.25rem; }
.mhm-ebay-search .mhm-form-actions a { color: var(--mhm-blue, #07395b); font-weight: 750; }
.mhm-ebay-results-heading { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; margin: 0 0 1rem; }
.mhm-ebay-results-heading.is-count-only { justify-content: flex-end; }
.mhm-ebay-results-heading h2 { margin: 0; }
.mhm-ebay-results-heading span { color: #536570; white-space: nowrap; }

.mhm-ebay-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mhm-home-ebay { background: #fff; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem); }
.mhm-home-ebay-inner { margin-inline: auto; max-width: var(--wp--style--global--wide-size, 1200px); width: 100%; }
.mhm-home-ebay-heading { align-items: flex-end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.5rem; }
.mhm-home-ebay-heading h2,.mhm-home-ebay-heading p { margin-block: 0; }
.mhm-home-ebay-heading h2 { color: var(--mhm-navy, #082c4c); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.mhm-home-ebay-heading > a { color: var(--mhm-blue, #075985); font-weight: 750; white-space: nowrap; }
.mhm-ebay-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mhm-ebay-card {
  background: #fff;
  border: 1px solid #cfdee5;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(4, 49, 76, .08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.mhm-ebay-card-image { background: #edf3f6; display: block; height: 220px; overflow: hidden; position: relative; text-decoration: none; }
.mhm-ebay-card-image img { height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.mhm-ebay-card:hover .mhm-ebay-card-image img { transform: scale(1.025); }
.mhm-ebay-card-image > span { align-items: center; color: #60717b; display: flex; height: 100%; justify-content: center; }
.mhm-ebay-card-image b { background: #fff; border-radius: 999px; bottom: .75rem; color: #153b55; font-size: .74rem; left: .75rem; padding: .35rem .65rem; position: absolute; }
.mhm-ebay-card-body { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.mhm-ebay-card h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .65rem; }
.mhm-ebay-card h3 a { color: var(--mhm-blue, #07395b); text-decoration: none; }
.mhm-ebay-price { color: var(--mhm-blue, #07395b); font-size: 1.45rem; }
.mhm-ebay-meta { color: #506672; font-size: .84rem; margin: .4rem 0; }
.mhm-ebay-card-body > p:not(.mhm-ebay-meta) { color: #405560; font-size: .9rem; }
.mhm-ebay-button { align-self: flex-start; margin-top: auto; }
.mhm-ebay-pagination { align-items: center; display: flex; gap: 1rem; justify-content: center; margin: 2rem 0; }
.mhm-ebay-disclosure { border-top: 1px solid #d6e2e8; color: #60717b; font-size: .78rem; margin-top: 2rem; padding-top: 1rem; }

.mhm-ebay-back { color: var(--mhm-blue, #07395b); display: inline-flex; font-weight: 750; margin-bottom: 1.25rem; text-decoration: none; }
.mhm-ebay-detail-layout { align-items: start; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); }
.mhm-ebay-gallery { min-width: 0; }
.mhm-ebay-main-image,.mhm-ebay-image-missing { background: #edf3f6; border-radius: 20px; display: block; height: clamp(390px, 47vw, 650px); object-fit: contain; width: 100%; }
.mhm-ebay-image-missing { align-items: center; color: #60717b; display: flex; justify-content: center; }
.mhm-ebay-thumbnails { display: grid; gap: .65rem; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: .75rem; }
.mhm-ebay-thumbnails button { background: #fff; border: 2px solid transparent; border-radius: 10px; cursor: pointer; overflow: hidden; padding: 0; }
.mhm-ebay-thumbnails button.is-active { border-color: #13a883; }
.mhm-ebay-thumbnails img { display: block; height: 74px; object-fit: cover; width: 100%; }
.mhm-ebay-summary { background: #eef5f8; border: 1px solid #cfdee5; border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); position: sticky; top: 1.25rem; }
.mhm-ebay-summary h1 { font-size: clamp(1.75rem, 3vw, 2.55rem); margin: .4rem 0 1rem; }
.mhm-ebay-detail-price { color: var(--mhm-blue, #07395b); display: block; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.mhm-ebay-detail-meta { color: #506672; margin: .75rem 0 1.25rem; }
.mhm-ebay-seller { border-block: 1px solid #cfdee5; display: grid; gap: .15rem; margin: 1rem 0 1.25rem; padding: 1rem 0; }
.mhm-ebay-seller span,.mhm-ebay-external-note { color: #506672; font-size: .87rem; }
.mhm-ebay-contact { box-sizing: border-box; display: flex; justify-content: center; text-align: center; width: 100%; }
.mhm-ebay-external-note { margin: .75rem 0 0; }
.mhm-ebay-specifications,.mhm-ebay-description { margin-top: clamp(2rem, 4vw, 3rem); }
.mhm-ebay-specifications h2,.mhm-ebay-description h2 { margin-bottom: 1rem; }
.mhm-ebay-specifications dl { display: grid; gap: .65rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.mhm-ebay-specifications dl > div { background: #f4f8fa; border: 1px solid #d7e4e9; border-radius: 12px; min-width: 0; padding: .85rem 1rem; }
.mhm-ebay-specifications dt { color: #60717b; font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.mhm-ebay-specifications dd { color: var(--mhm-blue, #07395b); font-weight: 750; margin: .2rem 0 0; overflow-wrap: anywhere; }
.mhm-ebay-description { max-width: 900px; }
.mhm-ebay-description p { white-space: pre-line; }

@media (max-width: 900px) {
	.mhm-ebay-search .mhm-form-grid--search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mhm-ebay-grid,.mhm-ebay-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mhm-ebay-detail-layout { grid-template-columns: 1fr; }
	.mhm-ebay-summary { position: static; }
	.mhm-ebay-specifications dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.mhm-ebay-search .mhm-form-grid--search, .mhm-ebay-grid, .mhm-ebay-grid--home { grid-template-columns: 1fr; }
	.mhm-ebay-search .mhm-button { width: 100%; }
	.mhm-ebay-search .mhm-form-actions { align-items: stretch; flex-direction: column; }
  .mhm-ebay-results-heading { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .mhm-ebay-card-image { height: 205px; }
	.mhm-ebay-main-image,.mhm-ebay-image-missing { height: min(76vw, 430px); }
	.mhm-ebay-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mhm-ebay-thumbnails img { height: 62px; }
	.mhm-ebay-specifications dl { grid-template-columns: 1fr; }
	.mhm-home-ebay-heading { align-items: flex-start; flex-direction: column; }
}

.mhm-apple-purchase-controls {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.75rem 0 max(2rem, env(safe-area-inset-bottom));
  padding: 0;
}

.mhm-apple-purchase-controls .mhm-button {
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
}

@media (max-width: 600px) {
  .mhm-apple-purchase-controls {
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .mhm-apple-purchase-controls .mhm-button {
    width: 100%;
  }
}
