.text-center {
  text-align: center;
}
.video-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(
    <?php echo esc_attr($atts[ "columns"]) ; ?>,
    1fr
  );
  gap: 20px;
  padding: 20px;
}
.video-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  text-align: center;
  padding: 10px;
}
.video-item:hover {
  transform: scale(1.05);
}
.video-item img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #ddd;
}
.video-item h2 {
  font-size: 16px;
  margin: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-block-product-template__responsive > li {
  position: relative;
  overflow: hidden;
}

.wc-block-product .category__product__free-flag {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--wp--preset--color--tertiary);
  color: white;
  padding: 0.5rem;
  transform: rotate(-30deg) translateX(-30%) translateY(-70%);
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.3em;
  pointer-events: none;
  text-decoration: none;
}
.wc-block-product .category__product__free-flag strong {
  display: block;
}
.single-product .category__product__free-flag {
  background: var(--wp--preset--color--tertiary);
  color: white;
  display: block;
  text-decoration: none;
  padding: 1rem;
  font-size: 1.1rem;
  line-height: 1.3em;
}
.single-product .category__product__free-flag:hover span {
  text-decoration: underline;
}

.category__filter {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.category__filter strong {
  display: block;
}

.category__filter ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.category__filter ul li {
  display: inline-block;
}

.category__filter ul li a {
  display: inline-block;
  padding: 8px 16px;
  color: var(--wp--preset--color--tertiary); /* Default text color */
  background-color: #f0f0f0; /* Background color for unselected pills */
  border-radius: 20px; /* Makes it rounded */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover and selected states */
}

.category__filter ul li a:hover {
  background-color: var(
    --wp--preset--color--tertiary
  ); /* Change background on hover */
  color: #fff; /* Change text color on hover */
}

.category__filter ul li a[data-selected="1"] {
  background-color: var(
    --wp--preset--color--tertiary
  ); /* Selected background */
  color: #fff; /* Selected text color */
}
.category__filter ul li a[data-selected="1"]:after {
  content: "×";
  display: inline-block;
  margin-left: 0.75em;
  font-weight: bold;
  color: var(--wp--preset--color--tertiary);
  cursor: pointer;
  font-size: 16px;
  user-select: none;
  line-height: 1;
  /* Optional: make it a circle background */
  width: 16px;
  height: 16px;
  text-align: center;
  border-radius: 50%;
  background: #f0f0f0;
}

.category__filter ul li a[data-selected="1"]:hover {
  opacity: 0.9;
}

.woocommerce-ordering select {
  padding: 10px;
  border-radius: 6px;
}

/*
.logged-in
  .wc-block-product.product_cat-videos:not(:has(.included-free-download))
  .wc-block-components-product-image {
  filter: grayscale(1);
  opacity: 0.3;
}
*/

/*.logged-in*/
.wc-block-product.product_cat-videos:has(.included-free-download)
  .wc-block-components-product-image,
.wp-block-woocommerce-product-image:has(a[href="#stream"]) {
  position: relative;
}

/*.logged-in*/
.wc-block-product.product_cat-videos:has(.included-free-download)
  .wc-block-components-product-image:before,
.wp-block-woocommerce-product-image:has(a[href="#stream"]):before {
  font-family: "dashicons";
  content: "\f19b";
  content: ""; /* disable icon!! */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8rem;
  padding: 1rem;
  display: block;
  text-align: center;
  color: var(--wp--preset--color--secondary);
  border-radius: 10px;
  pointer-events: none;
  text-shadow: 0 0 0.25em rgba(0, 0, 0, 0.8);
}

/* hide paypal buttons on product page */
.single-product .wp-block-add-to-cart-form .ppcp-messages,
.single-product .wp-block-add-to-cart-form .ppc-button-wrapper {
  display: none !important;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.8);
}
.modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  background: #000;
  padding: 10px;
  border-radius: 10px;
}
.modal .close {
  color: white;
  font-size: 24px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 999999;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.modal video {
  width: 100%;
  height: auto;
}
.modal audio {
  margin: 3rem 2rem 2rem 2rem;
  text-align: center;
}
.modal #videoLoading {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  width: 200px;
  height: 100px;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 100px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 999999;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.modal #videoLoading:before {
  content: "\f463"; /* dashicons-update */
  font-family: "Dashicons";
  display: inline-block;
  animation: spin 1s linear infinite;
  font-size: 24px;
}
/* 
.woocommerce-dashboard
  .swpm-active-subs-table-wrap
  .swpm-active-subs-table
  tbody
  tr:last-of-type {
  display: none;
}
.woocommerce-dashboard
  .swpm-active-subs-table-wrap
  .swpm-active-subs-table
  tbody
  tr:first-of-type {
  display: block;
} */

