/*
 * Bebelplatz FASE 15.3 — Book Detail QA
 */

.bp152-book-copy,
.bp152-context-block,
.bp152-author-copy,
.bp152-book-grid > * {
  min-width: 0;
}

.bp152-book-copy h1,
.bp152-author-copy h3,
.bp152-context-links span,
.bp152-book-copy a,
.bp152-breadcrumb {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.bp152-cover,
.bp152-author-image img,
.bp152-book-grid img {
  max-width: 100%;
}

.bp152-cart-form .book-quanlity {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-right: 8px;
  color: #5f554d;
  font-size: 12px;
  font-weight: 700;
}

.bp152-cart-form .quantity {
  display: flex;
  align-items: center;
}

.bp152-cart-form .qty {
  min-width: 72px;
}

.bp152-context-links a,
.bp152-explore-nav a,
.bp152-favorite .bp11-favorite-button,
.bp152-cart-form .single_add_to_cart_button {
  touch-action: manipulation;
}

@media (max-width: 760px) {
  .bp152-breadcrumb {
    gap: 6px;
    font-size: 11px;
  }

  .bp152-book-copy h1 {
    max-width: 100%;
  }

  .bp152-price-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .bp152-shell {
    width: min(100% - 20px, 400px);
  }

  .bp152-hero {
    padding-top: 26px;
  }

  .bp152-book-copy h1 {
    font-size: clamp(36px, 12vw, 48px);
    line-height: 1;
  }

  .bp152-byline {
    font-size: 16px;
  }

  .bp152-facts {
    grid-template-columns: 1fr;
  }

  .bp152-facts > div:last-child:nth-child(3) {
    grid-column: auto;
  }

  .bp152-cart-form form.cart {
    grid-template-columns: 1fr;
  }

  .bp152-cart-form .quantity {
    display: grid;
    grid-template-columns: auto 76px;
    justify-content: start;
  }

  .bp152-cart-form .single_add_to_cart_button {
    width: 100%;
  }

  .bp152-author-card {
    grid-template-columns: 72px minmax(0,1fr);
  }

  .bp152-author-image {
    align-self: start;
  }

  .bp152-book-grid {
    gap: 22px 10px;
  }
}

@media (max-width: 340px) {
  .bp152-book-grid {
    grid-template-columns: 1fr;
  }

  .bp152-cover-frame {
    width: min(100%, 276px);
  }
}

/* 15.3 visual QA repairs */
.bp152-author-card--no-image {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.bp152-author-card--no-image .bp152-author-copy {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .bp152-buy-panel,
  .bp152-cart-form,
  .bp152-cart-form form.cart {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bp152-cart-form form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .bp152-cart-form .quantity {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    float: none !important;
    margin: 0 !important;
  }

  .bp152-cart-form .qty {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .bp152-cart-form .single_add_to_cart_button {
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}
