@media print {
  :root {
    --twl-scroll-offset: 0px;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    scrollbar-color: auto;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .twl-header,
  .twl-footer,
  .twl-nav,
  .twl-nav-toggle,
  .twl-menu-cart__link,
  .twl-hero,
  .twl-hero__media,
  .twl-hero__highlights,
  .twl-hero__global-actions,
  .woocommerce-breadcrumb,
  .woocommerce-notices-wrapper .button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .woocommerce .return-to-shop,
  .woocommerce .woocommerce-MyAccount-navigation,
  .woocommerce .edit,
  .woocommerce-pagination,
  .screen-reader-text {
    display: none !important;
  }

  .twl-site-shell,
  .twl-shell,
  .twl-main,
  .twl-main > article,
  .twl-main > div,
  .twl-content-panel,
  .woocommerce,
  .woocommerce-page,
  .woocommerce-order,
  .woocommerce-customer-details,
  .woocommerce-order-details,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-checkout form.checkout,
  .woocommerce-cart .woocommerce,
  .woocommerce table.shop_table {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #000 !important;
  }

  .twl-content-panel,
  .woocommerce form.login,
  .woocommerce form.register,
  .woocommerce form.checkout_coupon,
  .woocommerce form.lost_reset_password,
  .woocommerce .woocommerce-order,
  .woocommerce .woocommerce-customer-details,
  .woocommerce .woocommerce-order-details,
  .woocommerce .woocommerce-MyAccount-content,
  .woocommerce-cart-form,
  .woocommerce-checkout-review-order,
  .woocommerce-checkout #payment {
    border: 1px solid #d0d0d0 !important;
    border-radius: 0 !important;
    padding: 0.9rem !important;
    margin-bottom: 1rem !important;
  }

  .twl-page-title,
  .special-title,
  .woocommerce-order h2,
  .woocommerce-column__title,
  .woocommerce-order-details__title,
  .woocommerce-table th,
  .woocommerce table.shop_table th {
    color: #000 !important;
  }

  .woocommerce-order-received .woocommerce-order-overview {
    display: block !important;
  }

  .woocommerce-order-received .woocommerce-order-overview li {
    border: 0 !important;
    padding: 0 0 0.4rem !important;
    margin: 0 0 0.4rem !important;
    page-break-inside: avoid;
  }

  .woocommerce table.shop_table,
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    border-color: #d0d0d0 !important;
    color: #000 !important;
  }

  .woocommerce table.shop_table thead th {
    background: #f3f3f3 !important;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline;
  }

  .twl-next-portal-surface,
  .twl-next-planner-surface,
  .twl-next-casting-surface {
    background: #fff !important;
  }
}


