.bookstore .product-details {
  display: block;
  max-width: 760px;
  margin-inline: auto;
}
.bookstore .product-details h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  margin: 42px 0 20px;
  max-width: 680px;
}
.bookstore .product-details h2:first-child { margin-top: 0; }
.bookstore .product-details h2:not(:first-child) { margin-top: 42px; }
.bookstore .product-details p,
.bookstore .product-details > p:first-of-type,
.bookstore .product-details li {
  font-size: 16px;
  line-height: 1.8;
  max-width: none;
}
.bookstore .product-details p { margin: 0 0 20px; }
.bookstore .product-details ul,
.bookstore .product-details ol { margin: 20px 0 28px; padding-left: 24px; }
.bookstore .product-details li + li { margin-top: 10px; }
.bookstore .product-details > :last-child { margin-bottom: 0; }
.bookstore .product-payment-marks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  max-width: 440px;
}
.bookstore .payment-mark {
  display: flex;
  min-width: 0;
  height: 54px;
  padding: 0 5px;
  border: 0;
  overflow: visible;
}
.bookstore .payment-mark img {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}
.bookstore .payment-mark--apple img { width: 54px; height: 54px; }
.bookstore .payment-mark--google img { width: 64px; height: 54px; }
.bookstore .payment-mark--blik img { width: 62px; height: auto; }
.bookstore .payment-mark--visa img { width: 58px; height: 54px; }
.bookstore .payment-mark--mastercard img { width: 52px; height: auto; }
.bookstore .cs-checkout-summary .wc_payment_method > label img {
  display: block;
  width: auto;
  height: 24px;
  max-width: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}
