.license-costs__header {
  margin-bottom: 1rem;
}

.license-costs__cta {
  display: inline-block;
}

.license-costs__content {
  margin-top: 2.5rem;
}

.license-costs__table {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: license-costs-counter;
}

.license-costs__row {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  counter-increment: license-costs-counter;
  border-bottom: 0.0625rem solid var(--primary-1);
}

.license-costs__row:first-child {
  padding-top: 1.5rem;
}

.license-costs__category {
  flex: 0 0 24.375rem;
}

.license-costs__category h3 {
  position: relative;
  font-weight: 600;
  color: var(--primary-16);
  line-height: 1.3;
  font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
}

.license-costs__label {
  width: 100%;
}

.license-costs__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
}

.license-costs__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
}

.license-costs__item:not(:last-child) {
  border-bottom: 0.0625rem solid var(--primary-1);
}

.license-costs__item-title {
  flex: 0 0 24.375rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary-16);
}

.license-costs__item-text {
  flex: 1;
}

.license-costs__item-text p {
  line-height: 1.4;
  color: var(--primary-12);
  font-size: clamp(1rem, 0.975rem + 0.125vw, 1.125rem);
}

.license-costs__cta-wrapper {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 47.9988em) {
  .license-costs__category h3 {
    max-width: 250px;
  }
}

@media (max-width: 75rem) and (min-width: 48rem) {
  .license-costs__category {
    flex: 0 0 15.625rem;
  }
}

@media (max-width: 61.99875rem) {
  .license-costs__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .license-costs__item-title {
    flex: 0 0 auto;
  }

  .license-costs__cta-wrapper {
    margin-top: 0.5rem;
    justify-content: flex-start;
  }
}

@media (max-width: 47.99875em) {
  .license-costs__row {
    flex-direction: column;
    gap: 1rem;
  }

  .license-costs__category {
    flex: 0 0 auto;
  }

  .license-costs__category h3 {
    padding-left: 1.5rem;
  }

  .license-costs__category h3::before {
    content: counter(license-costs-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--primary-16);
    line-height: 1.3;
    display: flex;
    align-items: center;
  }

  .license-costs__item {
    align-items: flex-start;
  }

  .license-costs__item-title {
    font-weight: 700;
  }
}

@media (min-width: 48em) {
  .license-costs__header {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
  }

  .license-costs__label {
    width: 50%;
  }

  .license-costs__cta-wrapper {
    margin-left: auto;
    padding-left: 0.625rem;
  }

  .license-costs__item {
    align-items: center;
  }
}

@media (max-width: 20em) {
  .license-costs__header {
    margin-bottom: 0.75rem;
  }

  .license-costs__content {
    margin-top: 1.5rem;
  }
}

@media (min-width: 120em) {
  .license-costs__category h3 {
    font-size: 1.5rem;
  }

  .license-costs__item-title {
    font-size: 1.5rem;
  }

  .license-costs__item-text {
    font-size: 1.125rem;
  }
}