/* === Print adjustments: Theatreworks === */
@media print {

  @page {
    margin: 0.55in 0.45in 0.55in 0.45in;
    size: auto;
  }

  :root {
    --twl-print-ink: #000;
    --twl-print-border: #000;
    --twl-print-logo-w: 1.7in;
    --twl-print-logo-h: 0.55in;
  }

  html,
  body {
    color: var(--twl-print-ink) !important;
    background: #fff !important;
  }

  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0.12in;
    right: 0.15in;
    width: var(--twl-print-logo-w);
    height: var(--twl-print-logo-h);
    background: var(--twl-logo-black) no-repeat right top / contain;
    opacity: 1;
    z-index: 9999;
    pointer-events: none;
  }

  body > *:first-child,
  .twl-site-shell,
  .twl-main,
  #twl-main-content {
    margin-top: 0.15in !important;
  }

  a,
  p,
  li,
  dt,
  dd,
  span,
  small,
  strong,
  em,
  h1, h2, h3, h4, h5, h6,
  .twl-card,
  .twl-hero-card,
  .woocommerce,
  .woocommerce * {
    color: var(--twl-print-ink) !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  .wcs-class,
  .wcs-event,
  .wcs-single,
  .twl-card,
  .twl-legacy-slot,
  .twl-resource-card,
  .twl-post-card,
  body.woocommerce-shop ul.products li.product,
  body.tax-product_cat ul.products li.product,
  body.tax-product_tag ul.products li.product {
    border: 1px solid var(--twl-print-border) !important;
    background: #fff !important;
    color: var(--twl-print-ink) !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .wcs-class *,
  .wcs-event *,
  .wcs-single *,
  .twl-card *,
  .twl-legacy-slot *,
  .twl-resource-card *,
  .twl-post-card *,
  body.woocommerce-shop ul.products li.product *,
  body.tax-product_cat ul.products li.product *,
  body.tax-product_tag ul.products li.product * {
    color: var(--twl-print-ink) !important;
  }

  .twl-calendar-frontend-side {
    display: none !important;
  }

  .twl-calendar-frontend-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .twl-calendar-wrap,
  .twl-calendar-wrap .fc,
  .twl-calendar-wrap .fc-view-harness,
  .twl-calendar-wrap .fc-view-harness-active,
  .twl-calendar-wrap .fc-scrollgrid,
  .twl-calendar-wrap .fc-scrollgrid-liquid,
  .twl-calendar-wrap .fc-view {
    width: 100% !important;
    max-width: 100% !important;
  }

  .twl-calendar-wrap {
    transform: scale(0.82);
    transform-origin: top left;
    width: 122% !important;
    margin: 0 !important;
  }

  .twl-calendar-wrap .fc table,
  .twl-calendar-wrap .fc-scrollgrid-sync-table {
    table-layout: fixed !important;
    font-size: 9pt !important;
  }

  body.page-template-page-shows .twl-modal,
  body.page-template-page-shows .twl-cal-modal,
  body.page-template-page-shows .twl-show-modal,
  body.page-template-page-shows .twl-show-modal__dialog,
  body.page-template-page-shows .twl-cal-modal-content {
    position: static !important;
    inset: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 0 0.18in 0 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.page-template-page-shows .twl-cal-modal-media,
  body.page-template-page-shows .twl-show-modal__media,
  body.page-template-page-shows .twl-cal-modal-media img,
  body.page-template-page-shows .twl-show-modal__media img,
  body.page-template-page-shows .twl-modal img {
    width: 400px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border: 1px solid #000 !important;
    margin: 0 0 0.12in 0 !important;
  }

  body.page-template-page-shows .twl-cal-modal-body,
  body.page-template-page-shows .twl-show-modal__body,
  body.page-template-page-shows .twl-modal__content,
  body.page-template-page-shows .twl-cal-modal-body *,
  body.page-template-page-shows .twl-show-modal__body *,
  body.page-template-page-shows .twl-modal__content * {
    color: #000 !important;
  }

  body.woocommerce-shop::after,
  body.tax-product_cat.term-twl::after,
  body.tax-product_cat.term-tickets::after {
    content: "theatreworkslive.org";
    display: block;
    margin-top: 0.18in;
    color: #000 !important;
    font-size: 10pt;
    text-align: left;
  }

  .twl-cart-actions-row__coupon,
  .coupon,
  #coupon_code,
  .woocommerce-form-coupon-toggle,
  .woocommerce-form-coupon {
    display: none !important;
  }

  .twl-header,
  .twl-footer,
  .twl-nav,
  .twl-nav-toggle,
  .twl-header__actions,
  .twl-hero__stars,
  .twl-hero__glass-edge,
  .twl-hero__media-overlay,
  .woocommerce-breadcrumb,
  .woocommerce-ordering,
  .woocommerce-result-count,
  .woocommerce-notices-wrapper:empty {
    display: none !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(2.15in, 2.15in)) !important;
    gap: 0.15in !important;
    justify-content: start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 2.15in !important;
    min-width: 2.15in !important;
    max-width: 2.15in !important;
  }

  .woocommerce ul.products li.product img,
  .woocommerce-page ul.products li.product img {
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid #000 !important;
  }

  .woocommerce-loop-product__title,
  .price,
  .event-date,
  .product_title,
  .twl-hero__title,
  .twl-hero__copy {
    color: #000 !important;
  }
}
