/*
 * Easy Notification Bar - theme integration.
 *
 * The bar is rendered inside the fixed <header class="head">, so every
 * hard-coded "header height" offset in theme.css needs to grow by the bar's
 * height. --haa-enb-h is set (and kept live) by the inline script output in
 * haa_notification_bar_height_script() in functions.php. It falls back to 0px,
 * so with no bar / a dismissed bar everything is exactly as before.
 *
 * Values below mirror the originals in the SCSS partials - keep in sync.
 */

/* Bar sits in the header flow; never let the plugin's own sticky mode fight the fixed header */
header.head .easy-notification-bar,
header.head .easy-notification-bar--sticky {
  position: relative;
  top: auto;
  z-index: 2;
}

/* Page content offset (_global.scss) */
#main {
  padding-top: calc(75px + var(--haa-enb-h, 0px));
}

@media (max-width: 991px) {
  #main {
    padding-top: calc(120px + var(--haa-enb-h, 0px));
  }
}

/* Mobile slide-out menu sits directly under the header (_header.scss) */
#mobile-menu {
  top: calc(110px + var(--haa-enb-h, 0px));
}

/* Single product gallery (_wc.scss) */
#single-product .woocommerce-product-gallery {
  top: calc(107px + var(--haa-enb-h, 0px));
}

/* Treatment overview sidebar (_treatments.scss) */
.haab-treatment_overview .to-video-container-outer {
  top: calc(220px + var(--haa-enb-h, 0px));
}

/* Treatment "jump to" bar when stuck (_treatments.scss) */
@media (min-width: 768px) {
  .haa-jump-to-row.sticky .haa-jump-to-row-inner {
    top: calc(102px + var(--haa-enb-h, 0px));
  }

  body.admin-bar .haa-jump-to-row.sticky .haa-jump-to-row-inner {
    top: calc(134px + var(--haa-enb-h, 0px));
  }
}
