/**
 * Duct Masters — pricing row info modal (blower, A/C coil)
 */
.dm-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0;
  border: 1.5px solid var(--brand-light, #29abe2);
  border-radius: 50%;
  background: var(--blue-soft, #e8f4fc);
  color: var(--brand-dark, #1a56a0);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.dm-info-btn:hover,
.dm-info-btn:focus-visible {
  background: var(--brand-dark, #1a56a0);
  border-color: var(--brand-dark, #1a56a0);
  color: var(--white, #fff);
  transform: scale(1.06);
  outline: none;
}

.dm-row-label {
  position: relative;
  padding-right: 38px !important;
}
.dm-row-label > span:first-child {
  display: block;
  line-height: 1.4;
}
.dm-row-label .dm-info-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-left: 0;
  transform: translateY(-50%);
}
.dm-row-label .dm-info-btn:hover,
.dm-row-label .dm-info-btn:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

@media (min-width: 961px) {
  .dm-matrix td.dm-row-label > span:first-child {
    max-width: 100%;
  }
}

.dm-m-item--has-info {
  align-items: flex-start;
}
.dm-m-item--has-info .dm-m-item-text {
  flex: 1;
  min-width: 0;
}
/* Keep the i on the same line as the copy — don’t push it into its own column */
.dm-m-item--has-info .dm-info-btn {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  margin-top: 0;
  margin-right: 0;
  vertical-align: -0.15em;
  font-size: 11px;
  position: relative;
  top: 0;
}

.dm-pricing-info-modal {
  --brand-dark: #1a56a0;
  --brand-light: #29abe2;
  --navy-dark: #0f2840;
  --blue-soft: #e8f4fc;
  --green: #059669;
  --green-soft: #ecfdf5;
  --amber-soft: #fffbeb;
  --amber: #d97706;
  --slate: #64748b;
  --text: #1e293b;
  --muted: #475569;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.dm-pricing-info-modal *,
.dm-pricing-info-modal *::before,
.dm-pricing-info-modal *::after {
  box-sizing: border-box;
}
.dm-pricing-info-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.dm-pricing-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 40, 64, 0.6);
  backdrop-filter: blur(4px);
}
.dm-pricing-info-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 40, 64, 0.22);
}
.dm-pricing-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 12px rgba(15, 40, 64, 0.12);
  transition: background 0.15s;
}
.dm-pricing-info-close:hover {
  background: var(--white);
}
.dm-pricing-info-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dm-pricing-info-img-wrap {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 16px 12px;
}
.dm-pricing-info-img {
  display: block;
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 10px;
}
.dm-pricing-info-body {
  padding: 24px 28px 28px;
}
.dm-pricing-info-body h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 16px;
  padding-right: 36px;
}
.dm-pricing-info-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.dm-pricing-info-text p:last-child {
  margin-bottom: 0;
}
.dm-pricing-info-text strong {
  color: var(--navy-dark);
  font-weight: 700;
}
.dm-pricing-info-callout {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--green-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.dm-pricing-info-callout strong {
  color: var(--navy-dark);
}
.dm-pricing-info-reno {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--amber-soft);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.dm-pricing-info-reno strong {
  color: var(--navy-dark);
}
.dm-pricing-info-foot {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.dm-pricing-info-foot .dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--brand-dark);
  color: var(--white);
  transition: background 0.2s;
}
.dm-pricing-info-foot .dm-btn:hover {
  background: var(--navy-dark);
}
.dm-pricing-info-foot-note {
  font-size: 13px;
  color: var(--slate);
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .dm-pricing-info-modal {
    padding: 0;
    align-items: flex-end;
  }
  .dm-pricing-info-dialog {
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }
  .dm-pricing-info-img-wrap {
    padding: 12px 12px 8px;
  }
  .dm-pricing-info-img {
    max-height: min(38vh, 280px);
  }
  .dm-pricing-info-body {
    padding: 18px 18px 24px;
  }
  .dm-pricing-info-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .dm-pricing-info-foot .dm-btn {
    width: 100%;
    text-align: center;
  }
}
