/* Shared client feedback: keep the storefront's primary actions consistent,
   reduce decorative emphasis and improve small-screen reading comfort. */
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .elementor a.elementor-button,
body .uts-motion-cta,
body form input[type="submit"] {
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid #173e7a;
  border-radius: 10px;
  background: #173e7a;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .035em;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .elementor a.elementor-button:hover,
body .uts-motion-cta:hover,
body form input[type="submit"]:hover {
  border-color: #102f5c;
  background: #102f5c;
  color: #fff;
  transform: translateY(-1px);
}

/* Remove inline bold emphasis inside prose while retaining semantic markup. */
body p strong,
body p b {
  color: inherit;
  font-weight: inherit;
}

/* Language selection stays text-only and floats just below the header
 * (keep these positions in sync with sitewide-polish.css). */
.uts-language-float.uts-language-float {
  position: fixed !important;
  top: 138px !important;
  right: clamp(14px, 2vw, 28px) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 999999 !important;
}
body.admin-bar .uts-language-float.uts-language-float {
  top: 170px !important;
}
@media (max-width: 1024px) {
  .uts-language-float.uts-language-float {
    top: 110px !important;
  }
  body.admin-bar .uts-language-float.uts-language-float {
    top: 142px !important;
  }
}
@media (max-width: 782px) {
  body.admin-bar .uts-language-float.uts-language-float {
    top: 156px !important;
  }
}
html[dir="rtl"] .uts-language-float.uts-language-float {
  right: auto !important;
  left: clamp(14px, 2vw, 28px) !important;
}
.wpml-ls-flag {
  display: none !important;
}

/* One unobtrusive dot row plus the accessible pause control. */
.uts-motion-controls .uts-motion-arrow {
  display: none !important;
}
.uts-motion-controls .uts-motion-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}
.uts-motion-controls .uts-motion-dot {
  box-sizing: border-box;
  width: 9px;
  min-width: 9px;
  height: 9px;
  min-height: 9px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 0 !important;
  line-height: 0;
  text-indent: -999px;
}
.uts-motion-controls .uts-motion-dot.is-active {
  background: currentColor;
}

/* Remove product-page comparison and social-sharing clutter. */
.single-product .wd-compare-btn,
.single-product .wd-compare,
.single-product .wd-social-icons,
.single-product .wd-social-icons-wrapper,
.single-product .wd-share-button {
  display: none !important;
}

/* The client has removed product comparison from the storefront. Hide the
   controls and any comparison surface from WoodMart, ShopEngine, and custom
   product cards across every page type. */
body .wd-compare-btn,
body .wd-compare,
body .wd-header-compare,
body .wd-compare-table,
body .wd-compare-popup,
body .wd-compare-overlay,
body #wd-compare-popup,
body .shopengine_comparison_add_to_list_action,
body .shopengine-comparison,
body .shopengine-comparison-modal,
body .shopengine-comparison-bottom-bar,
body .shopengine-comparison-page,
body .uts-card-compare {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Keep the single product-page wishlist link below the purchase controls.
   Hide ShopEngine's duplicate wishlist button beside the quantity/cart form. */
body.single-product form.cart > button.shopengine_add_to_list_action.shopengine-wishlist {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Related cards keep the bottom-row Wishlist and Add to Cart actions. Hide
   duplicate hover actions and the extra Quick View control in the action row. */
body .related-products .product-grid-item .product-element-top .wd-buttons .wd-wishlist-btn,
body .related-products .product-grid-item .product-element-top .wd-buttons .quick-view-button,
body .related-products .product-grid-item .wd-add-btn .shopengine-quickview-trigger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Give the remaining related-card Wishlist and Add to Cart actions a clear,
   shared baseline and enough horizontal room for a consistent gap. */
body .related-products .product-grid-item .wd-add-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: 100% !important;
  overflow: visible !important;
}
body .related-products .product-grid-item .wd-add-btn .shopengine_add_to_list_action.shopengine-wishlist {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
}
body .related-products .product-grid-item .wd-add-btn .add-to-cart-loop {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  height: 30px !important;
  min-height: 30px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 30px !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .uts-language-float.uts-language-float {
    top: 110px !important;
    right: 12px !important;
  }
  body.admin-bar .uts-language-float.uts-language-float {
    top: 156px !important;
  }
  html[dir="rtl"] .uts-language-float.uts-language-float {
    right: auto !important;
    left: 12px !important;
  }
  body .elementor-widget-text-editor p,
  body .entry-content p,
  body .woocommerce-product-details__short-description p,
  body .woocommerce-Tabs-panel p {
    font-size: max(15px, 1em);
    line-height: 1.65;
  }
}
