.m7-gpm-matcher-host {
  width: 100%;
}

.m7-match-section {
  --m7-teal: #35b8ad;
  --m7-ink: #2d2e2e;
  --m7-muted: #626b70;
  --m7-border: #dfe4e5;
  --m7-soft: #f4f8f8;
  color: var(--m7-ink);
  background: #fff;
  border: 1px solid var(--m7-border);
  padding: clamp(20px, 4vw, 48px);
}

.m7-match-header {
  max-width: 860px;
  margin-bottom: 24px;
}

.m7-match-eyebrow,
.m7-match-badge {
  display: inline-block;
  color: #176a64;
  background: #e8f8f6;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.m7-match-title {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.m7-match-intro,
.m7-match-safety {
  color: var(--m7-muted);
  line-height: 1.55;
}

.m7-selected-summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--m7-soft);
  border-left: 4px solid var(--m7-teal);
  font-weight: 700;
  margin-bottom: 20px;
}

.m7-match-count {
  margin: 0 0 14px;
  font-weight: 700;
}

.m7-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.m7-match-card {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: 18px;
  border: 1px solid var(--m7-border);
  background: #fff;
  padding: 18px;
}

.m7-match-image-link {
  display: block;
  align-self: start;
}

.m7-match-image-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--m7-soft);
}

.m7-match-card h3 {
  margin: 10px 0 4px;
  font-size: 21px;
  line-height: 1.2;
}

.m7-match-status {
  margin: 0 0 14px;
  color: #7a5410;
  font-weight: 700;
}

.m7-match-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0 0 14px;
  font-size: 14px;
}

.m7-match-specs dt {
  color: var(--m7-muted);
}

.m7-match-specs dd {
  margin: 0;
  font-weight: 700;
}

.m7-match-cautions,
.m7-match-errors {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #5b4a2d;
  font-size: 14px;
  line-height: 1.45;
}

.m7-match-link,
.m7-manual-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: #fff;
  background: var(--m7-ink);
  border: 0;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
}

.m7-match-link:hover,
.m7-manual-form button:hover {
  background: var(--m7-teal);
}

.m7-match-empty {
  padding: 24px;
  border: 1px dashed var(--m7-border);
  background: var(--m7-soft);
}

.m7-match-empty h3,
.m7-match-empty p {
  margin: 0 0 8px;
}

.m7-manual-specs {
  margin-top: 26px;
  border-top: 1px solid var(--m7-border);
  padding-top: 20px;
}

.m7-manual-specs summary {
  cursor: pointer;
  font-weight: 800;
}

.m7-manual-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.m7-manual-form label {
  display: grid;
  gap: 6px;
  color: var(--m7-muted);
  font-size: 13px;
  font-weight: 700;
}

.m7-manual-form input,
.m7-manual-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c3c5;
  background: #fff;
  padding: 8px 10px;
  color: var(--m7-ink);
}

.m7-manual-form button {
  align-self: end;
}

.m7-match-safety {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--m7-border);
  font-size: 13px;
}

@media (max-width: 980px) {
  .m7-match-grid,
  .m7-manual-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .m7-match-section {
    padding: 18px;
  }

  .m7-match-grid,
  .m7-manual-form,
  .m7-match-card {
    grid-template-columns: 1fr;
  }

  .m7-match-image-link img {
    max-height: 240px;
  }
}

