/* BOS Product Family — colour switcher + size availability
   Colour chips mirror Journal push-option pills (same border/radius/padding). */
.bos-family-colours {
  margin: 0 0 1.25rem;
}
.bos-family-colours__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.bos-family-colours__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bos-family-colours__item a,
.bos-family-colours__item > span {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 33px;
  padding: 6px 12px;
  border: 2px solid rgba(28, 32, 33, 0.12);
  border-radius: 99px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.no-touchevents .bos-family-colours__item a:hover {
  border-color: rgb(28, 32, 33);
  background: rgb(250, 250, 250);
}
.bos-family-colours__item.is-current a,
.bos-family-colours__item.is-current > span {
  border-color: rgb(28, 32, 33);
  background: rgb(250, 250, 250);
}
.bos-family-colours__item.is-size-unavailable a,
.bos-family-colours__item.is-size-unavailable > span {
  opacity: 0.4;
}
.bos-family-colours__thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: #f3f3f3;
}
.bos-family-colours__name {
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
  line-height: inherit;
}

.bos-size-status {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  margin-top: 0.15rem;
  font-weight: 500;
}
.bos-size-status--in_stock {
  color: #1b7a3d;
}
.bos-size-status--delivery {
  color: #9a5b00;
}
.bos-size-status--unavailable {
  color: #888;
}

.product-options label.bos-opt--delivery .option-value,
.product-options .bos-opt--delivery {
  opacity: 1;
}
/* OOS stays selectable (for notify-me); faded only (non-grid radios) */
.product-options label.bos-opt--unavailable {
  opacity: 0.45;
  cursor: pointer;
}
.product-options label.bos-opt--unavailable input {
  cursor: pointer;
}
select.form-control option.bos-opt--delivery {
  font-style: italic;
}
select.form-control option.bos-opt--unavailable {
  color: #999;
}

/* —— Size option grid (H&M-style cells, light Journal chrome) —— */
/* Journal often lays .form-group as row (label | controls). Force stacked full-width. */
.product-options .bos-size-grid.form-group,
.product-options .bos-size-grid {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 1rem;
  float: none !important;
}
.product-options .bos-size-grid__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.5rem;
  float: none !important;
}
.product-options .bos-size-grid__head .control-label {
  display: block;
  float: none !important;
  width: auto !important;
  margin: 0;
  padding: 0;
}
.product-options .bos-size-grid__link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
  white-space: nowrap;
}
.product-options .bos-size-grid__link:hover,
.product-options .bos-size-grid__link:focus {
  color: inherit;
  opacity: 0.75;
}
/*
 * Fixed column widths (like competitor): short last row keeps cell size and
 * simply leaves empty space — no grow, no ghost/empty option node.
 */
.product-options .bos-size-grid > [id^="input-option"] {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  width: 100% !important;
  max-width: 100%;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.product-options .bos-size-grid .radio {
  flex: 0 0 20%;
  width: 20%;
  max-width: 20%;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(28, 32, 33, 0.28);
  margin-right: -1px !important;
  margin-bottom: -1px !important;
  background: #fff;
  min-width: 0;
  box-sizing: border-box;
}
.product-options .bos-size-grid .radio label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0.45rem 0.35rem;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: background-color 0.12s ease, box-shadow 0.12s ease;
}
.product-options .bos-size-grid .radio input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.product-options .bos-size-grid .option-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}
.product-options .bos-size-grid .option-value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.product-options .bos-size-grid .option-price,
.product-options .bos-size-grid .bos-size-status {
  display: none !important;
}
.product-options .bos-size-grid .radio label:has(input:checked) {
  box-shadow: inset 0 0 0 2px rgb(28, 32, 33);
  background: rgb(250, 250, 250);
}
.product-options .bos-size-grid label.bos-opt--unavailable {
  opacity: 1;
}
.product-options .bos-size-grid label.bos-opt--unavailable .option-value {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.45;
}
.no-touchevents .product-options .bos-size-grid .radio label:hover {
  background: rgb(250, 250, 250);
}
/* Foot only when Size guide URL is set (status lives in .product-stock). */
.product-options .bos-size-grid__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.55rem;
}
.product-stats .product-stock.bos-stock--in_stock span {
  color: #1b7a3d;
}
.product-stats .product-stock.bos-stock--delivery span {
  color: #9a5b00;
}
.product-stats .product-stock.bos-stock--unavailable span {
  color: #c0392b;
}
@media (max-width: 767.98px) {
  .product-options .bos-size-grid .radio {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
  }
}
@media (max-width: 419.98px) {
  .product-options .bos-size-grid .radio {
    flex: 0 0 33.333%;
    width: 33.333%;
    max-width: 33.333%;
  }
  .product-options .bos-size-grid .radio label {
    min-height: 46px;
  }
}

.bos-notify-slot {
  margin: 0 0 0.75rem;
}
.bos-notify-slot[hidden] {
  display: none !important;
}
.bos-notify-btn {
  width: 100%;
}
#button-cart.bos-cart--blocked,
[data-quick-buy].bos-cart--blocked {
  opacity: 0.45;
  pointer-events: none;
}

/* Brief feedback before colour-sibling navigation */
.product-info[data-bos-swipe="1"].bos-swipe--next,
.product-info[data-bos-swipe="1"].bos-swipe--prev {
  opacity: 0.72;
  transition: opacity 0.08s ease;
}
