/* Shared treatments, loaded after the storefront's existing layout styles. */
html body.wolfedu-polished,
html body.wolfedu-polished .site-content {
	background-color: var(--we-paper) !important;
}

/* WooCommerce and custom product headings otherwise inherit theme navy. */
html body.wolfedu-polished :is(.wes-udemy, .woocommerce, .summary, .products) :is(h1, h2, h3, h4, h5, h6),
html body.wolfedu-polished .site-content .entry-title {
	color: var(--we-ink);
}

/* Keep headings legible inside the cart's existing dark summary bar. */
html body.wolfedu-polished.woocommerce-cart .cart_totals > h2 {
	color: var(--we-paper);
}

html body.wolfedu-polished .elementor-element .elementor-button {
	background: var(--we-button-bg) !important;
	color: var(--we-button-text) !important;
	border-color: var(--we-button-bg) !important;
	font-weight: 700 !important;
}

html body.wolfedu-polished .elementor-element .elementor-button:hover {
	background: var(--we-button-hover) !important;
	border-color: var(--we-button-hover) !important;
}

html body.wolfedu-polished .elementor-element .elementor-button .elementor-button-text {
	color: inherit !important;
}

/* The homepage's About action supports the primary Browse Products action. */
html body.wolfedu-polished.wolfedu-home .elementor-element-c3f73b0 .elementor-button {
	background: transparent !important;
	color: var(--we-ink) !important;
	border: 1px solid var(--we-button-border) !important;
	box-shadow: none !important;
}

html body.wolfedu-polished.wolfedu-home .elementor-element-c3f73b0 .elementor-button:hover {
	background: var(--we-surface) !important;
	border-color: var(--we-ink) !important;
}

body.wolfedu-polished :is(.elementor-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wolfedu-support-action--primary, .wolf-freebies-button.primary) {
	background: var(--we-button-bg);
	color: var(--we-button-text);
	font-family: var(--we-heading-font);
	font-weight: 700;
}

body.wolfedu-polished :is(.wolfedu-product-actions .wolfedu-buy-now, .single_add_to_cart_button, #place_order, .wc-proceed-to-checkout a.checkout-button, .return-to-shop .button, .wolf-freebies-button.primary) {
	background: var(--we-button-bg) !important;
	color: var(--we-button-text) !important;
	border-color: var(--we-button-bg) !important;
	font-weight: 700 !important;
}

body.wolfedu-polished :is(.elementor-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wolfedu-support-action--primary, .wolf-freebies-button.primary):hover,
body.wolfedu-polished :is(.wolfedu-product-actions .wolfedu-buy-now, .single_add_to_cart_button, #place_order, .wc-proceed-to-checkout a.checkout-button, .return-to-shop .button, .wolf-freebies-button.primary):hover {
	background: var(--we-button-hover) !important;
	color: var(--we-button-text) !important;
	border-color: var(--we-button-hover) !important;
}

/* Utility actions stay quieter than buying, including on mobile. */
body.wolfedu-polished :is(.wolfedu-product-actions .wolfedu-add-to-cart, .wolfedu-product-actions .wolfedu-notify-trigger, button[name="apply_coupon"], button[name="update_cart"], .wolf-freebies-button.secondary) {
	background: transparent !important;
	color: var(--we-ink) !important;
	border: 1px solid var(--we-button-border) !important;
	box-shadow: none !important;
	font-weight: 600 !important;
}

body.wolfedu-polished :is(.wolfedu-product-actions .wolfedu-add-to-cart, .wolfedu-product-actions .wolfedu-notify-trigger, button[name="apply_coupon"], button[name="update_cart"], .wolf-freebies-button.secondary):hover {
	background: var(--we-surface) !important;
	color: var(--we-ink) !important;
	border-color: var(--we-ink) !important;
}

body.wolfedu-polished :is(.wolf-cart-link, .wolf-cart-continue-bottom) {
	background: transparent !important;
	color: var(--we-ink) !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
	font-weight: 600;
}

body.wolfedu-polished :is(.wolf-cart-link, .wolf-cart-continue-bottom):hover {
	color: var(--we-orange-text) !important;
}

body.wolfedu-polished .woocommerce :is(.price, .product-price, .product-subtotal, .order-total .amount),
html body.wolfedu-polished :is(.products, .summary, .woocommerce, .wolf-row-products) .price,
html body.wolfedu-polished :is(.products, .summary, .woocommerce, .wolf-row-products) .price :is(ins, .amount, bdi) {
	color: var(--we-green) !important;
	font-weight: 700;
}

html body.wolfedu-polished :is(.products, .summary, .woocommerce, .wolf-row-products) .price :is(del, del .amount, del bdi, .wolf-price-starts) {
	color: var(--we-muted) !important;
}

/* Header search controls and count badges use the same orange/ink pairing. */
html body.wolfedu-polished #wolfedu-header :is(.aws-search-btn_icon, .aws-search-btn svg, .aws-search-btn_icon svg, .wolfedu-search-btn, .wolfedu-search-btn svg),
html body.wolfedu-polished #wolfedu-header .wolfedu-search-wrap :is(.aws-search-btn, .aws-form-btn) :is(svg, svg path),
html body.wolfedu-polished :is(.wolfedu-cart-count, .wolfedu-admin-badge) {
	color: var(--we-ink) !important;
	fill: var(--we-ink) !important;
}

html body.wolfedu-polished .wolfedu-action-cart:hover .wolfedu-cart-count {
	color: var(--we-paper) !important;
}

html body.wolfedu-polished .woocommerce :is(.woocommerce-info, .woocommerce-error) a {
	color: var(--we-orange-text);
}

body.wolfedu-polished .wolfedu-categories-wrap:hover .wolfedu-categories-btn {
	color: var(--we-ink) !important;
}

body.wolfedu-polished :is(.woocommerce-message, .wolf-cart-perks span, .wolf-cart-summary-note, .wolfedu-badge--featured) {
	background-color: var(--we-mint);
	color: var(--we-green);
	border-color: var(--we-mint-line);
}

body.wolfedu-polished :is(button, .button, .elementor-button, .wolf-freebies-button):disabled,
body.wolfedu-polished .woocommerce :is(.button.disabled, .button:disabled[disabled]) {
	background: var(--we-surface) !important;
	color: var(--we-muted) !important;
	border-color: var(--we-mid) !important;
	box-shadow: none !important;
	transform: none !important;
	cursor: not-allowed;
}

/* Use a solid, readable focus ring rather than a faint orange glow. */
body.wolfedu-polished :focus-visible {
	outline: 2px solid var(--we-green);
	outline-offset: 3px;
}

body.wolfedu-polished :is(.wolfedu-footer-main, .wolfedu-topbar, .wolf-freebies-preview, .wolf-freebies-final) :focus-visible {
	outline-color: var(--we-mint);
}

body.wolfedu-polished :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus-visible {
	border-color: var(--we-green);
}

@media (prefers-reduced-motion: reduce) {
	body.wolfedu-polished :is(.button, .elementor-button, .wolf-freebies-button) {
		transition: none;
		transform: none !important;
	}
}
