/* General styles for printing */
@media print {
  body {
    font-size: 12pt;
    background: none !important;
    color: #000 !important;
  }
  /* Hide elements not needed for printing */
  header,
  .highlighted,
  .region-featured-top,
  .block-category-search,
  .region_1,
  .region_2,
  footer,
  nav,
  aside,
  .sidebar,
  .menu,
  .btn,
  .button,
  .no-print,
  .path-product .field--name-field-is-promo,
  .path-product .product-share-wrap,
  .path-product .product-video,
  .path-product .product-items,
  .path-product .field--name-quantity,
  .path-product .col-md-4 .form-actions,
  .path-product .flag,
  .path-blog .blog-prev-link,
  .block-webform-block,
  .page-node-3 .contact-social-items,
  video,
  .popup,
  #to-top,
  #sliding-popup {
    display: none !important;
  }
  .path-product .wrapper-product .col-md-8,
  .path-product .wrapper-product .col-md-4 {
    width: 100%;
  }
  /* Make links readable (add URL after text) */
  a[href]:after {
    content: " (" attr(href) ")"; /* Displays the URL in parentheses */
    font-size: 10pt;
  }
  /* Remove links for navigation */
  nav a[href]:after {
    content: none;
  }
  /* Make text readable and printer-friendly */
  p, h1, h2, h3, h4, h5, h6, li, td, th {
    page-break-inside: avoid; /* Prevents page breaks inside elements */
  }
  /* Page breaks for long elements */
  article, section {
    page-break-before: auto;
    page-break-after: auto;
  }
  /* Optimize tables */
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th, td {
    border: 1px solid #000;
    padding: 4px;
  }
  /* Remove unnecessary styles */
  img {
    max-width: 100%; /* Images should not exceed boundaries */
    height: auto;
  }
  /* Hide mailto and tel links as they are useless in print */
  a[href^="mailto:"],
  a[href^="tel:"] {
    content: none;
  }
  /* Expand all accordion elements */
  .ui-accordion .ui-accordion-content {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    overflow: visible !important;
  }
  /* Remove collapse/expand buttons */
  .ui-accordion .ui-accordion-header {
    pointer-events: none; /* Disable click */
  }
}
