/* FIF FASHION — real colour-only matrix; verified 27-Nov-2026; 31px mobile buttons */
@media (max-width: 767px) {
  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 6px !important;
    gap: 6px 14px !important;
    width: calc(100% + 90px) !important;
    max-width: calc(100% + 90px) !important;
    margin: 0 -45px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) .fif-color-list {
    display: contents !important;
  }

  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) button.fif-color-choice {
    display: flex !important;
    flex: 0 0 31px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    margin: 0 !important;
    padding: 0 7px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) button.fif-color-choice .fif-color-name,
  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) button.fif-color-choice .fif-color-label-cell {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    text-overflow: clip !important;
  }

  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) button.fif-color-choice .fif-color-dot,
  html body.single-product div.product .fif-product-purchase
  .fif-size-color-matrix:not(:has(.fif-size-column)) button.fif-color-choice .fif-color-swatch-cell {
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
  }
}
