[data-adkern-offer-summary] {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #111827;
  font-family: inherit;
}

[data-adkern-offer-summary] *,
[data-adkern-offer-summary] *::before,
[data-adkern-offer-summary] *::after {
  box-sizing: border-box;
}

.akp-offer-summary {
  --akp-offer-accent: #64748b;
  --akp-offer-accent-soft: #f1f5f9;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #e4e7ec;
  border-top: 4px solid var(--akp-offer-accent);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(11 29 58 / 7%);
}

.akp-offer-summary--strong-fit {
  --akp-offer-accent: #22c55e;
  --akp-offer-accent-soft: #ecfdf3;
}

.akp-offer-summary--conditional-fit {
  --akp-offer-accent: #d97706;
  --akp-offer-accent-soft: #fffaeb;
}

.akp-offer-summary--no-fit,
.akp-offer-summary--fallback {
  --akp-offer-accent: #64748b;
  --akp-offer-accent-soft: #f1f5f9;
}

.akp-offer-summary__header {
  display: block;
  max-width: 860px;
  margin: 0;
  padding: 0;
}

.akp-offer-summary__status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.akp-offer-summary__indicator {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--akp-offer-accent);
  box-shadow: 0 0 0 4px var(--akp-offer-accent-soft);
}

.akp-offer-summary__title {
  min-width: 0;
  margin: 0;
  color: #111827;
  font: inherit;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.akp-offer-summary__description {
  max-width: 760px;
  margin: 14px 0 0;
  color: #667085;
  font: inherit;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.akp-offer-summary__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  width: 100%;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid #e4e7ec;
}

.akp-offer-summary__metric {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-row: 1 / span 2;
  align-content: start;
  min-width: 0;
  min-height: 142px;
  margin: 0;
  padding: 24px 28px 4px;
  border-left: 1px solid #e4e7ec;
}

.akp-offer-summary__metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.akp-offer-summary__metric:last-child {
  padding-right: 0;
}

.akp-offer-summary__label {
  min-height: 42px;
  margin: 0;
  color: #667085;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

@supports (grid-template-rows: subgrid) {
  .akp-offer-summary__metric {
    grid-template-rows: subgrid;
  }
}

.akp-offer-summary__value {
  align-self: start;
  min-width: 0;
  margin: 10px 0 0;
  color: #0b1d3a;
  font: inherit;
  font-size: clamp(32px, 3.3vw, 42px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.akp-offer-summary__compatibility {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--akp-offer-accent-soft);
  color: #0b1d3a;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .akp-offer-summary {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .akp-offer-summary__status {
    align-items: flex-start;
  }

  .akp-offer-summary__indicator {
    margin-top: 7px;
  }

  .akp-offer-summary__description {
    margin-top: 12px;
  }

  .akp-offer-summary__metrics {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    margin-top: 24px;
  }

  .akp-offer-summary__metric,
  .akp-offer-summary__metric:first-child,
  .akp-offer-summary__metric:last-child {
    min-height: 0;
    grid-row: auto;
    grid-template-rows: auto auto;
    padding: 20px 0;
    border-top: 1px solid #e4e7ec;
    border-left: 0;
  }

  .akp-offer-summary__metric:first-child {
    border-top: 0;
  }

  .akp-offer-summary__value {
    font-size: clamp(30px, 10vw, 38px);
  }

  .akp-offer-summary__label {
    min-height: 0;
  }

  .akp-offer-summary__compatibility {
    font-size: 19px;
  }
}

@media (forced-colors: active) {
  .akp-offer-summary,
  .akp-offer-summary__metric,
  .akp-offer-summary__metrics {
    border-color: CanvasText;
  }

  .akp-offer-summary__indicator {
    background: CanvasText;
  }
}
