/**
 * Salient / WooCommerce contrast fixes (loads after theme styles).
 *
 * Accent-filled buttons need dark text; minimal archive cards keep underline-only hovers.
 */

/* Single product add to cart (accent background). */
body.woocommerce.single-product .product form.cart button.single_add_to_cart_button.button,
body.woocommerce.single-product .product form.cart button.single_add_to_cart_button.button.alt,
body.woocommerce-page.single-product button.single_add_to_cart_button.button,
body.woocommerce-page.single-product button.single_add_to_cart_button.button.alt {
	color: #111111 !important;
}

body.woocommerce.single-product .product form.cart button.single_add_to_cart_button.button:hover,
body.woocommerce.single-product .product form.cart button.single_add_to_cart_button.button:focus,
body.woocommerce.single-product .product form.cart button.single_add_to_cart_button.button.alt:hover,
body.woocommerce.single-product .product form.cart button.single_add_to_cart_button.button.alt:focus,
body.woocommerce-page.single-product button.single_add_to_cart_button.button:hover,
body.woocommerce-page.single-product button.single_add_to_cart_button.button.alt:focus {
	border-color: #111111 !important;
	background-color: #111111 !important;
	color: #ffffff !important;
}

/* Nectar slide-in mini cart (style_slide_in_click). */
body .nectar-slide-in-cart.style_slide_in_click .woocommerce-mini-cart__buttons a.button,
body .nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart a.button,
body .nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart a.button.wc-forward,
body .nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart a.button.checkout,
body .nectar-slide-in-cart .woocommerce-mini-cart__buttons a.button,
body .nectar-slide-in-cart .widget_shopping_cart a.button {
	color: #111111 !important;
}

body .nectar-slide-in-cart.style_slide_in_click .woocommerce-mini-cart__buttons a.button:hover,
body .nectar-slide-in-cart.style_slide_in_click .woocommerce-mini-cart__buttons a.button:focus,
body .nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart a.button:hover,
body .nectar-slide-in-cart.style_slide_in_click .widget_shopping_cart a.button:focus,
body .nectar-slide-in-cart .woocommerce-mini-cart__buttons a.button:hover,
body .nectar-slide-in-cart .woocommerce-mini-cart__buttons a.button:focus,
body .nectar-slide-in-cart .widget_shopping_cart a.button:hover,
body .nectar-slide-in-cart .widget_shopping_cart a.button:focus {
	border-color: #111111 !important;
	background-color: #111111 !important;
	color: #ffffff !important;
}

/* Minimal product archive: underline links only (no white hover text). */
body.woocommerce ul.products li.product.minimal .product-add-to-cart a,
body.woocommerce ul.products li.product.minimal .product-add-to-cart a span,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .added_to_cart,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .nectar_quick_view,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .nectar_quick_view span,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart a,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart a span,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .added_to_cart,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .nectar_quick_view,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .nectar_quick_view span {
	color: #111111 !important;
}

body.woocommerce ul.products li.product.minimal .product-add-to-cart a:hover,
body.woocommerce ul.products li.product.minimal .product-add-to-cart a:focus,
body.woocommerce ul.products li.product.minimal .product-add-to-cart a:hover span,
body.woocommerce ul.products li.product.minimal .product-add-to-cart a:focus span,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .added_to_cart:hover,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:hover,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:focus,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:hover span,
body.woocommerce ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:focus span,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart a:hover,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart a:focus,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart a:hover span,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart a:focus span,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .added_to_cart:hover,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:hover,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:focus,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:hover span,
body.woocommerce-page ul.products li.product.minimal .product-add-to-cart .nectar_quick_view:focus span {
	color: #111111 !important;
	background-color: transparent !important;
}

/* In stock availability badge (inline accent pill; child theme may extend). */
body.woocommerce div.product p.stock.in-stock,
body.woocommerce div.product .stock.in-stock,
body.single-product .entry-summary p.stock.in-stock,
body.single-product .woocommerce-variation-availability p.stock.in-stock,
body .nectar-quick-view-box p.stock.in-stock,
body .nectar-quick-view-box .stock.in-stock,
body .woocommerce p.stock.in-stock.nectar-color-accent-color,
body .woocommerce .stock.in-stock.nectar-color-accent-color {
	display: inline-block !important;
	width: auto !important;
	padding: 6px 14px !important;
	border: 0 !important;
	border-radius: 200px !important;
	background: linear-gradient(135deg, rgba(162, 250, 219, 0.6) 0%, rgba(181, 254, 252, 0.6) 100%) !important;
	color: #000000 !important;
}