.swpm-active-subs-table {
  margin: 2rem 0 0 0;
  padding: 1rem 0 0 0;
  border-top: 1px solid #eee;
}
.swpm-active-subs-table td,
.swpm-active-subs-table th {
  padding-left: 0;
  padding-right: 0;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

.swpm-form .swpm-form-row .swpm-form-input-wrap input,
#swpm-login-form input,
#swpm-pw-reset-form input {
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 4px;
  font-size: 16px;
}
.swpm-form
  .swpm-form-row.swpm-membership-level-row
  .swpm-form-membership-level-value {
  font-weight: 600;
}
.swpm-form .swpm-submit-btn-default-style,
#swpm-login-form .swpm-submit-btn-default-style,
#swpm-pw-reset-form .swpm-submit-btn-default-style {
  background: var(--wp--preset--color--secondary);
  border: none;
  border-radius: 0.33rem;
  padding: 0.5rem 1rem;
  height: auto;
  display: inline-block;
  width: auto;
}
.swpm-join-us-link {
  font-weight: 600;
  margin-top: 1rem;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
  font-weight: 600;
}

.swpm-registration-success-msg {
  font-weight: 600;
}

.wp-element-button.disabled {
  visibility: hidden;
  pointer-events: none;
}

/*
.wc-block-order-confirmation-downloads-wrapper,
.woocommerce-order-downloads {
  display: none !important;
}
*/

.multiple_files_buttons {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

a[href="#stream"].wp-element-button span:before,
.wc-block-order-confirmation-totals__product a[href="#stream"]:before,
.woocommerce-table__line-item.order_item a[href="#stream"]:before,
.download-product a[href="#stream"]:before {
  font-family: "dashicons";
  content: "\f19b";
  display: inline-block;
  vertical-align: middle;
  font-size: 2em;
  line-height: 1;
  margin-right: 0.5rem;
}

a[href="#stream"][data-filetype="audio"].wp-element-button span:before,
.wc-block-order-confirmation-totals__product
  a[href="#stream"][data-filetype="audio"]:before,
.woocommerce-table__line-item.order_item
  a[href="#stream"][data-filetype="audio"]:before,
.download-product a[href="#stream"][data-filetype="audio"]:before {
  content: "\f500";
}

.productPageStreamNow {
  font-size: 1.25rem;
  padding: 1rem;
  display: inline-block;
  display: flex;
}

.view-your-course span:before,
.productPageStreamNow[href*="/courses/"]:before {
  font-family: "dashicons";
  content: "\f118";
  display: inline-block;
  vertical-align: middle;
  font-size: 2em;
  line-height: 1;
  margin-right: 0.5rem;
}

.button.viewAll:before {
  font-family: "dashicons";
  content: "\f322";
  display: inline-block;
  vertical-align: middle;
  font-size: 2em;
  line-height: 1;
  margin-right: 0.5rem;
}

.productPageViewFile {
  font-size: 1.25rem;
  padding: 1rem;
  display: inline-block;
}

a[href*="noStream"].wp-element-button span:before,
.wc-block-order-confirmation-totals__product a[href*="noStream"]:before,
.woocommerce-table__line-item.order_item a[href*="noStream"]:before,
.download-product a[href*="noStream"]:before {
  font-family: "dashicons";
  content: "\f121";
  display: inline-block;
  vertical-align: middle;
  font-size: 2em;
  line-height: 1;
  margin-right: 0.5rem;
}

.download-file:has(a:contains("Video download")) {
  display: none !important;
}

.swpm_error {
  color: #dc3545;
  font-weight: 600;
}

.swpm_success {
  color: #28a745;
  font-weight: 600;
}

.wc-block-product-template__responsive {
  grid-gap: 2.5em 1.25em;
}

/* Disable zoom effect for products in the 'Videos' category */
body.single-product.virtual .woocommerce-product-gallery .zoom {
  display: none !important;
}
/* Optionally, if you want to hide other hover effects (like lightbox or popup) */
body.single-product.virtual
  .woocommerce-product-gallery
  .woocommerce-product-gallery__image {
  pointer-events: none !important;
}

body.single-product.virtual
  div.product
  div.images
  .woocommerce-product-gallery__wrapper
  .zoomImg {
  display: none !important;
}

body.single-product.virtual
  .woocommerce-product-gallery
  .woocommerce-product-gallery__image
  a {
  pointer-events: all !important;
}

body.single-product.virtual
  .woocommerce-product-gallery
  .woocommerce-product-gallery__image
  a
  img {
  pointer-events: none !important;
}

body.single-product.virtual .pswp {
  display: none !important;
}

:root :where(.wp-element-button:hover, .wp-block-button__link:hover) {
  color: inherit !important;
  opacity: 0.9;
}

nav.wp-block-query-pagination {
  padding: 3rem 0 2rem 0;
}
nav.wp-block-query-pagination div a {
  display: inline-block;
  padding: 0.25rem;
}

/* hide pricing within a course category */
.parent-cat-id-45 .wp-block-woocommerce-product-price {
  display: none !important;
}
.parent-cat-id-45 .category__product__free-flag {
  display: none !important;
}

html body .wc-block-product-template__responsive.columns-3 {
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(200px, calc(33.33333% - 0.83333em)), 1fr)
  );
}

