/*
 BELLE'S TREASURES — R40.5

 Portrait navigation / Zoom alignment.

 No catalog, product card, image, owner or desktop changes.
*/

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

  /*
   Compact the existing two-level mobile header.
   Do not create another Zoom row.
  */

  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;

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

    row-gap:2px!important;
    padding-top:3px!important;
    padding-bottom:5px!important;

    overflow:visible!important;
  }

  html body:not(.owner-admin-body)
  >header.site-header.deco-shell
  .bt-r403-header-top {
    padding-top:1px!important;
    padding-bottom:3px!important;

    margin-bottom:0!important;
    gap:5px!important;
  }

  /*
   Navigation stays in one line.

   The four links share the available width.
   Zoom is the final item, immediately after About.
  */

  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;

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

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

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

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

    gap:clamp(1px,.45vw,4px)!important;

    overflow:visible!important;

    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

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

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

    position:relative!important;

    flex:1 1 0!important;

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

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

    margin:0!important;
    padding:5px 1px!important;

    font-size:clamp(.59rem,2.45vw,.75rem)!important;
    font-weight:750!important;
    line-height:1!important;

    letter-spacing:0!important;
    white-space:nowrap!important;

    box-sizing:border-box!important;
  }

  /*
   Legacy minus / percentage / plus Zoom.
  */

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

    position:relative!important;

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

    flex:0 0 92px!important;

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

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

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

    gap:1px!important;

    border-radius:999px!important;

    white-space:nowrap!important;
    box-sizing:border-box!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-r33-zoom button {
    display:grid!important;
    place-items:center!important;

    flex:0 0 24px!important;

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

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

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

    font-size:1rem!important;
    line-height:1!important;

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

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

    flex:0 0 32px!important;

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

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

    font-size:.69rem!important;
    line-height:1!important;

    text-align:center!important;
  }

  /*
   Also support the segmented website-size controller
   where the current release supplies that variant.
  */

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

    position:relative!important;

    flex:0 0 98px!important;

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

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

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

    gap:0!important;

    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

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

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

    grid-template-columns:repeat(3,30px)!important;

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

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

    gap:0!important;
    margin:0!important;
    padding:0!important;
  }

  html body:not(.owner-admin-body)
  nav.bt-r33-navigation
  .bt-zoom-control-v2 .bt-zoom-option-v2 {
    width:30px!important;
    min-width:30px!important;
    max-width:30px!important;

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

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

    font-size:.61rem!important;
    line-height:1!important;
  }

  /*
   Old Zoom wrappers must not reserve another row
   after their control is moved into navigation.
  */

  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;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
  }
}

/*
 The existing landscape header is deliberately unchanged.
*/