@media print {
  * {
    -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
  }
  html, body {
    background: #f3f6fa !important; 
    background-image: linear-gradient(#e8eff7, #ffffff) !important; 
  }

  @page { margin: 0; }
  body { margin: 0; }

  .invoice-hero, .pmpro_card {
    -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
    background: inherit; 
  }
    /* Ховаємо навігацію, щоб не лишали “дірки” знизу */
  .pmpro_actions_nav, .pmpro_card_actions { display: none !important; }

  /* Робимо фон на ВЕСЬ інвойс і тягнемо його на висоту сторінки */
  .tpm-invoice{
    min-height: 100vh;              
  }
}


.pmpro-confirmation .pmpro_card {
    margin: 0;
}

.pmpro-confirmation .betterdocs-ia-launcher-wrapper, .pmpro-confirmation .pmpro_section{
    display: none;
}

.tpm-invoice{
background: linear-gradient(to bottom,  #ffffff 0%,#5d7f99 60%); 
}

.pmpro-confirmation {background:#23445d;}

.tpm-hero__top{  padding: 10px 24px 0}
.tpm-title{    
    margin: 16px auto 0;
    text-align: center;
    justify-content: center !important;
    font-size: 22px;
    font-weight: 700;
    font-family: "Roboto Condensed", Sans-serif;
    letter-spacing: .04em;
    color:#fff
  }
  .pdf_img {
    margin-top: 10px;
    text-align: right;
}
.pdf_logo{
    max-width: 350px;
}
.pdf_img img{max-width: 70%;}
.tpm-wrap{ padding:  24px; }
.tpm-kv{display: block;margin:22px 0;color:#fff}
.tpm-kv > div{display: flex;}

.tpm-table{width:100%;border-collapse:collapse;background:#f2f6fa;border:1px solid #8aa2b8;font-size:15px}
.tpm-table th,.tpm-table td{border:1px solid #8aa2b8;padding:10px 12px}
.tpm-table thead th{background:#d1dee9;text-align:left}
.tpm-table tfoot td{font-weight:700;background:#e0ebf3}
.tpm-contacts{margin:20px 0 8px;color:#fff}
.tpm-contacts__title{font-weight:700;margin-bottom:6px;color:#fff}
.tpm-contacts a{color:#fff;text-decoration:underline}
.tpm-thanks{ margin: 30px 0 30px;text-align:center;color:#fff;font-weight:600}
.tpm-kv__block, .tpm-kv__inf { display: block !important;}
.sub_a{color:#fff!important;text-decoration:underline}
 .tpm-kv__sub {color:#fff!important; margin-bottom:2px!important; margin-right: 5px!important;font-weight:600!important; }
.tpm-kv__label{font-weight:600;color:#fff;display:block;margin-bottom:2px; margin-right: 5px;}
.tpm-h3{
  margin:18px 0 24px;
  text-align:center;
  font-weight:700;
  font-family: "Roboto Condensed", Sans-serif;
  letter-spacing: .04em;
  color:#fff;
  }

.pmpro-confirmation  .pmpro_actions_nav a, .pmpro_card_actions button{color:#fff!important;}
.pmpro-confirmation  .pmpro_actions_nav{
  margin: 0px 0 20px;
}
.pmpro-confirmation .pmpro_card_actions {background:#b85450!important;}

.pmpro-confirmation .pmpro_card_actions button:hover, .pmpro-confirmation a:hover{color:#b85450!important;}