/* Cart and checkout: mint accent is unreadable on light backgrounds. */
body.woocommerce-cart a:not(.button):not(.remove):not(.wppm-btn),
body.woocommerce-checkout a:not(.button):not(.remove):not(.wppm-btn),
body.woocommerce-cart .product-name a,
body.woocommerce-checkout .product-name a {
	color: #111111 !important;
}

/*
 * WooCommerce notices: Salient paints the box and links white
 * (.woocommerce-info { color: #fff }, links #fff !important).
 * Notice copy is black; links inside the notice only are dark grey.
 */
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-error,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-error {
	color: #111111 !important;
}

body.woocommerce .woocommerce-info a:not(.button),
body.woocommerce .woocommerce-message a:not(.button),
body.woocommerce .woocommerce-error a:not(.button),
body.woocommerce-page .woocommerce-info a:not(.button),
body.woocommerce-page .woocommerce-message a:not(.button),
body.woocommerce-page .woocommerce-error a:not(.button),
body.woocommerce-cart .woocommerce-info a:not(.button),
body.woocommerce-checkout .woocommerce-info a:not(.button),
body.woocommerce-cart .woocommerce-message a:not(.button),
body.woocommerce-checkout .woocommerce-message a:not(.button),
body.woocommerce-cart .woocommerce-error a:not(.button),
body.woocommerce-checkout .woocommerce-error a:not(.button) {
	color: #4b5563 !important;
}

body.woocommerce-cart .button:not(.plus):not(.minus),
body.woocommerce-cart button.button:not(.plus):not(.minus),
body.woocommerce-cart a.button,
body.woocommerce-cart input.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout .button:not(.plus):not(.minus),
body.woocommerce-checkout button.button:not(.plus):not(.minus),
body.woocommerce-checkout a.button,
body.woocommerce-checkout input.button,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order {
	background-color: #111111 !important;
	background-image: none !important;
	border-color: #111111 !important;
	color: #ffffff !important;
	min-height: 48px !important;
	height: auto !important;
	padding: 12px 22px !important;
}

body.woocommerce-cart .button:hover,
body.woocommerce-cart .button:focus,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart button.button:focus,
body.woocommerce-cart a.button:hover,
body.woocommerce-cart a.button:focus,
body.woocommerce-cart input.button:hover,
body.woocommerce-cart input.button:focus,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout .button:focus,
body.woocommerce-checkout button.button:hover,
body.woocommerce-checkout button.button:focus,
body.woocommerce-checkout a.button:hover,
body.woocommerce-checkout a.button:focus,
body.woocommerce-checkout input.button:hover,
body.woocommerce-checkout input.button:focus,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout button#place_order:hover,
body.woocommerce-checkout button#place_order:focus {
	background-color: #000000 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
}

body.woocommerce-cart .wppm-btn--primary,
body.woocommerce-checkout .wppm-btn--primary {
	background: #111111 !important;
	background-image: none !important;
	border-color: #111111 !important;
	color: #ffffff !important;
}

body.woocommerce-cart .wppm-btn--primary:hover,
body.woocommerce-cart .wppm-btn--primary:focus,
body.woocommerce-checkout .wppm-btn--primary:hover,
body.woocommerce-checkout .wppm-btn--primary:focus {
	background: #000000 !important;
	border-color: #000000 !important;
	color: #ffffff !important;
}

body.woocommerce-cart .wppm-btn--secondary,
body.woocommerce-checkout .wppm-btn--secondary {
	background: #ffffff !important;
	border-color: #111111 !important;
	color: #111111 !important;
}

body.woocommerce-cart .wppm-btn--secondary:hover,
body.woocommerce-cart .wppm-btn--secondary:focus,
body.woocommerce-checkout .wppm-btn--secondary:hover,
body.woocommerce-checkout .wppm-btn--secondary:focus {
	background: #111111 !important;
	border-color: #111111 !important;
	color: #ffffff !important;
}

