/* TANKZONE_HOME_CATEGORIES_AND_SIZE_CHIPS_V32 */

/* The mobile category cards were previously forced into four narrow columns. */
@media (max-width: 860px) {
  html.tz-modern-mobile .tz-mobile-categories {
    padding: 20px 0 24px !important;
  }

  html.tz-modern-mobile .tz-mobile-categories .shell {
    width: min(calc(100% - 28px), 1280px) !important;
  }

  html.tz-modern-mobile .tz-mobile-categories-head {
    align-items: center !important;
    margin-bottom: 14px !important;
  }

  html.tz-modern-mobile .tz-mobile-categories-head strong {
    font-size: clamp(19px, 5.2vw, 24px) !important;
    font-weight: 850 !important;
    letter-spacing: -.02em;
  }

  html.tz-modern-mobile .tz-mobile-categories-head span {
    font-size: 13px !important;
    line-height: 1.35;
  }

  html.tz-modern-mobile .tz-mobile-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html.tz-modern-mobile .tz-mobile-category {
    min-width: 0 !important;
    min-height: 112px !important;
    padding: 15px 14px !important;
    border: 1px solid #d7d7d1 !important;
    border-radius: 16px !important;
    background: #f3f2ee !important;
    overflow: hidden;
  }

  html.tz-modern-mobile .tz-mobile-category:focus-visible {
    outline: 3px solid rgba(215, 25, 32, .28) !important;
    outline-offset: 2px;
  }

  html.tz-modern-mobile .tz-mobile-category-top {
    gap: 10px !important;
  }

  html.tz-modern-mobile .tz-mobile-category-index {
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  html.tz-modern-mobile .tz-mobile-category-arrow {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, .07);
    font-size: 13px !important;
  }

  html.tz-modern-mobile .tz-mobile-category strong {
    overflow-wrap: normal !important;
    word-break: normal !important;
    font-size: clamp(15px, 4.1vw, 18px) !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
  }

  html.tz-modern-mobile .tz-mobile-category.tz32-category-wide {
    grid-column: 1 / -1;
    min-height: 92px !important;
  }

  /* Keep the real select as the form value, but remove the duplicated UI. */
  html.tz-modern-mobile.tz-product-page
    .product-info
    .product-form.tz32-chip-only
    select[data-tz32-native-variant="hidden"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    pointer-events: none !important;
  }

  html.tz-modern-mobile.tz-product-page
    .product-info
    .product-form.tz32-chip-only
    .tz-option-fallback-note {
    display: none !important;
  }

  html.tz-modern-mobile.tz-product-page
    .product-info
    .product-form.tz32-chip-only
    .tz-option-ui {
    margin: 4px 0 14px !important;
  }

  html.tz-modern-mobile.tz-product-page
    .product-info
    .product-form.tz32-chip-only
    .tz-option-chip {
    min-width: 52px !important;
    min-height: 46px !important;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    font-size: 16px !important;
  }

  html.tz-modern-mobile.tz-product-page
    .product-info
    .product-form.tz32-chip-only
    .tz-color-chip {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  html.tz-modern-mobile.tz-product-page
    .product-info
    .product-form.tz32-choice-needed
    .tz-option-ui {
    border-radius: 14px;
    outline: 2px solid rgba(215, 25, 32, .32);
    outline-offset: 7px;
  }
}

@media (max-width: 340px) {
  html.tz-modern-mobile .tz-mobile-category-grid {
    grid-template-columns: 1fr !important;
  }

  html.tz-modern-mobile .tz-mobile-category.tz32-category-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.tz-modern-mobile .tz-mobile-category {
    transition: none !important;
  }
}