.woocommerce ul.products li.product.la-oak-product .astra-shop-thumbnail-wrap,
.woocommerce-page ul.products li.product.la-oak-product .astra-shop-thumbnail-wrap {
  position: relative;
}

.la-oak-label,
.la-oak-sold-badge {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.woocommerce ul.products li.product .la-oak-label,
.woocommerce-page ul.products li.product .la-oak-label {
  top: 18px;
  right: 16px;
  /* Product images stay light in both themes, so this overlay must too. */
  color: #1f1f1f;
  font-family: var(--font-body);
  font-size: 10px;
  font-style: italic;
  font-weight: 300;
  font-synthesis: style weight;
  line-height: 1.2;
  white-space: nowrap;
}

.woocommerce ul.products li.product .la-oak-sold-badge,
.woocommerce-page ul.products li.product .la-oak-sold-badge {
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  /* The product image is the same in light and dark mode. */
  background: #2e2e2e;
  color: #f5f5f5;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.single-product div.product.la-oak-product h1.product_title .la-oak-single-label {
  display: inline-block;
  width: auto !important;
  margin: 0 0 0 12px !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: italic;
  font-weight: 300;
  font-synthesis: style weight;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  transform: translateY(-1px);
}

.single-product div.product.la-oak-product h1.product_title {
  font-family: var(--font-heading) !important;
  font-size: 23px !important;
  font-weight: 400 !important;
}

/* Keep the sold-out CTA on the same left edge as the product details. */
.single-product .la-oak-sold-simple-form {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.single-product .la-oak-sold-simple-form .single_add_to_cart_button,
.single-product .la-oak-sold-simple-form .single_add_to_cart_button:disabled {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.single-product div.product.la-oak-product-sold .single_add_to_cart_button,
.single-product div.product.la-oak-product-sold .single_add_to_cart_button:disabled,
.single-product .la-oak-sold-simple-form .single_add_to_cart_button,
.single-product .la-oak-sold-simple-form .single_add_to_cart_button:disabled {
  background: var(--surface-disabled) !important;
  border: 2px solid var(--text-disabled) !important;
  color: var(--text-disabled) !important;
  cursor: default !important;
  opacity: 1 !important;
  pointer-events: none;
}

@media (max-width: 767px) {
  .single-product div.product.la-oak-product h1.product_title .la-oak-single-label {
    font-size: 10px;
  }

  .woocommerce ul.products li.product .la-oak-label,
  .woocommerce-page ul.products li.product .la-oak-label {
    top: 12px;
    right: 8px;
    font-size: 10px;
    line-height: 1.2;
  }

  .woocommerce ul.products li.product .la-oak-sold-badge,
  .woocommerce-page ul.products li.product .la-oak-sold-badge {
    top: 9px;
    left: 8px;
    padding: 3px 6px;
    font-size: 10px;
    line-height: 1.2;
  }
}