.bookstore .account-auth-grid,
.bookstore .account-auth-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bookstore .account-auth-grid--single { grid-template-columns: minmax(0, 1fr); }
.bookstore .account-auth-card,
.bookstore .account-auth-intro > *,
.bookstore .product-summary { min-width: 0; }
.bookstore .account-form-actions { flex-wrap: wrap; }
.bookstore .product-tab-list button:focus-visible,
.bookstore .category-menu summary:focus-visible { outline: 3px solid #ed6643; outline-offset: -3px; }

@media (max-width: 900px) {
  .bookstore .account-auth-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .bookstore .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-bottom: 24px; padding: 18px; }
  .bookstore .woocommerce-MyAccount-navigation ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .bookstore .woocommerce-MyAccount-navigation a { font-size: 13px; min-height: 48px; }
  .bookstore .woocommerce-MyAccount-content { margin-left: 0; }
}
@media (max-width: 760px) {
  .bookstore .woocommerce-MyAccount-content .woocommerce-orders-table,
  .bookstore .woocommerce-orders-table tbody { display: block; }
  .bookstore .woocommerce-orders-table thead { display: none; }
  .bookstore .woocommerce-orders-table tr { display: block; margin-bottom: 22px; border: 1px solid #d6dfe2; border-radius: 14px; padding: 10px 14px; }
  .bookstore .woocommerce-orders-table tr th,
  .bookstore .woocommerce-orders-table tr td { display: block; width: 100%; padding: 12px 0; text-align: left; }
  .bookstore .woocommerce-orders-table [data-title]::before { content: attr(data-title) ": "; display: inline; float: none; font-weight: 700; margin-right: 8px; }
  .bookstore .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before { display: block; margin-bottom: 8px; }
  .bookstore .account-auth-grid { grid-template-columns: minmax(0, 1fr); }
  .bookstore input:not([type=checkbox]):not([type=radio]):not([type=submit]),
  .bookstore select,
  .bookstore textarea { font-size: 16px; max-width: 100%; }
  .bookstore .category-row { flex-wrap: wrap; gap: 0; }
  .bookstore .category-menu { flex: 1 0 100%; position: static; }
  .bookstore .category-menu summary { min-height: 48px; font-size: 13px; }
  .bookstore .category-row .shelf-nav {
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    gap: 24px;
    padding: 0 0 8px;
    scrollbar-width: thin;
  }
  .bookstore .shelf-nav a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
  .bookstore .mega-menu { width: 100%; max-width: 100%; left: 0; }
  .bookstore .product-tab-list { display: grid; grid-template-columns: 1fr 1.3fr 1fr; overflow: visible; }
  .bookstore .product-tab-list button { min-width: 0; min-height: 52px; font-size: 12px; padding: 8px 4px; white-space: normal; }
  .bookstore .product-tab-panel { padding: 30px 22px; }
  .bookstore .product-questions { min-width: 0; }
  .bookstore .faq-list summary { font-size: 15px; line-height: 1.5; min-height: 48px; gap: 16px; }
  .bookstore .faq-list summary span { flex-shrink: 0; }
  .bookstore .faq-list p,
  .bookstore .product-confidence p { font-size: 15px; line-height: 1.75; }
  .bookstore .page-content p,
  .bookstore .page-content li { font-size: 15px; line-height: 1.75; }
  .bookstore .woocommerce-MyAccount-navigation a { min-height: 48px; font-size: 12px; }
  .bookstore .woocommerce-MyAccount-content { min-width: 0; overflow-wrap: anywhere; }
  .bookstore .account-auth-card label { font-size: 13px; }
  .bookstore .woocommerce-MyAccount-content form label { font-size: 14px; line-height: 1.6; }
  .bookstore .woocommerce-EditAccountForm em { display: block; font-family: inherit; font-style: normal; font-size: 13px; line-height: 1.7; color: #5b6c7e; margin-top: 8px; }
  .bookstore .woocommerce-MyAccount-content fieldset { min-width: 0; padding: 18px 14px; border: 1px solid #d6dfe2; border-radius: 12px; margin: 24px 0; }
  .bookstore .account-form-actions { font-size: 13px; gap: 16px; }
  .bookstore .account-auth-card small,
  .bookstore .woocommerce-privacy-policy-text { font-size: 12px; line-height: 1.7; }
  .bookstore .cs-library__card { overflow-wrap: anywhere; }
  .bookstore .shop_table .button { white-space: normal; }
}
@media (max-width: 580px) {
  .bookstore .page-content:has(> .cs-newsletter) { padding: 0; background: transparent; box-shadow: none; border: 0; }
  .bookstore .button,
  .bookstore button.button,
  .bookstore .woocommerce a.button,
  .bookstore .woocommerce button.button { font-size: 14px; }
  .bookstore .utility-bar nav a { font-size: 10px; }
  .bookstore .page-hero__art,
  .bookstore .empty-cart-art { display: none; }
  .bookstore .woocommerce-cart-form .cart_item { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr); gap: 10px; align-items: center; padding-block: 18px; }
  .bookstore .woocommerce-cart-form .cart_item td { border: 0; padding: 0; width: auto; }
  .bookstore .woocommerce-cart-form .product-thumbnail img { width: 64px; height: 86px; object-fit: contain; }
  .bookstore .woocommerce-cart-form .product-name { font-size: 15px; line-height: 1.5; }
  .bookstore .woocommerce-cart-form .product-quantity { grid-column: 3; }
  .bookstore .woocommerce-cart-form .product-quantity .quantity input { width: 76px; }
  .bookstore .woocommerce-cart-form .product-subtotal { grid-column: 3; font-size: 16px; }
  .bookstore .woocommerce-cart-form .coupon { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bookstore .woocommerce-cart-form .coupon input { width: 100% !important; min-height: 52px; }
  .bookstore .woocommerce-cart-form .coupon button { width: 100%; }
  .bookstore .woocommerce-cart-form td.actions > .button { width: 100%; }
  .bookstore .campaign-main { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 18px; }
  .bookstore .campaign-copy { min-width: 0; padding: 0; }
  .bookstore .campaign-copy h1 { font-size: clamp(40px, 10vw, 54px); line-height: 1.04; }
  .bookstore .campaign-copy p { max-width: 100%; font-size: 16px; line-height: 1.7; }
  .bookstore .campaign-book { min-height: 300px; width: 100%; padding: 8px 0 52px; }
  .bookstore .campaign-book img { max-height: 290px; width: auto; max-width: 80%; }
  .bookstore .campaign-caption { bottom: 0; font-size: 12px; }
  .bookstore .campaign-side { grid-template-columns: minmax(0, 1fr); }
  .bookstore .side-card { min-height: 200px; padding: 26px; }
  .bookstore .side-card h2 { font-size: 28px; }
  .bookstore .side-card p { font-size: 15px; }
  .bookstore .store-heading { flex-wrap: wrap; gap: 16px; }
  .bookstore .store-heading h2 { font-size: 31px; }
  .bookstore .store-heading > a { font-size: 13px; }
  .bookstore .book-info h3 { font-size: 16px; line-height: 1.45; }
  .bookstore .book-category { font-size: 11px; line-height: 1.5; }
  .bookstore .book-buy { gap: 6px; }
  .bookstore .book-buy strong { font-size: 17px; }
  .bookstore .book-buy > a,
  .bookstore .save-book { min-width: 44px; min-height: 44px; }
  .bookstore .product-summary .woocommerce-product-details__short-description p { font-size: 16px; line-height: 1.75; }
  .bookstore .product-payments { padding: 16px 12px; }
  .bookstore .product-payments__label { font-size: 13px; }
  .bookstore .download-note,
  .bookstore .product-art__note { font-size: 12px; line-height: 1.6; }
  .bookstore .product-art__note { max-width: 180px; }
  .bookstore .account-auth { padding: 28px 18px; }
  .bookstore .account-auth-card { padding: 26px 18px; }
  .bookstore .account-auth-intro h2 { font-size: 42px; }
  .bookstore .page-hero p { font-size: 15px; max-width: 100%; }
  .bookstore .catalog-heading p { font-size: 15px; }
  .bookstore .library-banner p,
  .bookstore .shopping-help p { font-size: 15px; line-height: 1.75; }
}
@media (max-width: 360px) {
  .bookstore .product-tab-panel { padding: 26px 17px; }
  .bookstore .product-payment-marks { gap: 2px; }
  .bookstore .payment-mark { padding: 0 3px; }
  .bookstore .woocommerce-MyAccount-navigation ul { grid-template-columns: minmax(0, 1fr); }
  .bookstore .book-grid { grid-template-columns: minmax(0, 1fr); }
}
