/* BGH app layer: makes the site feel like an app on phones */
html{-webkit-tap-highlight-color:transparent}
a,button,[onclick]{touch-action:manipulation}
#bgh-tabbar,#bgh-sheet,#bgh-sheet-bg{display:none}

@media (max-width:900px){
  body{padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  #bgh-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:990;
    height:calc(64px + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom);
    background:rgba(20,20,20,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    border-top:1px solid rgba(201,168,76,.22);align-items:stretch;justify-content:space-around}
  .bgh-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    background:none;border:0;color:#9a9488;text-decoration:none;font:500 10px/1 'Jost',sans-serif;
    letter-spacing:.08em;text-transform:uppercase;cursor:pointer;padding:0;transition:color .2s,transform .12s}
  .bgh-tab svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .bgh-tab.on{color:#C9A84C}
  .bgh-tab:active{transform:scale(.9)}
  .bgh-tab.book{position:relative}
  .bgh-tab.book .bgh-book-dot{width:50px;height:50px;border-radius:50%;margin-top:-22px;
    background:linear-gradient(145deg,#E2C46E,#C9A84C 55%,#A8862F);color:#1A1A1A;display:flex;align-items:center;justify-content:center;
    box-shadow:0 6px 18px rgba(0,0,0,.45),0 0 0 4px rgba(20,20,20,.94)}
  .bgh-tab.book .bgh-book-dot svg{stroke:#1A1A1A;stroke-width:1.9}
  .bgh-tab.book span{color:#C9A84C}

  #bgh-sheet-bg{position:fixed;inset:0;z-index:988;background:rgba(0,0,0,.55);opacity:0;transition:opacity .25s;display:block;pointer-events:none}
  #bgh-sheet-bg.on{opacity:1;pointer-events:auto}
  #bgh-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:989;background:#1f1f1f;
    border-top:1px solid rgba(201,168,76,.3);border-radius:18px 18px 0 0;
    padding:10px 18px calc(84px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
  #bgh-sheet.on{transform:none}
  .bgh-grab{width:42px;height:4px;border-radius:2px;background:#555;margin:2px auto 14px}
  .bgh-sheet-title{font:500 10px/1 'Jost',sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#C9A84C;margin:0 4px 10px}
  .bgh-row{display:flex;align-items:center;gap:14px;width:100%;padding:14px 6px;background:none;border:0;border-bottom:1px solid rgba(255,255,255,.06);
    color:#F3EEE3;text-decoration:none;font:400 15px/1.2 'Jost',sans-serif;text-align:left;cursor:pointer}
  .bgh-row:last-child{border-bottom:0}
  .bgh-row svg{width:21px;height:21px;stroke:#C9A84C;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
  .bgh-row small{display:block;color:#9a9488;font-size:12px;margin-top:3px}
  .bgh-row:active{background:rgba(201,168,76,.08)}
  .bgh-ios-tip{display:none;margin:8px 6px 0;padding:12px;border:1px dashed rgba(201,168,76,.45);border-radius:10px;color:#ddd;font:400 13px/1.5 'Jost',sans-serif}
  .bgh-ios-tip.on{display:block}

  /* press feedback like native buttons */
  .btn-gold:active,.btn-solid:active,.shop-buy:active,.style-chip:active,.cv:active,.hp-cv:active,.product-card button:active{transform:scale(.97)}
}
@media (display-mode: standalone){ .bgh-install{display:none!important} }

/* Consultation: braid story and lifestyle chips */
.bgh-q{margin-top:1.6rem}
.bgh-q-rule{display:flex;align-items:center;gap:.8rem;margin-bottom:1rem}
.bgh-q-rule:before,.bgh-q-rule:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(201,168,76,.45),transparent)}
.bgh-q-rule span{font:500 .62rem/1 'Jost',sans-serif;letter-spacing:.32em;text-transform:uppercase;color:#C9A84C;white-space:nowrap}
.bgh-q-title{font-family:'Cormorant Garamond',serif;font-size:1.18rem;font-style:italic;color:#F3EEE3;line-height:1.35;margin:0 0 .35rem}
.bgh-q-hint{font-size:.76rem;color:#9a9488;line-height:1.6;margin:0 0 .85rem}
.bgh-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.bgh-chip{font:300 .8rem/1.2 'Jost',sans-serif;letter-spacing:.03em;color:#E8E1D2;background:transparent;border:1px solid rgba(201,168,76,.28);
  border-radius:999px;padding:.62rem 1rem;cursor:pointer;transition:background .25s,border-color .25s,color .25s;text-align:left}
.bgh-chip:hover{border-color:rgba(201,168,76,.6)}
.bgh-chip[aria-pressed="true"]{background:linear-gradient(145deg,#E2C46E,#C9A84C 55%,#A8862F);border-color:#C9A84C;color:#1A1A1A;font-weight:500}
.bgh-chip[aria-pressed="true"]:before{content:"\2726\00a0"}

/* Consultation: inspiration photo upload */
.bgh-inspo-up{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;margin-top:.8rem}
.bgh-inspo-btn{display:inline-block;border:1px dashed rgba(201,168,76,.55);color:#C9A84C;padding:.7rem 1rem;font:400 .72rem 'Jost',sans-serif;letter-spacing:.14em;text-transform:uppercase;cursor:pointer}
.bgh-inspo-prev{display:none;position:relative}
.bgh-inspo-prev img{width:80px;height:80px;object-fit:cover;border-radius:4px;border:1px solid rgba(201,168,76,.4);display:block}
.bgh-inspo-prev button{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;border:0;background:#C9A84C;color:#1A1A1A;font-size:14px;line-height:24px;cursor:pointer;padding:0}
