/* Logged in or not, in the theme's own header beside the cart
   (includes/account.php; assets/account.js puts it there).
   Logged in: your picture and first name, which open My account, the app and
   Log out. Logged out: a gold Log in button. */

.hfs-who,.hfs-bar-row{
  --ac-ink:#F3EAE0; --ac-muted:#B9A897; --ac-copper:#D98A4E;
  --ac-gold:linear-gradient(180deg,#F0B878 0%,#D98A4E 55%,#B4632C 100%); --ac-gold-ink:#1A0F07;
  --ac-sans:"Jost","Avenir Next","Segoe UI",system-ui,sans-serif}

.hfs-who-item{display:flex;align-items:center;flex:0 0 auto;margin:0 6px}
.hfs-who{position:relative;display:inline-flex;align-items:center;font:500 15px/1 var(--ac-sans)}

/* logged out */
a.hfs-who-out{justify-content:center;min-height:36px;padding:0 16px;border-radius:999px;background:var(--ac-gold);
  color:var(--ac-gold-ink)!important;font-weight:600;text-decoration:none!important;white-space:nowrap;
  box-shadow:0 8px 22px -10px rgba(217,138,78,.75)}
a.hfs-who-out:hover{filter:brightness(1.06)}

/* logged in */
.hfs-who-in>summary{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 2px;cursor:pointer;list-style:none;
  color:var(--ac-ink);-webkit-tap-highlight-color:transparent}
.hfs-who-in>summary::-webkit-details-marker{display:none}
.hfs-who-pic{flex:0 0 34px;width:34px;height:34px;border-radius:50%;object-fit:cover;box-sizing:border-box;
  border:1.5px solid var(--ac-copper);box-shadow:0 0 0 3px rgba(217,138,78,.16)}
.hfs-who-initial{display:inline-flex;align-items:center;justify-content:center;background:var(--ac-gold);border-color:transparent;
  color:var(--ac-gold-ink);font:600 16px/1 var(--ac-sans)}
.hfs-who-name{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hfs-who-in>summary:hover .hfs-who-pic,.hfs-who-in[open] .hfs-who-pic{box-shadow:0 0 0 3px rgba(217,138,78,.4)}
.hfs-who-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:1000;min-width:190px;padding:6px;border-radius:14px;
  background:#1D1611;border:1px solid rgba(217,138,78,.32);box-shadow:0 22px 44px -18px rgba(0,0,0,.8)}
.hfs-who-menu a{display:block;padding:12px 14px;border-radius:9px;color:var(--ac-ink)!important;font:400 16px/1.2 var(--ac-sans);
  text-decoration:none!important;white-space:nowrap}
.hfs-who-menu a:hover,.hfs-who-menu a:focus-visible{background:rgba(217,138,78,.14)}
.hfs-who-menu a:last-child{color:var(--ac-muted)!important}
a.hfs-who-out:focus-visible,.hfs-who-in>summary:focus-visible,.hfs-who-menu a:focus-visible{outline:3px solid #F0B878;outline-offset:3px}

/* on a phone the picture says it; the name is in the menu that opens */
@media(max-width:1024px){
  .hfs-who-item{margin:0 4px 0 0}
  .hfs-who-name{display:none}
  a.hfs-who-out{min-height:34px;padding:0 13px;font-size:14px}
}

/* The phone's header holds the name, this, the cart and the menu. The name is a
   picture 240px wide, which left no room (at 320px the menu button was already
   27px off the screen), so it gives way. */
body.hfs-bar #mobile-header .custom-logo{width:auto;height:auto;max-width:min(240px,calc(100vw - 168px))}
body.hfs-bar.hfs-out:not(.hfs-checkout) #mobile-header .custom-logo{max-width:min(240px,calc(100vw - 196px))}
@media(max-width:359px){
  a.hfs-who-out{padding:0 10px;font-size:13px}
  body.hfs-bar.hfs-out:not(.hfs-checkout) #mobile-header .custom-logo{max-width:calc(100vw - 184px)}
}

/* The line across the top: only where a page has no header to sit in. */
.hfs-bar-row{display:none}
body.hfs-bar-shown .hfs-bar-row{position:relative;z-index:101;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:48px;box-sizing:border-box;
  padding:6px max(16px,env(safe-area-inset-right,0px)) 6px max(16px,env(safe-area-inset-left,0px));
  background:#17120E;border-bottom:1px solid rgba(217,138,78,.28);font:400 15px/1.25 var(--ac-sans);color:var(--ac-muted)}
body.hfs-bar-shown .hfs-bar-in{justify-content:flex-end}
/* the theme pins its see-through header to the top of the page; with the line
   above it, the header has to be pinned to the top of the site instead */
body.hfs-bar-shown #wrapper{position:relative}

/* the checkout says "log in" in a box at the top instead */
body.hfs-checkout a.hfs-who-out,body.hfs-checkout .hfs-bar-out{display:none!important}
@media print{.hfs-bar-row,.hfs-who-item{display:none!important}}
