/* v1.5.1 — phone-only category selector inside slide-out filters.
 * No changes to tablet/desktop category dropdowns or product loop. */
@media (max-width: 600px) {
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category {
    display: block !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding: 14px 14px 3px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  /* Native dropdown remains fully accessible, including its native iOS options list. */
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: var(--idn-mobile-category-height, 54px) !important;
    min-height: var(--idn-mobile-category-height, 54px) !important;
    padding: 0 48px 0 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid var(--idn-mobile-category-border, var(--idn-filter-border, #dfe4ed)) !important;
    border-radius: var(--idn-mobile-category-radius, 12px) !important;
    background: var(--idn-mobile-category-bg, var(--idn-filter-surface, #fff)) !important;
    color: var(--idn-mobile-category-text, var(--idn-filter-text, #14203b)) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 9px rgba(17, 29, 62, .065) !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .18s ease, box-shadow .18s ease;
  }
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 19px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--idn-mobile-category-chevron, var(--idn-filter-btn, #303f78));
    border-bottom: 2px solid var(--idn-mobile-category-chevron, var(--idn-filter-btn, #303f78));
    transform: translateY(-66%) rotate(45deg);
    pointer-events: none;
    border-radius: 1px;
  }
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select select:focus-visible {
    outline: 2px solid var(--idn-filter-accent, var(--idn-nav-bg, #303f78)) !important;
    outline-offset: 2px !important;
  }
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select select:focus {
    border-color: var(--idn-filter-accent, var(--idn-nav-bg, #303f78)) !important;
    box-shadow: 0 0 0 3px rgba(48, 63, 120, .16) !important;
  }
  body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select select:disabled {
    opacity: .6 !important;
    cursor: not-allowed;
  }
  @media (prefers-reduced-motion: reduce) {
    body.idn-shop-mobile-enhanced .idn-shop-mobile-drawer-portal.idn-archive--v143 .idn-shop-drawer-category .idn-shop-category-select select {transition: none !important;}
  }
}
