.book-row {
  grid-auto-columns: 230px;
  gap: 18px;
}

.book-card-open {
  grid-template-rows: 185px auto auto auto;
}

.book-cover {
  height: 185px;
}

.book-cover img {
  display: block;
  object-fit: contain;
  object-position: center top;
}

.catalog-banner {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: min(520px, calc(100% - 24px));
  min-height: 58px;
  padding: 8px 14px;
}

.catalog-banner p {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.library-banner {
  margin-top: 0;
}

.library-actions {
  justify-content: center;
}

.library-actions .primary-command {
  min-width: 120px;
}

.reader-footer-actions {
  padding: 24px 20px 34px;
}

.reader-footer-actions .reader-purchase-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--ov-brand);
  border-radius: 5px;
  background: var(--ov-brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 680px) {
  .book-row {
    grid-auto-columns: 190px;
    gap: 12px;
  }

  .book-card-open {
    grid-template-rows: 160px auto auto auto;
  }

  .book-cover {
    height: 160px;
  }
}

@media (max-width: 600px) {
  .catalog-banner {
    width: min(420px, calc(100% - 20px));
    min-height: 54px;
    padding: 7px 10px;
  }

  .catalog-banner p {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .book-row {
    grid-auto-columns: 176px;
  }

  .book-card-open {
    grid-template-rows: 150px auto auto auto;
  }

  .book-cover {
    height: 150px;
  }
}

.catalog-banner.library-banner {
  min-height: 34px;
  padding: 5px 12px;
}

.catalog-banner.library-banner p {
  font-size: 16px;
  line-height: 1.15;
}

.library-cover {
  padding: 0;
  border: 0;
  cursor: pointer;
}

.library-detail-actions {
  justify-content: center;
}

@media (max-width: 600px) {
  .catalog-banner.library-banner {
    min-height: 32px;
    padding: 4px 10px;
  }
}


