/*
 * Sleepbetter.Baby v3.6.9
 * One real reader product, one cover, and reliable cart removal controls.
 */

.sbb-theme-v369 .sbb-product-row--v368,
.sbb-theme-v369.woocommerce ul.products.sbb-v369-exact-one,
.sbb-theme-v369 .sbb-v368-test-products,
.sbb-theme-v369 .sbb-v369-single-product {
  display: grid;
  grid-template-columns: minmax(280px, 440px) !important;
  justify-content: center;
  gap: 1rem;
}

.sbb-theme-v369 .sbb-product-row--v368 > *,
.sbb-theme-v369.woocommerce ul.products.sbb-v369-exact-one > *,
.sbb-theme-v369 .sbb-v368-test-products > *,
.sbb-theme-v369 .sbb-v369-single-product > * {
  width: 100% !important;
  max-width: 440px;
  grid-column: auto !important;
  justify-self: center;
}

.sbb-theme-v369 .sbb-age-selector--single-product .sbb-age-selector__grid {
  grid-template-columns: minmax(280px, 680px);
  justify-content: center;
}

.sbb-theme-v369
  .sbb-age-selector--single-product
  .sbb-age-selector__card {
  min-height: 0;
}

.sbb-theme-v369 .sbb-catalog-previews-v330 .sbb-catalog-previews-v320__grid {
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
}

/*
 * Keep WooCommerce's native remove URL / Store API handler. These rules only
 * turn the existing accessible control into a large, unmistakable × button.
 */
body.sbb-theme-v369.woocommerce-cart
  .woocommerce
  table.shop_table.cart
  td.product-remove {
  width: 60px;
  text-align: center;
}

body.sbb-theme-v369.woocommerce-cart
  .woocommerce
  table.shop_table.cart
  td.product-remove
  > a.remove {
  display: inline-grid !important;
  visibility: visible !important;
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(159, 75, 66, .28);
  border-radius: 999px;
  opacity: 1 !important;
  background: #fff7f5;
  color: #9f4b42 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none;
}

body.sbb-theme-v369.woocommerce-cart
  .woocommerce
  table.shop_table.cart
  td.product-remove
  > a.remove::before {
  content: "\00D7";
  color: currentColor;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

body.sbb-theme-v369.woocommerce-cart
  .woocommerce
  table.shop_table.cart
  td.product-remove
  > a.remove:hover {
  border-color: #9f4b42;
  background: #9f4b42;
  color: #fff !important;
}

body.sbb-theme-v369.woocommerce-cart .wc-block-cart-item__remove-link {
  display: inline-grid !important;
  visibility: visible !important;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 !important;
  place-items: center;
  border: 1px solid rgba(159, 75, 66, .28) !important;
  border-radius: 999px;
  opacity: 1 !important;
  background: #fff7f5 !important;
  color: #9f4b42 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.sbb-theme-v369.woocommerce-cart
  .wc-block-cart-item__remove-link::before {
  content: "\00D7";
  color: currentColor;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

body.sbb-theme-v369.woocommerce-cart
  .wc-block-cart-item__remove-link:hover {
  border-color: #9f4b42 !important;
  background: #9f4b42 !important;
  color: #fff !important;
}

body.sbb-theme-v369.woocommerce-cart
  :where(
    .woocommerce table.shop_table.cart td.product-remove > a.remove,
    .wc-block-cart-item__remove-link
  ):focus-visible {
  outline: 3px solid #9f4b42;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(159, 75, 66, .18);
}

body.sbb-theme-v369.woocommerce-cart
  .wc-block-cart-item__remove-link:is(:disabled, [aria-disabled="true"]) {
  opacity: .55 !important;
  cursor: wait;
}

@media (max-width: 768px) {
  .sbb-theme-v369 .sbb-product-row--v368,
  .sbb-theme-v369.woocommerce ul.products.sbb-v369-exact-one,
  .sbb-theme-v369 .sbb-v368-test-products,
  .sbb-theme-v369 .sbb-v369-single-product,
  .sbb-theme-v369 .sbb-age-selector--single-product .sbb-age-selector__grid,
  .sbb-theme-v369 .sbb-catalog-previews-v330 .sbb-catalog-previews-v320__grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.sbb-theme-v369.woocommerce-cart
    .woocommerce
    table.shop_table_responsive.cart
    tr.cart_item {
    grid-template-columns: 44px 78px minmax(0, 1fr);
  }

  body.sbb-theme-v369.woocommerce-cart
    .woocommerce
    table.shop_table_responsive.cart
    td.product-remove {
    width: 44px;
  }
}
