/* IPTV Belgique Commerce v2.7.19.35 — Client portal top gap fix
   Scope: only private customer portal pages.
   Goal: remove the empty vertical gap created by the sticky WordPress admin bar +
   theme client header + page container padding, without touching public pages. */

body.iptvb-client-portal-page,
body.iptvb-theme.iptvb-client-portal-page{
  --iptvbc-client-toolbar-height-v271934: 62px;
}

/* The theme has stronger #site-header rules. Reassert a compact private-client header. */
body.iptvb-client-portal-page #site-header.header-client-portal,
body.iptvb-theme.iptvb-client-portal-page #site-header.header-client-portal,
body.iptvb-client-portal-page .header.header-client-portal,
body.iptvb-theme.iptvb-client-portal-page .header.header-client-portal{
  height:var(--iptvbc-client-toolbar-height-v271934)!important;
  min-height:var(--iptvbc-client-toolbar-height-v271934)!important;
  max-height:var(--iptvbc-client-toolbar-height-v271934)!important;
  margin:0!important;
  padding:0!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid rgba(226,232,240,.92)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;
  overflow:visible!important;
}

body.iptvb-client-portal-page #site-header.header-client-portal > .container.nav,
body.iptvb-theme.iptvb-client-portal-page #site-header.header-client-portal > .container.nav,
body.iptvb-client-portal-page .header.header-client-portal > .container.nav,
body.iptvb-theme.iptvb-client-portal-page .header.header-client-portal > .container.nav{
  height:var(--iptvbc-client-toolbar-height-v271934)!important;
  min-height:var(--iptvbc-client-toolbar-height-v271934)!important;
  max-height:var(--iptvbc-client-toolbar-height-v271934)!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  align-items:center!important;
}

/* Remove the extra top padding before the Commerce client shell. */
body.iptvb-client-portal-page .site,
body.iptvb-client-portal-page .site-main,
body.iptvb-client-portal-page .iptvb-page-main,
body.iptvb-client-portal-page .iptvb-page-shell,
body.iptvb-theme.iptvb-client-portal-page .site,
body.iptvb-theme.iptvb-client-portal-page .site-main,
body.iptvb-theme.iptvb-client-portal-page .iptvb-page-main,
body.iptvb-theme.iptvb-client-portal-page .iptvb-page-shell{
  margin-top:0!important;
  padding-top:0!important;
}

body.iptvb-client-portal-page .iptvb-page-container,
body.iptvb-theme.iptvb-client-portal-page .iptvb-page-container,
body.iptvb-client-portal-page .iptvb-page-content,
body.iptvb-theme.iptvb-client-portal-page .iptvb-page-content,
body.iptvb-client-portal-page .iptvb-commerce-shortcode-content,
body.iptvb-theme.iptvb-client-portal-page .iptvb-commerce-shortcode-content{
  margin-top:0!important;
  padding-top:0!important;
}

body.iptvb-client-portal-page #iptvbc-client-app.iptvbc-account.iptvbc-client-light-shell-v2694,
body.iptvb-theme.iptvb-client-portal-page #iptvbc-client-app.iptvbc-account.iptvbc-client-light-shell-v2694,
body.iptvb-client-portal-page .iptvbc-account.iptvbc-client-light-shell-v2694,
body.iptvb-theme.iptvb-client-portal-page .iptvbc-account.iptvbc-client-light-shell-v2694{
  margin-top:12px!important;
}

/* When the native WordPress admin bar is visible, keep the private header glued under it. */
body.admin-bar.iptvb-client-portal-page #site-header.header-client-portal,
body.admin-bar.iptvb-theme.iptvb-client-portal-page #site-header.header-client-portal,
body.admin-bar.iptvb-client-portal-page .header.header-client-portal,
body.admin-bar.iptvb-theme.iptvb-client-portal-page .header.header-client-portal{
  top:0!important;
}

@media(max-width:782px){
  body.iptvb-client-portal-page,
  body.iptvb-theme.iptvb-client-portal-page{
    --iptvbc-client-toolbar-height-v271934: 56px;
  }
  body.admin-bar.iptvb-client-portal-page #site-header.header-client-portal,
  body.admin-bar.iptvb-theme.iptvb-client-portal-page #site-header.header-client-portal,
  body.admin-bar.iptvb-client-portal-page .header.header-client-portal,
  body.admin-bar.iptvb-theme.iptvb-client-portal-page .header.header-client-portal{
    top:0!important;
  }
  body.iptvb-client-portal-page #iptvbc-client-app.iptvbc-account.iptvbc-client-light-shell-v2694,
  body.iptvb-theme.iptvb-client-portal-page #iptvbc-client-app.iptvbc-account.iptvbc-client-light-shell-v2694,
  body.iptvb-client-portal-page .iptvbc-account.iptvbc-client-light-shell-v2694,
  body.iptvb-theme.iptvb-client-portal-page .iptvbc-account.iptvbc-client-light-shell-v2694{
    margin-top:8px!important;
  }
}
