/* ==========================================================================
   OstuGrupp theme — print stylesheet
   Loaded with media="print" (see inc/enqueue.php). Strips all interactive
   site chrome (header, mega-menu, drawer, footer, sticky bars, overlays,
   toasts, admin bar) and renders order/content pages cleanly in black-on-white
   so customers can print an order, tracking page or article without clutter.
   ========================================================================== */

@media print {

  /* ---- Hide site chrome, overlays, widgets and toasts ---- */
  .site-header,
  .og-mega,
  .og-drawer,
  .og-drawer-backdrop,
  .og-drawer-toggle,
  .site-footer,
  .site-footer__newsletter,
  .sticky-atc,
  .ostu-ship,
  .ostu-ship-wrap,
  .og-cookie,
  .og-popup,
  .og-sproof,
  .back-to-top,
  .ostu-cmp-bar,
  .ostu-cmp-single,
  .ostu-cmp-btn,
  .mini-cart,
  .mini-cart-floating-root,
  .skip-link,
  .header-search,
  .og-ls-host,
  .og-ls-panel,
  .ostu-rv-rail,
  .ostu-bis,
  .ostu-urgency,
  #wpadminbar {
    display: none !important;
  }

  /* ---- Clean, readable body: black text on white, no shadows ---- */
  html,
  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    background: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline;
  }

  img {
    max-width: 100% !important;
  }

  /* Avoid awkward page breaks inside meaningful blocks. */
  h1, h2, h3, h4,
  .ostu-track__step,
  .ostu-track__item,
  .ostu-track__carrier {
    page-break-inside: avoid;
  }

  /* ---- Show link destinations after links inside printable content ---- */
  .entry-content a[href]::after,
  .ostu-track a[href]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    word-break: break-all;
  }

  /* Don't print URLs for in-page anchors or javascript: hooks. */
  .entry-content a[href^="#"]::after,
  .entry-content a[href^="javascript:"]::after,
  .ostu-track a[href^="#"]::after,
  .ostu-track a[href^="javascript:"]::after {
    content: "";
  }
}
