/* Phone-only controls for the Rolex catalogue. Extra actions are in the menu. */
@media (max-width: 768px) {
  .rolex-listing .rolex-intro { backface-visibility: hidden; }
  body:has(.rolex-listing) .trail a { color: #767676; }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast {
    gap: 10px;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .logo {
    min-width: 0;
    flex: 0 1 180px;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .wordmark {
    width: 100%;
    max-width: 180px;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast #search,
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .bag {
    display: none;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .utilities {
    margin-right: -10px;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .personal {
    width: 40px;
    height: 44px;
    border-radius: 12px;
    color: #333;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast #menu {
    position: relative;
    display: block;
    flex: 0 0 102.1px;
    width: 102.1px;
    height: 42px;
    padding: 0;
    border: 1px solid rgb(0 0 0 / 10.6%);
    border-radius: 24px;
    color: #333;
    font-size: 0;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast #menu::before,
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast #menu::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast #menu::before {
    content: "\f15a";
    left: 13px;
    font: 20px/1 "Collection Rating";
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast #menu::after {
    content: "MENU";
    left: 40px;
    font: 600 16px/1 Arial, sans-serif;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .personal svg {
    display: none;
  }
  body:has(.rolex-listing):has(.rolex-menu-tools) .mast .personal::before {
    content: "\f124";
    font: 20px/1 "Collection Rating";
  }
  .listing.rolex-listing .listhead { position: relative; }
  .listing.rolex-listing .rolex-sidebar-toggle {
    min-height: 44px;
    margin-block: -7px;
    gap: .3em;
    padding-top: 2px;
    color: #333;
  }
  .listing.rolex-listing .rolex-sidebar-toggle::before {
    content: "\f15a";
    position: relative;
    top: -1px;
    font: 1.2em/1 "Collection Rating";
  }
  .listing.rolex-listing .listhead #sort {
    width: 44px;
    height: 44px;
    margin: -7px -7px -7px 0;
    background: transparent;
  }
  .listing.rolex-listing .listhead::after {
    content: "\f119";
    position: absolute;
    inset: auto 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #242424;
    font: 19.2px/1.6 "Collection Rating";
    backface-visibility: hidden;
    pointer-events: none;
  }

  body:has(.rolex-listing) #collections {
    width: min(355px,calc(100vw - 28px));
    padding: 18px;
    color: #202823;
    background: #fff;
    border-radius: 16px;
  }
  body:has(.rolex-listing) #collections .dialogbar { min-height: 44px; }
  body:has(.rolex-listing) #collections .dialogbar .close {
    width: 44px;
    height: 44px;
  }
  body:has(.rolex-listing) .rolex-menu-tools {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0 0 10px;
    border-bottom: 1px solid #e2e5e1;
  }
  .rolex-menu-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: stretch;
    min-height: 44px;
    border: 1px solid #cbd1cb;
    border-radius: 10px;
    background: #fff;
  }
  .rolex-menu-search:focus-within { outline: 2px solid #a78f5b; outline-offset: 1px; }
  .rolex-menu-search input {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    color: #202823;
    background: transparent;
    font: 16px Arial, sans-serif;
  }
  .rolex-menu-search input:focus { outline: 0; }
  .rolex-menu-search button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 12px;
    background: #22352d;
    color: #fff;
    font-weight: 600;
  }
  body:has(.rolex-listing) #collections #mobile-links a,
  .rolex-menu-bag { display: flex; align-items: center; min-height: 44px; }
  .rolex-menu-bag { padding: 0 10px; font-weight: 600; }
  .rolex-menu-bag span {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 12px;
    background: #edf1ee;
    color: #4b5a51;
    font: 600 12px/1.4 Arial,sans-serif;
  }
  body:has(.rolex-listing) :is(.rolex-sidebar-toggle,#menu,.personal,#sort,.rolex-menu-bag):focus-visible {
    outline: 2px solid #876a32;
    outline-offset: 1px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .listing.rolex-listing .rolex-sidebar-toggle::before {
    content: "\f15a";
    margin-right: .25em;
    font: 1.2em/1 "Collection Rating";
  }
}
