/* =====================================================
   ASYLUM – SIZE BUTTONS (type-radio)
   Safe for PrestaShop 8.x + Asylum
   ===================================================== */

/* Container: horizontal layout */
.product-variants-item > ul.type-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

/* LI wrapper */
.product-variants-item > ul.type-radio > li.input-container {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Keep native radio input (DO NOT display:none) */
.product-variants-item > ul.type-radio input.input-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Size button */
.product-variants-item > ul.type-radio .radio-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 54px;
  height: 54px;
  padding: 0 14px;

  background: #ffffff;
  border: 1px solid #111;
  color: #111;

  font-size: 15px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  transition: all 0.2s ease;
}

/* Hover */
.product-variants-item > ul.type-radio .radio-label:hover {
  background: #f5f5f5;
}

/* Active (checked) */
.product-variants-item
> ul.type-radio
input.input-radio:checked
+ .radio-label {
  background: #111;
  color: #fff;
}

/* Disabled / out of stock */
.product-variants-item
> ul.type-radio
input.input-radio:disabled
+ .radio-label {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Prevent hover on disabled */
.product-variants-item
> ul.type-radio
input.input-radio:disabled
+ .radio-label:hover {
  background: #fff;
}

/* ONE SIZE – auto wider button */
.product-variants-item
> ul.type-radio
.radio-label {
  max-width: 100%;
}

/* Mobile tuning */
@media (max-width: 480px) {
  .product-variants-item > ul.type-radio {
    gap: 8px;
  }

  .product-variants-item > ul.type-radio .radio-label {
    min-width: 48px;
    height: 48px;
    font-size: 14px;
  }
}