/* v297 — books page only: tidy purchase buttons.
   Every Buy button has the same full width of the card column; under each one sits a small secondary
   «или через PayPal» button. Owned badge and Amazon button use the same full width. */
.book-card__actions {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 24rem;
}
.book-card__actions .btn {
  justify-content: center;
  text-align: center;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  flex: 0 0 auto;
  width: 100%;
}
.book-card__actions [data-book-buy] { margin-top: 0.45rem; }
.book-card__actions [data-book-buy]:first-child,
.book-card__actions .book-owned294 + [data-book-buy] { margin-top: 0; }
.book-card__actions .pi-paypal-button {
  align-self: center;
  margin: 0;
  width: auto;
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.book-card__actions .pi-paypal-button:hover { border-color: #0070ba; text-decoration: none; }
.book-card__actions [data-amazon-asin],
.book-card__actions [aria-disabled="true"] { margin-top: 0.45rem; }
.book-card__actions .book-owned294 { margin-bottom: 0.1rem; }
.book-card__actions .book-owned294 .btn { white-space: nowrap; }
