/* Print Stylesheet for InStockRx Pricing Page */

@media print {
  /* Hide navigation, buttons, and interactive elements */
  header,
  footer,
  nav,
  button,
  .no-print {
    display: none !important;
  }

  /* Reset page margins */
  @page {
    margin: 1cm;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Ensure pricing cards print side by side */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1cm;
    page-break-inside: avoid;
  }

  /* Pricing card styling for print */
  .pricing-card {
    border: 2px solid #000;
    padding: 0.5cm;
    page-break-inside: avoid;
  }

  /* Ensure headings are bold */
  h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #000;
    page-break-after: avoid;
  }

  /* Ensure links show URLs */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Avoid page breaks inside important elements */
  .pricing-tier,
  .faq-item,
  ul,
  ol {
    page-break-inside: avoid;
  }

  /* Ensure checkmarks and icons are visible */
  svg {
    display: inline-block;
  }

  /* Remove shadows and transitions */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Ensure background colors are visible (some browsers hide them by default) */
  .pricing-card {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Add page header */
  @page {
    @top-center {
      content: "InStockRx Pricing - " counter(page);
    }
  }

  /* Ensure tables print properly */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }

  th, td {
    border: 1px solid #000;
    padding: 0.2cm;
    text-align: left;
  }
}
