.stead-book-purchase {
  margin-block: 1.25rem;
  max-inline-size: 36rem;
}

.stead-book-purchase__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding-block: .875rem;
  border-block: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
  font-size: .9375rem;
}

.stead-book-purchase__details {
  display: grid;
  gap: .125rem;
  overflow-wrap: anywhere;
}

.stead-book-purchase a.stead-book-purchase__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: .5rem 1rem;
  border-radius: .25rem;
  background: var(--stead-book-purchase-action, #243b69);
  color: var(--stead-book-purchase-on-action, #fff);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.stead-book-purchase a.stead-book-purchase__primary:hover {
  text-decoration: underline;
}

.stead-book-purchase a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.stead-book-purchase a.stead-book-purchase__primary:focus-visible {
  outline-color: var(--stead-book-purchase-action, #243b69);
}

.stead-book-purchase__retailer {
  margin-top: .625rem;
  font-size: .9375rem;
}

.stead-book-purchase__terms {
  margin-block: .625rem 0;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .stead-book-purchase__offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .stead-book-purchase a.stead-book-purchase__primary {
    width: 100%;
  }
}
