/**
 * Custom Add to Cart Button — "Plugin styles" mode (loaded after base.css).
 *
 * The plugin owns the look of its buttons in this mode: colours, shape and height
 * come from the settings (CSS variables), and decorations a theme adds to buttons
 * (icons in ::before / ::after, offsets for them) are removed. Because themes often
 * style buttons with long selectors, the key properties use !important here.
 * Choose "Theme styles" to style the buttons from your theme instead.
 */

/* ---- Add buttons: list button and WooCommerce's product page button ---------- */

.cacb .cacb__button,
.cacb-scope .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: var(--cacb-height, 44px) !important;
	height: auto !important;
	padding: 0 1.4em !important;
	border: 0 !important;
	border-radius: var(--cacb-radius, 8px) !important;
	background: var(--cacb-button-bg, #253d7b) !important;
	box-shadow: none !important;
	color: var(--cacb-button-color, #fff) !important;
	font-weight: 600;
	line-height: 1.2 !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cacb .cacb__button:hover,
.cacb .cacb__button:focus-visible,
.cacb-scope .single_add_to_cart_button:hover:not(.disabled),
.cacb-scope .single_add_to_cart_button:focus-visible:not(.disabled) {
	background: var(--cacb-button-hover-bg, #1b2f63) !important;
	color: var(--cacb-button-color, #fff) !important;
}

.cacb-scope .single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cacb .cacb__button.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Theme decorations on these buttons (cart icons, "+" glyphs). */
.cacb .cacb__button::before,
.cacb .cacb__button::after,
.cacb-scope .single_add_to_cart_button::before,
.cacb-scope .single_add_to_cart_button::after,
.cacb-stepper .cacb-stepper__button::before,
.cacb-stepper .cacb-stepper__button::after {
	content: none !important;
	display: none !important;
}

.cacb--loop .cacb__button {
	width: 100%;
}

.cacb-full-width .cacb-scope .single_add_to_cart_button {
	width: 100%;
}

/* ---- Stepper: protected from generic theme button/input rules ----------------- */

.cacb-stepper {
	border-color: var(--cacb-stepper-border, #d5d9e6) !important;
	background: var(--cacb-stepper-bg, #fff) !important;
	color: var(--cacb-stepper-color, #253d7b) !important;
}

.cacb-stepper .cacb-stepper__button {
	width: var(--cacb-height, 44px) !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
}

.cacb-stepper .cacb-stepper__button:hover,
.cacb-stepper .cacb-stepper__button:focus-visible {
	background: rgba(0, 0, 0, 0.05) !important;
}

.cacb-stepper .cacb-stepper__quantity {
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
}
