/* WordPress / WooCommerce glue for the Aussify Life mockup */

.al-preview {
  display: none !important;
}

.ss-qty-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ss-woo-page {
  width: min(var(--ss-container-max, 1660px), calc(100% - 48px));
  margin: 1.5rem auto 4rem;
  padding-bottom: 2rem;
}

.ss-woo-page .woocommerce {
  max-width: none;
}

body.sscomic-theme .woocommerce-notices-wrapper,
body.sscomic-theme .woocommerce-message,
body.sscomic-theme .woocommerce-info,
body.sscomic-theme .woocommerce-error {
  width: min(var(--ss-container-max, 1660px), calc(100% - 48px));
  margin: 1rem auto;
}

body.sscomic-theme .woocommerce-message,
body.sscomic-theme .woocommerce-info {
  border-top-color: #1e6fff;
  background: #fff;
}

.ss-store-main .woocommerce-pagination {
  margin: 2rem 0 0;
}

.ss-store-main .woocommerce-pagination ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}

.ss-store-main .woocommerce-pagination a,
.ss-store-main .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--ss-border, #e4d9cc);
  background: #fff;
  color: var(--ss-header, #2a211c);
  text-decoration: none;
  font-weight: 700;
}

.ss-store-main .woocommerce-pagination .current {
  background: var(--ss-header, #2a211c);
  color: #fff;
  border-color: var(--ss-header, #2a211c);
}

body.sscomic-theme #wpadminbar + .ss-announce,
.admin-bar .ss-announce {
  top: 32px;
}

.ss-card-wishlist.is-active svg,
.ss-pdp-linkbtn.is-active {
  color: #c24b3a;
}

.ss-card-wishlist.is-active svg {
  fill: #c24b3a;
}

body.sscomic-theme .woocommerce div.product div.images,
body.sscomic-theme .woocommerce-tabs,
body.sscomic-theme .woocommerce-product-gallery {
  display: contents;
}

body.single-product .product_meta,
body.single-product .sku_wrapper,
.ss-pdp-sku {
  display: none !important;
}

.ss-related-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.ss-related-grid > li.product {
  flex: 0 1 calc((100% - 1rem) / 2);
  max-width: calc((100% - 1rem) / 2);
  min-width: 0;
}

@media (min-width: 700px) {
  .ss-related-grid > li.product {
    flex: 0 1 calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
  }
}

@media (min-width: 900px) {
  .ss-related-grid {
    gap: 1rem;
  }

  .ss-related-grid > li.product {
    flex: 0 1 calc((100% - 4rem) / 5);
    max-width: calc((100% - 4rem) / 5);
  }
}

body.sscomic-theme ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-woo-head {
  margin: 0 0 1.25rem;
}

.ss-woo-heading {
  margin: 0;
  font-family: var(--ss-font-display, Manrope, sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f2744;
}

body.woocommerce-cart .ss-woo-page table.shop_table.cart {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
}

body.sscomic-theme .added_to_cart.wc-forward {
  display: none;
}

.ss-pdp-cart .single_add_to_cart_button.loading {
  opacity: 0.7;
}

.ss-info-updated {
  font-size: 0.875rem;
  color: var(--ss-muted, #6b645c);
  margin: -0.5rem 0 1.25rem !important;
}

.ss-info-continue {
  margin-top: 2.25rem;
}

.ss-info-continue a {
  font-weight: 700;
}

body.sscomic-theme.ss-account-main .ss-woo-page,
body.woocommerce-account .ss-woo-page {
  max-width: 1100px;
  padding-top: 2rem;
}

body:not(.logged-in).woocommerce-account .ss-woo-page {
  max-width: 560px;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

body.single-product .product > h1.product_title,
body.single-product .summary .product_title {
  display: none;
}
