/*
 BELLE'S TREASURES — R40.9
 Consolidated portrait navigation and universal photo dots.

 Does not style owner administration or modify catalog data.
*/

/* ==========================================================
   PORTRAIT MOBILE NAVIGATION
   ========================================================== */

@media(max-width:700px) and (orientation:portrait){

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell{
    display:flex!important;
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;

    position:sticky!important;
    top:0!important;

    height:auto!important;
    min-height:0!important;

    gap:3px!important;
    overflow:visible!important;

    z-index:10000!important;
  }

  /*
   The original navigation is usable even before
   the new controller creates the swipe wrapper.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation{
    display:flex!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:44px!important;
    min-height:44px!important;
    max-height:44px!important;

    gap:8px!important;

    padding:3px 8px!important;
    margin:0!important;

    overflow-x:auto!important;
    overflow-y:hidden!important;

    white-space:nowrap!important;

    scrollbar-width:none!important;
    -ms-overflow-style:none!important;

    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-x!important;

    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r409-rail{
    display:block!important;

    position:relative!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;

    padding:0!important;
    margin:0!important;

    overflow:hidden!important;

    border:1px solid rgba(180,142,60,.35)!important;
    border-radius:10px!important;

    background:#08090b!important;
    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r409-rail
  >nav.bt-r33-navigation{
    display:flex!important;
    flex-wrap:nowrap!important;

    width:100%!important;
    min-width:0!important;
    max-width:100%!important;

    height:44px!important;

    gap:8px!important;
    padding:3px 8px!important;
    margin:0!important;

    overflow-x:auto!important;
    overflow-y:hidden!important;

    scrollbar-width:none!important;
    -ms-overflow-style:none!important;

    justify-content:flex-start!important;
    align-items:center!important;

    touch-action:pan-x!important;
    scroll-snap-type:x proximity!important;

    box-sizing:border-box!important;
  }

  /*
   The existing navigation links never shrink.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation>a{
    display:inline-flex!important;

    flex:0 0 auto!important;
    flex-grow:0!important;
    flex-shrink:0!important;

    width:auto!important;
    min-width:92px!important;
    max-width:none!important;

    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;

    padding:7px 12px!important;
    margin:0!important;

    align-items:center!important;
    justify-content:center!important;

    font-size:.8rem!important;
    font-weight:800!important;
    line-height:1.1!important;

    white-space:nowrap!important;
    overflow:visible!important;

    scroll-snap-align:start!important;

    box-sizing:border-box!important;
  }

  /*
   About remains available in the mobile footer.
   Track Requests remains available in Account.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation>a[href*="about.html"],

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation>a[href*="track.html"],

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation>a.bt-r409-track,

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation>a.bt-r409-about{
    display:none!important;
  }

  /*
   Search always comes before Shop.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  nav.bt-r33-navigation>form.bt-r33-search{
    display:flex!important;

    position:relative!important;
    order:-100!important;

    flex:0 0 160px!important;
    flex-grow:0!important;
    flex-shrink:0!important;

    width:160px!important;
    min-width:160px!important;
    max-width:160px!important;

    height:36px!important;
    min-height:36px!important;

    padding:0 3px!important;
    margin:0!important;

    border:1px solid #b58e43!important;
    border-radius:999px!important;

    background:#111113!important;

    overflow:hidden!important;
    scroll-snap-align:start!important;

    box-sizing:border-box!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation>form.bt-r33-search input{
    display:block!important;

    position:static!important;

    flex:1 1 auto!important;

    width:auto!important;
    min-width:0!important;
    max-width:none!important;

    height:32px!important;
    min-height:32px!important;

    margin:0!important;
    padding:4px 7px!important;

    border:0!important;

    opacity:1!important;
    visibility:visible!important;

    background:transparent!important;
    color:#fff!important;

    pointer-events:auto!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation>form.bt-r33-search button{
    display:grid!important;
    place-items:center!important;

    position:static!important;

    flex:0 0 28px!important;

    width:28px!important;
    min-width:28px!important;

    height:30px!important;
    min-height:30px!important;

    padding:0!important;
    margin:0!important;

    background:transparent!important;
    border:0!important;

    color:#f5ce6f!important;

    pointer-events:auto!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation>#bt-r33-zoom{
    display:inline-flex!important;

    order:10!important;

    flex:0 0 108px!important;
    flex-grow:0!important;
    flex-shrink:0!important;

    width:108px!important;
    min-width:108px!important;
    max-width:108px!important;

    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;

    margin:0!important;
    padding:2px 4px!important;

    white-space:nowrap!important;
    scroll-snap-align:start!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation
  #bt-r33-zoom .bt-r33-zoom-label{
    display:none!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation>.bt-zoom-control-v2{
    display:inline-flex!important;

    order:10!important;
    flex:0 0 116px!important;

    width:116px!important;
    min-width:116px!important;
    max-width:116px!important;

    scroll-snap-align:start!important;
  }

  /*
   An old search or Zoom element cannot overlap the rail.
  */

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r409-duplicate-search,

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r409-duplicate-zoom{
    display:none!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r406-nav-arrow{
    display:none!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r402-mobile-zoom-row:empty,

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r402-zoom-row:empty,

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r403-zoom-row:empty{
    display:none!important;
    height:0!important;
    padding:0!important;
    margin:0!important;
  }
}

/* ==========================================================
   UNIVERSAL FIVE-DOT GALLERY — DESKTOP AND MOBILE
   ========================================================== */

html body:not(.owner-admin-body)
.listing-carousel .gallery-dots.bt-r409-dots{
  display:flex!important;

  position:absolute!important;

  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:7px!important;

  transform:translateX(-50%)!important;

  justify-content:center!important;
  align-items:center!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;

  width:max-content!important;
  min-width:0!important;
  max-width:calc(100% - 26px)!important;

  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;

  gap:6px!important;

  margin:0!important;
  padding:4px 9px!important;

  border-radius:999px!important;
  border:1px solid rgba(233,191,104,.36)!important;

  background:rgba(9,10,12,.78)!important;

  box-shadow:none!important;

  overflow:hidden!important;
  white-space:nowrap!important;

  z-index:12!important;
  pointer-events:auto!important;

  box-sizing:border-box!important;
}

/* Item page: indicators sit beneath the main photograph. */

html body:not(.owner-admin-body)
.product-gallery-dots.bt-r409-dots{
  display:flex!important;

  position:relative!important;

  left:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;

  transform:none!important;

  flex-direction:row!important;
  flex-wrap:nowrap!important;

  justify-content:center!important;
  align-items:center!important;

  width:max-content!important;
  min-width:0!important;
  max-width:100%!important;

  height:26px!important;
  min-height:26px!important;

  gap:6px!important;

  margin:8px auto!important;
  padding:5px 10px!important;

  border:1px solid rgba(233,191,104,.36)!important;
  border-radius:999px!important;

  background:rgba(9,10,12,.84)!important;

  overflow:hidden!important;

  box-sizing:border-box!important;
}

/*
 All actual per-photo buttons remain in the DOM.
 Only the current indicator window is displayed.
*/

html body:not(.owner-admin-body)
.gallery-dots.bt-r409-dots .gallery-dot{
  display:none!important;
}

html body:not(.owner-admin-body)
.gallery-dots.bt-r409-dots
.gallery-dot.bt-r409-visible{
  display:block!important;

  appearance:none!important;
  -webkit-appearance:none!important;

  position:relative!important;

  flex:0 0 auto!important;

  width:7px!important;
  min-width:7px!important;
  max-width:7px!important;

  height:7px!important;
  min-height:7px!important;
  max-height:7px!important;

  padding:0!important;
  margin:0!important;

  border:0!important;
  border-radius:50%!important;

  background:#d6b76c!important;

  opacity:.78!important;

  box-shadow:none!important;
  transform:none!important;

  cursor:pointer!important;
}

/* Current photo: one clearly larger dot. */

html body:not(.owner-admin-body)
.gallery-dots.bt-r409-dots
.gallery-dot.bt-r409-active{
  width:12px!important;
  min-width:12px!important;
  max-width:12px!important;

  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;

  background:#ffd675!important;

  opacity:1!important;
}

/* Distant positions: visually smaller. */

html body:not(.owner-admin-body)
.gallery-dots.bt-r409-dots
.gallery-dot.bt-r409-far{
  width:4px!important;
  min-width:4px!important;
  max-width:4px!important;

  height:4px!important;
  min-height:4px!important;
  max-height:4px!important;

  opacity:.5!important;
}

html body:not(.owner-admin-body)
.gallery-dots.bt-r409-dots
.gallery-dot:focus-visible{
  outline:2px solid #ffe6a8!important;
  outline-offset:3px!important;
}

@media(max-width:700px){
  html body:not(.owner-admin-body)
  .listing-carousel[data-card-gallery],

  html body:not(.owner-admin-body)
  .product-main-carousel{
    touch-action:pan-y!important;
  }
}