.bsm { max-width: 760px; margin: 0 auto 2rem; padding: 0 1rem; }
.bsm__actions { margin-bottom: 1.25rem; text-align: center; }
.bsm__actions--bottom { margin: 1.75rem 0 0; }
.bsm__actions .btn { max-width: 100%; white-space: normal; }
.bsm__intro { margin-bottom: 1rem; text-align: center; }
.bsm__form { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.bsm__select { width: 100%; max-width: 420px; padding: .6rem 1rem; border: 1px solid #d9d9e3; border-radius: var(--particlepeptides-radius-lg, 12px); background: #fff; }
.bsm__button { padding: .6rem 1.25rem; border: 0; border-radius: 999px; background: var(--particlepetides-secondary-violet-color, #732876); color: #fff; }
.bsm__hint { font-size: .85rem; color: #6b6b7b; margin-bottom: 1rem; text-align: center; }
.bsm__summary { font-weight: 600; margin: 1rem 0; text-align: center; }
.bsm__notice { text-align: center; padding: 1rem 1.25rem; border-radius: var(--particlepeptides-radius-lg, 12px); margin: 1rem 0; }
.bsm__notice--error { background: #f8e7e7; color: #b3261e; }
.bsm__table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e4e4ee; border-radius: var(--particlepeptides-radius-lg, 12px); overflow: hidden; }
.bsm__table th, .bsm__table td { padding: .7rem 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid #eeeef5; }
.bsm__table thead th { background: #f6f3f8; font-weight: 600; }
.bsm__table tbody tr:last-child td { border-bottom: 0; }
.bsm__product { display: flex; align-items: center; gap: .85rem; }
.bsm__thumb { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid #eeeef5; }
.bsm__col-stock { width: 130px; white-space: nowrap; }
.bsm__stock { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.bsm__stock--in { background: #e3f4e8; color: #1e8e3e; }
.bsm__stock--out { background: #eeeef5; color: #6b6b7b; }
.bsm__col-status { width: 110px; text-align: center !important; }
.bsm__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; vertical-align: middle; }
.bsm__icon svg { display: block; flex: none; width: 18px; height: 18px; margin: 0; }
/* the theme has a global svg { fill: ... } rule - without this the line icons turn into filled blobs */
.bsm__icon svg, .bsm__icon svg path { fill: none !important; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bsm__icon--yes { background: #e3f4e8; color: #1e8e3e; }
.bsm__icon--no { background: #fbe4e4; color: #c62828; }
.bsm__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Mobile: no thumbnails, compact cells, so the table always fits the screen width */
@media (max-width: 575px) {
  /* the theme wraps the page in a padded card - trim the side gutters so the table gets the full width */
  #module-be_shipping_matrix-matrix #content.page-content { padding-left: 0; padding-right: 0; }
  .bsm { padding: 0; }
  .bsm__table { table-layout: auto; }
  .bsm__table th, .bsm__table td { padding: .6rem .5rem; font-size: .9rem; }
  .bsm__table th:first-child, .bsm__table td:first-child { padding-left: .75rem; }
  .bsm__table th:last-child, .bsm__table td:last-child { padding-right: .75rem; }
  .bsm__thumb { display: none; }
  .bsm__product { display: block; overflow-wrap: break-word; }
  .bsm__col-stock { width: 1%; }
  .bsm__stock { padding: .1rem .5rem; font-size: .72rem; }
  .bsm__col-status { width: 1%; }
  .bsm__icon { width: 26px; height: 26px; }
  .bsm__icon svg { width: 15px; height: 15px; }
}

/* Very small phones: drop the stock column, the product name needs the space */
@media (max-width: 400px) {
  .bsm__table .bsm__col-stock { display: none; }
}
