@page {
  size: Letter;
  margin: 0.5in;
}

@media print {
  html {
    min-width: 8.5in;
  }

  body {
    width: 100%;
    color: var(--color-text-primary, #121313);
  }

  html,
  body {
    margin: 0;
  }

  .tqc-flex-on-large {
    --flex-align: flex-start;
    --flex-gap: 1rem;
    --flex-justify: flex-start;
    --flex-wrap: nowrap;
    display: flex !important;
    flex-direction: row;
    align-items: var(--flex-align);
    justify-content: var(--flex-justify);
    gap: var(--flex-gap);
    flex-wrap: var(--flex-wrap);
  }

  .pv-container-lg.tqc-flex-on-large {
    gap: 24px;
  }

  .tqc-pet-wrapper .pv-hide-on-small {
    display: revert !important;
  }

  .tqc-pet-wrapper .pv-hide-on-large {
    display: none !important;
  }

  .tqc-cost-summary {
    width: 46% !important;
  }

  .pv-sticky {
    position: static !important;
  }

  .tqc-pet-wrapper {
    padding: 0;
    border-top: none;
  }

  .tqc-pet-inset-section {
    padding: 0;
  }

  .tqc-flex-on-print {
    display: flex;
    gap: 16px;
  }

  .tqc-flex-on-print > div {
    flex: 1;
    margin-top: 0px !important;
  }

  .tqc-pet-cost-summary > div {
    margin-block-end: 0px !important;
  }

  .tqc-treatment-plan-container {
    padding: 24px;
  }

  .tqc-treatment-plan__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .tqc-provider-location {
    padding: 24px;
  }

  .tqc-treatment-plan:not(.tqc-treatment-plan--expanded)
    .tqc-treatment-plan__item-wrapper:nth-of-type(n + 6) {
    display: block !important;
  }

  /* Treatment card spacing */
  .tqc-treatment-plan .pv-flow > * + * {
    margin-top: 12px !important;
  }

  #pet-insurance,
  .insurance-selector-toggle {
    /* Our insurance were all getting cut off.  The smaller font helps.  */
    font-size: 14px !important;
  }

  .pv-shadow {
    /* Used to add a box shadow on print.  Now does not.*/
    box-shadow: none !important;
  }

  [data-original-price] {
    font-size: 24px !important;
    line-height: 28px;
  }

  .pv-heading-3 {
    gap: 32px;
    align-items: center;
    color: #000 !important;
  }

  .tqc-provider-location,
  .tqc-provider-location a {
    /* PitViper links default to font-weight 600, but the pdf design has them normal weight */
    color: var(--black, #181818) !important;
    font-weight: 400 !important;
  }

  .pv-text-subdued {
    /* The pdf has a different color for pv-text-subdued than the web version */
    color: #4b595c !important;
  }

  .tqc-cost-share-result,
  .tqc-treatment-plan [class*="pv-tag"],
  .tqc-pet-cost-summary [class*="pv-tag"] {
    /* print auto-drops background color shading */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
