.bought-together { max-width:1192px;margin:0 auto;padding:28px 24px 40px;border-top:1px solid #dce3e0; }
.bought-together h2 { font-size:24px;line-height:1.3;margin:0 0 24px; }
.together-products { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px; }
.together-product { display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:start;min-width:0; }
.together-image img { width:100%;aspect-ratio:1;object-fit:contain;background:#f6f8f7; }
.together-choice { display:flex;align-items:start;gap:8px;font-size:14px;line-height:1.5;font-weight:600; }
.together-choice input { width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;accent-color:#087c12; }
.together-controls { display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:8px;margin-top:12px; }
.together-controls label { display:grid;gap:4px;min-width:0;font-size:12px;color:#576660; }
.together-controls :is(select,input) { box-sizing:border-box;width:100%;height:38px;min-width:0;padding:6px;border:1px solid #b9c5bf;border-radius:4px;background:#fff;font:inherit;color:#24372e; }
.together-price { display:block;margin-top:12px;font-size:15px;font-variant-numeric:tabular-nums; }
.together-product.is-unselected .together-image { opacity:.55; }.together-product.is-unselected .together-price { color:#66756e; }
.together-footer { display:flex;justify-content:flex-end;gap:24px;align-items:center;margin-top:28px;padding-top:20px;border-top:1px solid #dce3e0; }
.together-footer p { margin:0;font-size:15px; }.together-footer p strong { margin-left:12px;font-size:22px; }
.together-footer .button { min-height:50px; }
/* Share title/control/price rows so every card follows the longest title. */
@media(min-width:701px) {
  .biybooks .together-products { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));row-gap:24px; }
  .biybooks .together-product {
    grid-template-columns:100px minmax(0,1fr);
    grid-template-rows:subgrid;
    grid-row:span 3;
    row-gap:0;
  }
  .biybooks .together-details { display:contents; }
  .biybooks .together-image { grid-column:1;grid-row:1 / span 3;align-self:start; }
  .biybooks .together-choice { grid-column:2;grid-row:1;margin:0;overflow-wrap:anywhere; }
  .biybooks .together-controls { grid-column:2;grid-row:2;align-self:start; }
  .biybooks .together-price { grid-column:2;grid-row:3;align-self:start; }
}
.biybooks .together-details { min-width:0; }
.biybooks .together-choice span { min-width:0;overflow-wrap:anywhere; }
@media(max-width:1000px) { .together-products { gap:24px; }.together-product { grid-template-columns:1fr; }.together-image { max-width:150px; }.together-image img { height:150px; } }
@media(max-width:700px) { .bought-together { padding:24px 20px 32px; }.bought-together h2 { font-size:22px; }.together-products { grid-template-columns:1fr;gap:24px; }.together-product { grid-template-columns:84px minmax(0,1fr);gap:16px; }.together-image img { height:100px; }.together-footer { align-items:stretch;flex-direction:column;gap:16px; }.together-footer p { display:flex;justify-content:space-between;align-items:center; }.together-footer .button { width:100%; } }
