/* Beds & Sheets v1.0.56 — mobile single-product options layout refinement.
   Exactly two equal-size variant columns, neatly balanced colour options,
   robust header alignment and uncluttered information tabs.
   Scoped to the mobile product page; no changes to desktop or purchase dock. */
@media (max-width: 767px) {
  .bs137-product-route .bs155-product-body .bs156-variant-group {
    display:block;
    width:100%;
    min-width:0;
    margin:22px 0 0;
    padding:0;
    border:0;
    box-sizing:border-box;
  }
  .bs137-product-route .bs156-option-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:nowrap;
    gap:12px;
    min-height:38px;
    margin:0 0 12px;
    padding:0;
  }
  .bs137-product-route .bs156-option-title {
    font:750 15px/1.3 Arial,Helvetica,sans-serif;
    color:#38241b;
  }
  .bs137-product-route .bs156-option-heading .bs156-guide {
    position:static;
    flex-shrink:0;
    margin:0;
    padding:8px 12px;
    border:1px solid #b98a5e;
    border-radius:999px;
    background:#fffbf6;
    color:#70442b;
    font:700 12px/1.25 Arial,Helvetica,sans-serif;
    min-height:35px;
    text-decoration:none;
  }
  .bs137-product-route .bs156-size-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px !important;
    width:100%;
  }
  .bs137-product-route .bs156-size-grid > button {
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:63px;
    width:100%;
    padding:10px 6px;
    gap:4px;
    border-radius:14px;
    box-sizing:border-box;
    text-align:center;
    line-height:1.25;
  }
  .bs137-product-route .bs156-size-grid .bs156-option-value {
    max-width:100%;
    font-size:14px;
    font-weight:700;
    overflow-wrap:anywhere;
  }
  .bs137-product-route .bs156-size-grid .bs142-choice-price {
    display:block;
    color:inherit;
    font-size:11px;
    font-weight:500;
    opacity:.78;
    white-space:nowrap;
    max-width:100%;
  }
  .bs137-product-route .bs156-size-grid > button.selected .bs142-choice-price {color:#fff;opacity:.9;}
  .bs137-product-route .bs156-colours {margin-top:21px;margin-bottom:0;}
  .bs137-product-route .bs156-colour-grid {
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:9px !important;
    width:100%;
  }
  .bs137-product-route .bs156-colour-grid > button {
    grid-column:span 2;
    min-width:0;
    width:100%;
    min-height:44px;
    padding:9px 5px;
    border-radius:999px;
    font-size:13px;
    font-weight:650;
    text-align:center;
    line-height:1.2;
    box-sizing:border-box;
    overflow-wrap:anywhere;
  }
  /* Center the final incomplete colour row for ANY number of colours. */
  .bs137-product-route .bs156-colour-grid > button:nth-last-child(2):nth-child(3n+1){grid-column:2/span 2;}
  .bs137-product-route .bs156-colour-grid > button:last-child:nth-child(3n+2){grid-column:4/span 2;}
  .bs137-product-route .bs156-colour-grid > button:last-child:nth-child(3n+1){grid-column:3/span 2;}
  .bs137-product-route .bs155-product-section-nav {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin:25px 0 0;
    padding:0 0 16px;
  }
  .bs137-product-route .bs155-product-section-nav > button {
    min-width:0;
    width:100%;
    min-height:46px;
    padding:9px 4px;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:clamp(11px,3.2vw,13px);
    line-height:1.2;
    font-weight:700;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}