.stock.out-of-stock {
  display: none !important;
}

.homepage-new-products {
  display: flex;
  flex-direction: row;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1400px;
}
.homepage-new-products li {
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 240px;
  text-align: center;
}
.homepage-new-products li a.image {
}
.homepage-new-products li a.image img,
.wc-block-product-template__responsive
  .wc-block-product
  div.wp-block-woocommerce-product-image
  img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;
  object-fit: cover !important;
}
.homepage-new-products li a.image img {
  max-width: 240px;
}
.homepage-new-products li h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}
.homepage-new-products li h3 a {
  text-decoration: none;
}
.homepage-new-products li .wp-block-woocommerce-product-price {
}

.wpcf7-form {
}

.wpcf7-form p {
}

.wpcf7-form p label {
}

.wpcf7-form p .wpcf7-form-control-wrap {
  display: block;
  margin: 4px 0 0 0;
}

.wpcf7-form p .wpcf7-form-control-wrap input,
.wpcf7-form p .wpcf7-form-control-wrap textarea,
.wpcf7-form p .wpcf7-form-control-wrap select {
  padding: 8px;
  border: none;
  border-radius: 4px;
  display: inline-block;
  width: 100%;
  background: #fff;

  color: #212121;
  font-family: var(--wp--preset--font-family--open-sans);
  font-size: var(--wp--preset--font-size--medium);
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.wpcf7-form .wpcf7-submit {
  border: none;
  cursor: pointer;
  background: #000;
  display: inline-block;
  color: #fff;
  outline: none;
  padding: 8px 30px;
  border-radius: 80px;
}

.taxonomy-product_tag.wp-block-post-terms,
.taxonomy-product_cat.wp-block-post-terms,
.wc-block-components-product-sku {
  display: none !important;
}

/* footer.wp-block-template-part {
  margin: 0 auto;
} */

/* temp fix for iphone background start */
@supports (-webkit-touch-callout: none) {
  div.has-background {
    background-attachment: scroll !important;
  }
}
/* temp fix for iphone background end */
.wp-block-sender-sender-forms.hideTitle .sender-form-title {
  display: none !important;
}

.custom_product_button {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
}
.custom_product_button__count {
  width: 100%;
}
.custom_product_button > br {
  display: none;
}

.custom_product_button > a {
  margin: 0;
}

.custom_product_button__allFiles {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-height: 236px;
  overflow-y: auto;
  flex-wrap: wrap;
}

.custom_product_button__allFiles br {
  display: none !important;
}

.custom_product_button__allFiles a {
  flex: 1 0 40%;
}
.custom_product_button__allFiles a span {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.custom_product_button__allFiles a span strong {
  display: block;
  font-weight: normal;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.custom_product_button__allFiles a span em {
  display: block;
  font-size: 0.7em;
  margin-top: -4px;
  font-style: normal;

  display: none !important;
}

.wp-block-navigation .wp-block-navigation-item.coming-soon:before {
  content: "Coming soon";
  display: block;
  position: absolute;
  top: -6px;
  right: 6px;
  font-size: 0.6em;
  background: var(--wp--preset--color--secondary);
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 600px) {
  .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .has-child
    .wp-block-navigation__submenu-container {
    gap: 10px;
  }
  .wp-block-navigation .wp-block-navigation-item.coming-soon:before {
    top: -12px;
  }
}
