/* PhotoBridge v703 — final two-line mobile utility header + PWA install affordance.
   The common white photographer header is deliberately identical in every mobile destination.
   Row 1 (left): notifications, exit, settings, credit. Row 2 (left): invite, install app.
   The second row has real top/bottom breathing room and never steals width from the identity copy. */

@media (max-width:820px){
  :root{
    --pb703-header-h:94px;
    --pb703-wallet-w:clamp(84px,23vw,94px);
    --pb703-pill-w:96px;
  }

  /* Increase the actual white header box so the second line is part of the header, not an overlay. */
  .photographerMain.pbFixedRoleHeader>.unifiedRoleHeader.photographerHeaderRefined,
  .photographerMain>.unifiedRoleHeader.photographerHeaderRefined,
  #storePhotographerWorkspace>#photographerStoreRoleHeader.photographerHeaderRefined{
    height:var(--pb703-header-h)!important;
    min-height:var(--pb703-header-h)!important;
    max-height:var(--pb703-header-h)!important;
    flex-basis:var(--pb703-header-h)!important;
    padding:9px 10px 10px!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }

  /* Print uses the same white header geometry; its existing print strip remains immediately below it. */
  .photographerMain.photographerPrintWorkspace.pbFixedRoleHeader>.unifiedRoleHeader.photographerPrintModeHeader{
    height:var(--pb703-header-h)!important;
    min-height:var(--pb703-header-h)!important;
    max-height:var(--pb703-header-h)!important;
    flex-basis:var(--pb703-header-h)!important;
  }

  /* Reserve only the real first-row controls. This is identical for Store and all photographer tabs. */
  .photographerMain>.unifiedRoleHeader.photographerHeaderRefined>.photographerHeaderIdentity,
  #storePhotographerWorkspace>#photographerStoreRoleHeader.photographerHeaderRefined>.photographerHeaderIdentity,
  #photographerStoreRoleHeader.photographerHeaderRefined>.workspaceIdentity,
  #photographerStoreRoleHeader.photographerHeaderRefined>.photographerHeaderIdentity{
    padding-left:clamp(208px,58vw,222px)!important;
    height:70px!important;
    min-height:70px!important;
    max-height:70px!important;
    box-sizing:border-box!important;
  }

  /* Canonical first row. Invite + install are absolute children and therefore consume zero row width. */
  .photographerMain>.photographerHeaderRefined .photographerMobileHeaderQuickActions,
  #photographerStoreRoleHeader .photographerMobileHeaderQuickActions,
  #storePhotographerWorkspace>#photographerStoreRoleHeader .photographerMobileHeaderQuickActions{
    position:absolute!important;
    left:8px!important;
    right:auto!important;
    top:10px!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    direction:ltr!important;
    overflow:visible!important;
    z-index:85!important;
  }
  .photographerMobileHeaderQuickActions>.mobileNotificationBell{order:1!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important}
  .photographerMobileHeaderQuickActions>.mobileHeaderPower{order:2!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important}
  .photographerMobileHeaderQuickActions>.mobileHeaderSettings{order:3!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important}
  .photographerMobileHeaderQuickActions>.mobileHeaderWallet{
    order:4!important;
    position:relative!important;
    left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
    flex:0 0 var(--pb703-wallet-w)!important;
    width:var(--pb703-wallet-w)!important;
    min-width:var(--pb703-wallet-w)!important;
    max-width:var(--pb703-wallet-w)!important;
    height:32px!important;min-height:32px!important;max-height:32px!important;
    margin:0!important;padding:0 7px!important;gap:4px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    white-space:nowrap!important;overflow:hidden!important;box-sizing:border-box!important;
    font-size:9px!important;font-weight:900!important;line-height:1!important;direction:rtl!important;
  }
  .photographerMobileHeaderQuickActions>.mobileHeaderWallet>b{font-size:8.8px!important;font-weight:950!important;line-height:1!important}

  /* Invite is always the far-left first item of line 2, with 8px air above and 12px below. */
  .photographerMobileHeaderQuickActions>.mobileHeaderInvite,
  #photographerStoreRoleHeader .photographerMobileHeaderQuickActions>.mobileHeaderInvite,
  #pb700HeaderInviteButton{
    order:90!important;
    position:absolute!important;
    left:0!important;right:auto!important;top:40px!important;bottom:auto!important;
    flex:none!important;
    width:var(--pb703-pill-w)!important;
    min-width:var(--pb703-pill-w)!important;
    max-width:var(--pb703-pill-w)!important;
    height:32px!important;min-height:32px!important;max-height:32px!important;
    margin:0!important;padding:0 8px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    border:1px solid #d8dee9!important;border-radius:9px!important;background:#fff!important;color:#344054!important;
    box-shadow:0 1px 2px rgba(16,24,40,.03)!important;
    font-size:0!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;
    box-sizing:border-box!important;aspect-ratio:auto!important;transform:none!important;z-index:90!important;
  }
  .photographerMobileHeaderQuickActions>.mobileHeaderInvite::before,
  .photographerMobileHeaderQuickActions>.mobileHeaderInvite::after,
  #pb700HeaderInviteButton::before,#pb700HeaderInviteButton::after{content:none!important;display:none!important}
  .mobileHeaderInvite>.pb698InviteLabel,
  .mobileHeaderInvite>.pb699InviteLabel,
  .mobileHeaderInvite>.pb700InviteLabel,
  .mobileHeaderInvite>.pb703InviteLabel{
    display:block!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;
    color:#344054!important;font-family:inherit!important;font-size:9.2px!important;font-weight:900!important;line-height:1!important;
    letter-spacing:-.05px!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;direction:rtl!important;
  }

  /* PWA install lives beside Invite on line 2. It is hidden when the app is already installed. */
  .photographerMobileHeaderQuickActions>.mobileHeaderInstall{
    position:absolute!important;
    left:102px!important;right:auto!important;top:40px!important;bottom:auto!important;
    width:var(--pb703-pill-w)!important;min-width:var(--pb703-pill-w)!important;max-width:var(--pb703-pill-w)!important;
    height:32px!important;min-height:32px!important;max-height:32px!important;
    margin:0!important;padding:0 7px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
    border:1px solid #cdd9ef!important;border-radius:9px!important;background:#f8faff!important;color:#244ea2!important;
    box-shadow:0 1px 2px rgba(16,24,40,.03)!important;font-family:inherit!important;font-size:9px!important;font-weight:900!important;
    line-height:1!important;white-space:nowrap!important;overflow:hidden!important;box-sizing:border-box!important;z-index:90!important;
  }
  .photographerMobileHeaderQuickActions>.mobileHeaderInstall::before{content:"↓";font-size:12px!important;font-weight:950!important;line-height:1!important}
  .photographerMobileHeaderQuickActions>.mobileHeaderInstall.pb703Installed{display:none!important}

  /* The Store blue strip must follow the taller white header with no seam. v698 keeps it in flow; this is fallback-safe. */
  #storePhotographerWorkspace>#photographerStoreIdentityBar{top:auto!important;margin-top:-1px!important}

  /* Install instructions modal. */
  #pb703InstallOverlay{
    position:fixed!important;inset:0!important;z-index:99990!important;padding:18px!important;
    display:flex!important;align-items:flex-end!important;justify-content:center!important;
    background:rgba(15,23,42,.42)!important;backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important;
    box-sizing:border-box!important;
  }
  #pb703InstallOverlay[hidden]{display:none!important}
  #pb703InstallSheet{
    width:min(100%,420px)!important;margin:0!important;padding:14px!important;border:1px solid #e4e7ec!important;border-radius:18px!important;
    background:#fff!important;color:#344054!important;box-shadow:0 18px 48px rgba(15,23,42,.22)!important;direction:rtl!important;text-align:right!important;
    box-sizing:border-box!important;font-family:inherit!important;
  }
  #pb703InstallSheet .pb703InstallHead{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
  #pb703InstallSheet .pb703InstallHead b{font-size:14px!important;font-weight:950!important;color:#101828!important}
  #pb703InstallSheet .pb703InstallClose{width:32px!important;height:32px!important;border:1px solid #e4e7ec!important;border-radius:9px!important;background:#fff!important;color:#667085!important;font-size:18px!important;line-height:1!important}
  #pb703InstallSheet p{margin:0 0 10px!important;font-size:11px!important;line-height:1.9!important;color:#475467!important}
  #pb703InstallSheet ol{margin:0 18px 12px 0!important;padding:0!important;color:#344054!important;font-size:11px!important;line-height:2!important}
  #pb703InstallSheet .pb703InstallPrimary{width:100%!important;height:40px!important;border:0!important;border-radius:10px!important;background:#315efb!important;color:#fff!important;font-family:inherit!important;font-size:11px!important;font-weight:950!important}
}

@media (max-width:360px){
  :root{--pb703-wallet-w:84px;--pb703-pill-w:92px}
  .photographerMain>.unifiedRoleHeader.photographerHeaderRefined>.photographerHeaderIdentity,
  #storePhotographerWorkspace>#photographerStoreRoleHeader.photographerHeaderRefined>.photographerHeaderIdentity,
  #photographerStoreRoleHeader.photographerHeaderRefined>.workspaceIdentity,
  #photographerStoreRoleHeader.photographerHeaderRefined>.photographerHeaderIdentity{padding-left:208px!important}
  .photographerMobileHeaderQuickActions>.mobileHeaderInstall{left:98px!important}
  .mobileHeaderInvite>.pb698InviteLabel,.mobileHeaderInvite>.pb699InviteLabel,.mobileHeaderInvite>.pb700InviteLabel,.mobileHeaderInvite>.pb703InviteLabel{font-size:8.8px!important}
}

@media (min-width:821px){
  .mobileHeaderInstall,#pb703InstallOverlay{display:none!important}
}
