/* WordPress-only price information inside the CMS update card. */
.service-grid {
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.services-section .services-heading {
  max-width: none;
}

.services-section .services-heading h2 {
  font-size: clamp(26px, 3.35vw, 42px);
  white-space: nowrap;
}

.service-grid article,
.service-grid article.featured {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "visual label"
    "visual title"
    "visual description"
    "visual fit";
  gap: 5px 32px;
  min-height: 0;
  padding: 30px 34px;
}

.service-grid article.featured {
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "visual label"
    "visual title"
    "visual description"
    "offer offer"
    "fit fit";
}

.service-grid article .service-top {
  grid-area: visual;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding-right: 24px;
  border-right: 2px solid var(--line);
}

.service-grid article .service-top span {
  align-self: flex-start;
  font-size: 13px;
}

.service-grid article .service-label {
  grid-area: label;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.service-grid article > h3 {
  grid-area: title;
  margin: 0 0 7px;
  font-size: 28px;
  line-height: 1.5;
}

.service-grid article > .service-title-nowrap {
  white-space: nowrap;
}

.service-grid article > p:not(.service-label):not(.fit) {
  grid-area: description;
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.service-grid article > .fit,
.service-grid article.featured > .fit {
  grid-area: fit;
  align-self: end;
  margin: 18px 0 0;
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.75;
}

.wordpress-update-offer {
  grid-area: offer;
  align-self: stretch;
  margin: 22px 0 0;
  padding: 19px 18px 18px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
}

.wordpress-update-offer .offer-scope {
  display: inline-block;
  margin: 0 0 11px;
  padding: 4px 7px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.wordpress-update-offer h4 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.55;
}

.wordpress-update-offer .offer-price {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.wordpress-update-offer .offer-price strong {
  margin-right: 3px;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.wordpress-update-offer .offer-includes {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
}

.wordpress-update-offer .offer-note,
.wordpress-update-offer .offer-separation {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.wordpress-update-offer .offer-separation {
  padding: 9px 10px;
  border-left: 4px solid var(--red);
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.wordpress-update-offer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 47px;
  margin-top: 15px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
  text-decoration: none;
}

.wordpress-update-offer a:hover {
  color: #fff;
  background: var(--ink);
}

@media (max-width: 900px) {
  .services-section .services-heading h2 {
    font-size: clamp(26px, 3.35vw, 42px);
  }
}

@media (max-width: 760px) {
  .services-section .services-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 650px) {
  .service-grid article,
  .service-grid article.featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visual"
      "label"
      "title"
      "description"
      "offer"
      "fit";
    gap: 5px;
    padding: 25px 22px;
  }

  .service-grid article:not(.featured) {
    grid-template-areas:
      "visual"
      "label"
      "title"
      "description"
      "fit";
  }

  .service-grid article .service-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .service-grid article .service-label {
    margin-top: 0;
  }

  .wordpress-update-offer {
    margin-top: 18px;
    padding: 17px 15px 16px;
  }

  .wordpress-update-offer .offer-price strong {
    font-size: 36px;
  }

  .service-grid article > h3 {
    font-size: 24px;
  }

  .service-grid article > .service-title-nowrap {
    white-space: normal;
  }

  .service-grid article > p:not(.service-label):not(.fit) {
    font-size: 15px;
  }

  .wordpress-update-offer h4 {
    font-size: 20px;
  }

  .wordpress-update-offer .offer-includes {
    font-size: 15px;
  }

  .wordpress-update-offer .offer-note,
  .wordpress-update-offer .offer-separation {
    font-size: 12px;
  }

  .wordpress-update-offer a {
    font-size: 14px;
  }
}