/* Beat Salient zebra stripes and cell borders on the restyled cart. */
body.woocommerce-cart .wppm-classic-cart table.shop_table.cart tbody tr.cart_item td,
body.woocommerce-cart .wppm-classic-cart table.shop_table.cart tbody tr.cart_item td:not(.actions),
body.woocommerce-cart table tbody tr:nth-child(1n) td:not(.actions),
body.woocommerce-cart table tbody tr:nth-child(2n) td:not(.actions) {
	background-color: transparent !important;
}

body.woocommerce-cart .wppm-classic-cart table.shop_table.cart tbody tr.cart_item td {
	border: 0 !important;
	padding: 0 !important;
}

body.woocommerce-cart .wppm-classic-cart td.product-remove {
	border: 0 !important;
	position: static !important;
}

body.woocommerce-cart .wppm-classic-cart td.product-subtotal {
	display: block !important;
}

body.woocommerce-cart .wppm-classic-cart td.product-remove a.remove {
	position: static !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	color: #111111 !important;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
}

body.woocommerce-cart .wppm-classic-cart td.product-remove a.remove:hover,
body.woocommerce-cart .wppm-classic-cart td.product-remove a.remove:focus {
	background: #111111 !important;
	border-color: #111111 !important;
	color: #ffffff !important;
}

body.woocommerce-cart .wppm-use-prescription,
body.woocommerce-cart .wppm-use-prescription span,
body.woocommerce-cart .wppm-use-prescription label,
body.woocommerce.single-product .wppm-use-prescription,
body.woocommerce.single-product .wppm-use-prescription span,
body.woocommerce.single-product .wppm-use-prescription label {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
}

/* Prescriber dashboard: Salient keeps the My Account column layout. */
body.wppm-standalone-prescriber-dashboard .woocommerce-MyAccount-navigation,
body.woocommerce-account.wppm-standalone-prescriber-dashboard .woocommerce-MyAccount-navigation,
.woocommerce:has(.wppm-prescriber-dashboard) .woocommerce-MyAccount-navigation {
	display: none !important;
	width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.wppm-standalone-prescriber-dashboard .woocommerce-MyAccount-content,
body.woocommerce-account.wppm-standalone-prescriber-dashboard .woocommerce-MyAccount-content,
.woocommerce:has(.wppm-prescriber-dashboard) .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	padding-left: 0 !important;
}

body.woocommerce-account .wppm-order-received__heading,
body.woocommerce-checkout .wppm-order-received__heading,
body.woocommerce-order-received .wppm-order-received__heading,
body.woocommerce-account .wppm-order-summary__heading,
body.woocommerce-checkout .wppm-order-summary__heading,
body.woocommerce-order-received .wppm-order-summary__heading,
body.woocommerce-account .wppm-order-summary__title,
body.woocommerce-order-received .wppm-order-summary__title {
	color: #111111 !important;
	font-weight: 700 !important;
	text-transform: none !important;
}

body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout #ship-to-different-address,
body.woocommerce-checkout .shipping_address {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
}

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .woocommerce-thankyou-order-details,
body.woocommerce-view-order .woocommerce-order-details,
body.woocommerce-view-order .woocommerce-customer-details,
body.woocommerce-account.woocommerce-view-order .woocommerce-order-details,
body.woocommerce-account.woocommerce-view-order .woocommerce-customer-details,
body.woocommerce-view-order .woocommerce-MyAccount-content > p:has(.order-number) {
	display: none !important;
}

body.woocommerce-account .wppm-order-summary__table,
body.woocommerce-checkout .wppm-order-summary__table,
body.woocommerce-order-received .wppm-order-summary__table {
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

body.woocommerce-account .wppm-order-summary__table th,
body.woocommerce-account .wppm-order-summary__table td,
body.woocommerce-checkout .wppm-order-summary__table th,
body.woocommerce-checkout .wppm-order-summary__table td,
body.woocommerce-order-received .wppm-order-summary__table th,
body.woocommerce-order-received .wppm-order-summary__table td {
	color: #111111 !important;
	background: transparent !important;
	border-color: #e5e7eb !important;
	font-size: 1rem !important;
	text-transform: none !important;
}
