/* ==========================================================================
   Header 2026 (18-Nov-2026): initials circle + profile sheet, and (Delivery page)
   the balances capsule. Pairs with /js/header-profile-2026.js. Variant B.
   To go back: restore the old block in include-files/header.php.
   ========================================================================== */

/* right side: just the circle (the old "Hi name", cart and power icon moved into the profile sheet) */
nav .logout.avh-logout {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  width: auto; height: auto; line-height: 1;
  display: flex; align-items: center; gap: 8px;
}
.avh-av {
  /* the live header band is 35px tall (nav .nav-wrapper), so the circle is 34px; ::after widens the tap area to 44px */
  position: relative;
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; margin: 0; cursor: pointer;
  background: #2dd4bf; color: #042f2e;
  font: 800 13px/1 Inter, system-ui, sans-serif; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.avh-av::after { content: ""; position: absolute; left: -5px; right: -5px; top: -5px; bottom: -5px; }
.avh-av:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Delivery page: GPay and the wallet icon move left and get a wider gap; the capsule fills the middle */
nav.avh-hbal-on .gpay-center { left: 52px; transform: translateY(-50%); }
nav.avh-hbal-on .exp-center { left: 129px; }
.avh-hbal {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%); z-index: 10;
  display: flex; align-items: center; height: 34px; box-sizing: border-box;
  background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
  text-decoration: none; color: #ffffff;
}
.avh-hbal .c { padding: 0 10px; text-align: left; white-space: nowrap; display: block; }
.avh-hbal .c + .c { border-left: 1px solid rgba(255, 255, 255, .18); }
.avh-hbal .l { display: block; font-size: 9px; line-height: 1.15; letter-spacing: .6px; color: #9ca3af; }
.avh-hbal .v { display: block; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: #ffffff; font-variant-numeric: tabular-nums; }
.avh-hbal .v .s { display: none; }
@media (max-width: 360px) {
  .avh-hbal .c { padding: 0 7px; }
  .avh-hbal .v .f { display: none; }
  .avh-hbal .v .s { display: inline; }
}

/* profile sheet (bottom sheet) */
.avh-pf-back {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 1140;
  background: rgba(10, 10, 10, .55); opacity: 0; visibility: hidden; transition: opacity .18s ease;
}
.avh-pf-back.on { opacity: 1; visibility: visible; }
.avh-pf {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1150;
  max-width: 480px; margin: 0 auto; box-sizing: border-box;
  background: #ffffff; color: #111827; border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .35);
  transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s;
}
.avh-pf.on { transform: none; visibility: visible; transition: transform .22s ease; }
.avh-pf-grab { width: 40px; height: 4px; border-radius: 2px; background: #d1d5db; margin: 0 auto 16px; }
.avh-pf-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.avh-pf-av {
  width: 64px; height: 64px; border-radius: 50%; background: #2dd4bf; color: #042f2e;
  font: 800 22px/1 Inter, system-ui, sans-serif; display: flex; align-items: center; justify-content: center;
}
.avh-pf-name { font-size: 18px; font-weight: 800; color: #111827; margin-top: 6px; }
.avh-pf-role { font-size: 13px; color: #4b5563; }
.avh-pf-tiles { display: flex; gap: 10px; margin-top: 18px; }
.avh-pf-tile {
  flex: 1; min-height: 76px; border: 0; border-radius: 14px; background: #f3f4f6; color: #111827 !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font: 700 14px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.avh-pf-tile i { font-size: 24px; color: inherit; height: auto; line-height: 1; }
.avh-pf-tile.avh-pf-out { background: #fef2f2; color: #b91c1c !important; }
