/* DIM — unified buttons + hide default Woo notices (use glass toasts) */

:root {
	--dim-red: #dd0000;
	--dim-red-hover: #b30000;
	--dim-gray: #3a3a3a;
	--dim-gray-hover: #2a2a2a;
	--dim-radius: 12px;
}

/* Hide inline WooCommerce alerts (replaced by toasts) */
html.ifil-toasts-enabled .woocommerce-notices-wrapper:not(.ifil-notices-passthrough),
html.ifil-toasts-enabled :where(
	.woocommerce-message,
	.woocommerce-error,
	.woocommerce-info,
	ul.woocommerce-message,
	ul.woocommerce-error,
	ul.woocommerce-info
):not(.ifil-notices-passthrough):not(.ifil-notices-passthrough *) {
	display: none !important;
	visibility: hidden !important;
	max-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* Primary CTA */
.button-main,
.button.alt,
.btn-primary,
.btn-next,
.ifil-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button,
.add_to_cart_button,
#place_order,
.ifil-drawer-checkout-btn,
.acc-popover .btn-primary {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.65rem 1.35rem !important;
	font-family: inherit;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: #fff !important;
	background: var(--dim-red) !important;
	border: 1px solid var(--dim-red) !important;
	border-radius: var(--dim-radius) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.button-main:hover,
.button.alt:hover,
.btn-primary:hover,
.btn-next:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover,
#place_order:hover {
	background: var(--dim-red-hover) !important;
	border-color: var(--dim-red-hover) !important;
	color: #fff !important;
}

button.button-add {
	font: inherit;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ifil-footer-newsletter-cta {
	margin: 0;
}

.button-add,
.btn-secondary,
.acc-popover .btn-secondary {
	color: #fff !important;
	background: var(--dim-gray) !important;
	border: 1px solid var(--dim-gray) !important;
	border-radius: var(--dim-radius) !important;
	padding: 0.65rem 1.35rem !important;
	font-weight: 600 !important;
}

.button-add:hover,
.btn-secondary:hover {
	background: var(--dim-gray-hover) !important;
	border-color: var(--dim-gray-hover) !important;
	color: #fff !important;
}

/* Kill default Woo purple / alt styles */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--dim-red) !important;
	border-color: var(--dim-red) !important;
}

.woocommerce .cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	text-align: center;
}
