/*
 * WooCommerce screens that Elementor templates don't fully own:
 * notices, My Account endpoints, order received, form fields.
 * Uses the --njf-* tokens from base.css.
 */

.woocommerce-notices-wrapper:empty {
	display: none;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border: 1px solid var(--njf-border);
	border-left-width: 4px;
	border-radius: 6px;
	background: var(--njf-surface);
	color: var(--njf-fg);
	padding: 14px 18px;
	margin-block-end: 20px;
	list-style: none;
}

.woocommerce-message {
	border-left-color: var(--njf-success);
}

.woocommerce-info {
	border-left-color: var(--njf-muted);
}

.woocommerce-error {
	border-left-color: var(--njf-accent);
}

/* Sale and stock badges use the brand accent. */
.woocommerce span.onsale {
	background: var(--njf-accent);
	color: #fff;
	border-radius: var(--njf-radius-pill);
	min-height: 0;
	min-width: 0;
	padding: 4px 10px;
	line-height: 1.4;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.woocommerce .price del {
	color: var(--njf-muted);
	opacity: 1;
}

.woocommerce .price ins {
	color: var(--njf-accent-light);
	text-decoration: none;
}

/* My Account navigation. */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--njf-border);
}

.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--njf-border);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 12px 0;
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 13px;
}

.woocommerce-MyAccount-navigation .is-active a {
	color: var(--njf-accent-light);
}

/* Form fields on account, cart and checkout screens. */
.woocommerce form .form-row :is(input.input-text, textarea, select) {
	border: 1px solid var(--njf-border);
	border-radius: 6px;
	padding: 10px 12px;
	background: transparent;
	color: inherit;
}

/* Tables (orders, order details). */
.woocommerce table.shop_table {
	border-color: var(--njf-border);
	border-radius: var(--njf-radius-card);
	border-collapse: separate;
}
