/* ARTRELAX_MOBILE_SORT_R26_DIRECT_LINK_BEGIN
 * Product grids / catalogue: contain sorting and dropdown on narrow screens.
 * Keep gallery gestures, zoom and desktop untouched.
 */
@media screen and (max-width:767px) {
  body .js_wrapper_items.has_mobile_filter_compact .adaptive_filter {
    box-sizing:border-box !important;
    display:block !important;
    position:relative !important;
    float:none !important;
    clear:both !important;
    flex:0 0 100% !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 8px !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block {
    box-sizing:border-box !important;
    position:relative !important;
    display:flex !important;
    flex-flow:row wrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    float:none !important;
    clear:both !important;
    flex:0 0 100% !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .mobile_filter_compact {
    box-sizing:border-box !important;
    position:relative !important;
    float:none !important;
    flex:1 1 175px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select {
    box-sizing:border-box !important;
    position:relative !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select__title {
    box-sizing:border-box !important;
    display:flex !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select__title span {
    display:block !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select__drawer {
    box-sizing:border-box !important;
    left:0 !important;
    right:auto !important;
    width:min(300px, calc(100vw - 32px)) !important;
    min-width:0 !important;
    max-width:calc(100vw - 32px) !important;
    z-index:1005 !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select__drawer .menu-list,
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select__drawer .menu-list__item,
  body .js_wrapper_items.has_mobile_filter_compact .sort_header .dropdown-select__drawer .menu-list__link {
    box-sizing:border-box !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
  }
}
/* ARTRELAX_MOBILE_SORT_R26_DIRECT_LINK_END */

/* ARTRELAX_MOBILE_SORT_R29_COMPACT_GRID_BEGIN
 * Compact four-choice mobile sort panel. Enhanced panel only.
 * No change to sorting URLs/logic, filter, desktop, swipes, gallery or zoom.
 */
@media screen and (max-width: 767px) {
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced {
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 14px !important;
    padding: 10px 12px 12px !important;
    background: #fff !important;
    border: 1px solid #e7e8ed !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 12px rgba(32,39,52,.035) !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .mobile_filter_compact {
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    clear: none !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .mobile_filter_compact > .dropdown-select {
    display: none !important; /* existing enhanced panel replaces the old dropdown */
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .artrelax-sort-panel {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .artrelax-sort-panel__label {
    box-sizing: border-box !important;
    display: block !important;
    width: calc(100% - 118px) !important;
    min-width: 0 !important;
    height: 29px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #656b76 !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: .035em !important;
    line-height: 29px !important;
    white-space: nowrap !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .artrelax-sort-panel__label::after {
    display: none !important;
    content: none !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .artrelax-sort-panel__chips {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 7px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .artrelax-sort-chip {
    box-sizing: border-box !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: 36px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 5px !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-shadow: none !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .sort_display {
    box-sizing: border-box !important;
    position: absolute !important;
    top: 9px !important;
    right: 12px !important;
    left: auto !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 114px !important;
    z-index: 2 !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .sort_display .sort_btn {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    border-radius: 5px !important;
  }
}
@media screen and (max-width: 359px) {
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced {
    padding: 9px 9px 10px !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .sort_display {
    right: 9px !important;
  }
  body .js_wrapper_items.has_mobile_filter_compact .sort_header.view_block.artrelax-sort-enhanced .artrelax-sort-chip {
    font-size: 11px !important;
  }
}
/* ARTRELAX_MOBILE_SORT_R29_COMPACT_GRID_END */

/* ARTRELAX_MOBILE_SORT_R210_BUTTON_BORDERS_BEGIN
 * Cosmetic change only: darken borders of INACTIVE sorting options.
 * Layout, active state, icons, filter, gallery, JS and desktop grid untouched.
 */
body .js_wrapper_items .sort_header.artrelax-sort-enhanced
.artrelax-sort-chip:not(.is-active):not(.active):not([aria-current="page"]) {
  border-color: #c1c7d1 !important;
}
@media (hover: hover) {
  body .js_wrapper_items .sort_header.artrelax-sort-enhanced
  a.artrelax-sort-chip:not(.is-active):not(.active):not([aria-current="page"]):hover {
    border-color: #9ba4b1 !important;
  }
}
/* ARTRELAX_MOBILE_SORT_R210_BUTTON_BORDERS_END */
