/* Website-only refinements: every product rule starts at the website product. */
body.fbp.single-product.fbp-amazon-book-page div.product.fbp-web-book-product.fbp-amazon-refined>.fbp-book-detail-top-card{column-gap:var(--fbp-amazon-column-gap,36px)!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column{text-align:center}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .fbp-follow-author-row{justify-content:center}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .fbp-follow-author{padding:12px 0!important;margin:0!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .fbp-book-metadata-card{border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:4px 0 0!important;border-radius:0!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .fbp-book-metadata-card>.fbp-detail-section-bar{display:none!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .fbp-detail-section-body{padding:0!important;border:0!important;background:none!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column dl{margin:8px 0!important;display:block!important;font-size:13px!important;line-height:1.5!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column dt,body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column dd{float:none!important;display:block!important;width:auto!important;text-align:center!important;margin:0!important;min-height:0!important;padding:0!important;border:0!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column dd{margin-bottom:8px!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .woocommerce-product-attributes{border:0!important;margin:0!important;background:none!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-cover-column .woocommerce-product-attributes :is(th,td){border:0!important;text-align:center!important;background:none!important;padding:4px!important}
.fbp-sf-format-source{display:inline-block;font-size:14px;margin-left:12px;font-weight:400}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-buy-column .fbp-grouped-format-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-amazon-buy-column .fbp-grouped-format-card{min-width:0!important;font-size:13px!important;padding:10px!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-sf-action-card,.fbp-sf-story .fbp-sf-action-card{padding:16px!important;border:1px solid var(--fbp-book-card_border_color,#ddd)!important;border-radius:10px;background:var(--fbp-book-card_background,#fff);margin:12px 0}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-sf-action-card form.cart{border:0!important;padding:0!important;background:none!important;box-shadow:none!important;margin:0!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-sf-action-row,.fbp-sf-story .fbp-sf-action-row{display:flex!important;gap:10px!important;flex-wrap:wrap!important;margin-top:12px!important;align-items:stretch}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-sf-action-row>*,.fbp-sf-story .fbp-sf-action-row>*{flex:1 1 120px!important;width:auto!important;min-width:0!important;margin:0!important;box-sizing:border-box}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-sf-action-row :is(form,button,a),.fbp-sf-story .fbp-sf-action-row :is(form,button,a){max-width:100%;box-sizing:border-box}
body.fbp .fbp-web-book-product.fbp-amazon-refined .single_add_to_cart_button{background:var(--fbp-action-cart)!important;color:#172b39!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-book-buy-now{background:var(--fbp-action-buy)!important;color:#fff!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined [data-fbp-read-online],.fbp-sf-story [data-fbp-read-online]{background:var(--fbp-action-read)!important;color:#fff!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined :is(.fbp-library-save,.fbp-free-claim button),.fbp-sf-story [data-story-add] button{background:var(--fbp-action-library)!important;color:#fff!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined .fbp-store-save :is(button,a),body.fbp .fbp-web-book-product.fbp-amazon-refined a.fbp-store-save,.fbp-sf-story .fbp-sf-wishlist :is(button,a),.fbp-sf-story a.fbp-sf-wishlist{background:var(--fbp-action-wishlist)!important;color:#fff!important}
body.fbp .fbp-web-book-product.fbp-amazon-refined [data-fbp-sample]{background:var(--fbp-action-sample)!important;color:#fff!important;display:inline-block!important;margin:12px auto!important}
.fbp-popularity{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.fbp-popularity-label{display:inline-block!important;background:#a72c22!important;color:#fff!important;font:bold 13px/1.5 Arial,sans-serif!important;padding:4px 9px!important;border-radius:4px!important;position:static!important;transform:none!important}
.fbp-flash-fullwidth .sidebar{display:none!important}.fbp-flash-fullwidth .content{width:100%!important;float:none!important;margin:0!important}.fbp-flash-fullwidth .content_wrap{width:calc(100% - 40px)!important;max-width:1600px!important;margin-inline:auto!important}
.fbp-sf-story{max-width:1600px;margin:24px auto}.fbp-sf-overview{display:grid;grid-template-columns:minmax(190px,250px) minmax(0,1fr) minmax(260px,320px);gap:var(--fbp-amazon-column-gap,36px);align-items:start}.fbp-sf-cover-column{text-align:center;min-width:0}.fbp-sf-cover-column img{max-height:380px;max-width:100%;object-fit:contain}.fbp-sf-details{display:block;font-size:13px;line-height:1.5;margin:8px 0}.fbp-sf-details :is(dt,dd){margin:0;text-align:center}.fbp-sf-details dd{margin-bottom:8px}.fbp-sf-story .fbp-follow-author-row{display:flex;justify-content:center;gap:10px;align-items:center;flex-wrap:wrap}.fbp-sf-story .fbp-follow-author h2{font-size:18px}.fbp-sf-identity h1{font-size:clamp(25px,3vw,38px);line-height:1.2;margin:10px 0}.fbp-sf-middle,.fbp-sf-right{min-width:0}.fbp-sf-summary{font-size:16px;line-height:1.65}.fbp-sf-story>section{margin:28px 0;padding:20px}.fbp-sf-story .fbp-reader-simple-promo{padding:16px;border:1px solid #ddd;border-radius:10px;font-size:14px}.fbp-sf-story .fbp-sf-action-row form{margin:0}.fbp-sf-story .fbp-library-status-bar{padding:12px;background:#e9f4ff;border-radius:6px}.fbp-sf-layout-anchovy .fbp-sf-overview{grid-template-columns:minmax(190px,250px) minmax(0,1fr)}.fbp-sf-layout-anchovy .fbp-sf-right{grid-column:2}
.fbp-flash-shop-page{max-width:1500px;margin:24px auto}.fbp-flash-shop-page>header{margin:0 0 24px}.fbp-flash-shop-page>header h1{font-size:32px}.fbp-flash-shop-page .fbp-flash-all-heading{font-size:22px;font-weight:500}.fbp-custom-shop-row .fbp-product-row,.fbp-custom-shop-row .fbp-format-grid{gap:var(--fbp-row-item-gap,20px)!important}.fbp-custom-shop-row .fbp-story-cover{height:var(--fbp-row-cover,230px)!important;display:flex!important;justify-content:center;align-items:end}.fbp-custom-shop-row .fbp-story-cover img{height:auto!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important}.fbp-custom-shop-row{margin-bottom:24px}.fbp-sponsored{margin:20px auto;text-align:center;width:100%;box-sizing:border-box}.fbp-sponsored small{display:block;font:11px/1.5 Arial,sans-serif;letter-spacing:.05em;color:#666}.fbp-sponsored img{display:block;max-width:100%;height:auto;margin:auto}.fbp-sponsored picture{display:block}
@media(min-width:701px){.fbp-sponsored-mobile{display:none}.fbp-sf-story .fbp-sf-cover-column{grid-column:1}.fbp-sf-story .fbp-sf-middle{grid-column:2}.fbp-sf-story .fbp-sf-right{grid-column:3}.fbp-sf-layout-anchovy .fbp-sf-right{grid-column:2}}
@media(max-width:1100px) and (min-width:701px){.fbp-sf-overview{grid-template-columns:minmax(180px,220px) minmax(0,1fr)}.fbp-sf-right{grid-column:2!important}}
@media(max-width:700px){.fbp-sponsored-desktop{display:none}.fbp-sf-overview{display:flex;flex-direction:column;gap:20px}.fbp-sf-cover-column,.fbp-sf-middle,.fbp-sf-right{width:100%;box-sizing:border-box}.fbp-sf-cover-column img{max-height:250px}.fbp-sf-story{margin:16px 0}.fbp-sf-story .fbp-sf-middle{order:0}.fbp-sf-story .fbp-sf-cover-column{order:1}.fbp-sf-story .fbp-sf-right{order:2}.fbp-sf-story>section{padding:16px;margin:20px 0}.fbp-sf-identity h1{font-size:28px}.fbp-custom-shop-row.fbp-mobile-scroll .fbp-format-grid{display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity}.fbp-custom-shop-row.fbp-mobile-scroll .fbp-format-grid>article{flex:0 0 160px!important;scroll-snap-align:start}.fbp-flash-shop-row .fbp-format-scroll{overflow-x:auto}.fbp-flash-fullwidth .content_wrap{width:calc(100% - 28px)!important}}

.fbp-sf-reader-logo{width:36px;height:36px;object-fit:contain;vertical-align:middle;margin-right:8px}.fbp-sf-story .fbp-follow-author-row img{width:40px;height:40px;border-radius:50%;object-fit:cover}.fbp-sf-popularity-source{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.fbp-sf-popularity-source small{font-size:12px}
body.fbp-amazon-book-page .page_content_wrap .content{width:100%!important;max-width:none!important}body.fbp-amazon-book-page .page_content_wrap .sidebar{display:none!important}

.fbp-flash-shop-row .fbp-shelf-card{background:var(--shop-row-bg,#fff)!important;border-color:var(--shop-row-border,#ddd)!important;color:var(--shop-row-color,#222)!important}.fbp-flash-shop-row{margin-bottom:var(--shop-row-gap,24px)}.fbp-flash-shop-row .fbp-sf-wishlist{margin-top:8px}.fbp-flash-shop-row .fbp-sf-wishlist button,.fbp-flash-shop-row a.fbp-sf-wishlist{background:var(--fbp-action-wishlist)!important;color:#fff!important;padding:9px 14px!important;font-size:13px!important}.fbp-flash-shop-row .fbp-market-author,.fbp-flash-shop-row .fbp-book-genre,.fbp-flash-shop-row .fbp-book-series{font-size:13px!important;margin:5px 0!important}
@media(max-width:700px){.fbp-custom-shop-row.fbp-mobile-grid .fbp-format-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}.fbp-custom-shop-row.fbp-mobile-grid .fbp-format-grid>article{min-width:0!important;width:100%!important}}

@media(max-width:700px){.fbp-sf-overview.fbp-sf-mobile{display:grid;grid-template-columns:minmax(84px,28%) minmax(0,1fr);gap:20px 16px;align-items:start}.fbp-sf-mobile>.fbp-story-detail-cover{grid-column:1;grid-row:1;min-width:0}.fbp-sf-mobile>.fbp-story-detail-cover img{max-height:220px;width:100%;height:auto;object-fit:contain}.fbp-sf-mobile>.fbp-sf-identity{grid-column:2;grid-row:1;min-width:0}.fbp-sf-mobile>.fbp-sf-middle{grid-column:1/-1;order:2}.fbp-sf-mobile>.fbp-sf-cover-column{grid-column:1/-1;order:3}.fbp-sf-mobile>.fbp-sf-right{grid-column:1/-1;order:4}.fbp-sf-mobile>.fbp-sf-identity h1{font-size:24px;overflow-wrap:break-word}.fbp-sf-mobile .fbp-sf-byline{font-size:14px;line-height:1.5}.fbp-sf-mobile .fbp-sf-cover-column .fbp-sf-details{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;text-align:left}.fbp-sf-mobile .fbp-sf-details :is(dt,dd){text-align:left;margin:0}}

/* Homepage/shop row actions only; Reader and Library are excluded by row wrappers. */
[data-row-display] .fbp-market-book,[data-row-display] .fbp-story-tile{display:flex;flex-direction:column;height:100%;min-width:0}
[data-row-display] .fbp-market-copy,[data-row-display] .fbp-story-tile-body{display:flex;flex-direction:column;flex:1;min-width:0}
[data-row-display] .fbp-market-actions{margin-top:auto!important;padding-top:16px;display:flex!important;flex-direction:column;align-items:stretch;gap:10px}
[data-row-display] .fbp-market-actions>span,[data-row-display] .fbp-market-actions>form,[data-row-display] .fbp-format-actions{display:flex;flex-direction:column;gap:10px;margin:0;width:100%}
[data-row-display] .fbp-market-actions .button,[data-row-display] .fbp-market-actions button{box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-height:44px;width:100%;margin:0!important;white-space:normal;line-height:1.3}
[data-row-display] .fbp-market-cover,[data-row-display] .fbp-story-cover{height:280px;display:flex;justify-content:center;align-items:center}
[data-row-display] .fbp-market-cover img,[data-row-display] .fbp-story-cover img{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}
@media(max-width:700px){[data-row-display] .fbp-market-cover,[data-row-display] .fbp-story-cover{height:220px}[data-row-display] .fbp-market-actions{gap:8px;padding-top:12px}}
