/**
 * Unified button system: primary, secondary, text.
 */

:root {
	--btn-bg-primary: var(--color-black);
	--btn-bg-primary-hover: #333333;
	--btn-color-primary: var(--color-white);
	--btn-bg-secondary: var(--color-white);
	--btn-color-secondary: var(--color-black);
	--btn-border-width: 1px;
	--btn-border-secondary: var(--color-black);
	--btn-height-sm: 44px;
	--btn-height-md: 48px;
	--btn-height-lg: 52px;
	--btn-font-size: 12px;
	--btn-font-size-sm: 11px;
	--btn-letter-spacing: 0.1em;
}

/* Shared base */
.bm-btn,
.bm-btn--primary,
.bm-btn--secondary,
.button.alt,
.button.checkout,
.button-checkout,
#place_order,
.checkout-auth-card__btn,
.checkout-bigfoots__apply,
.checkout-bigfoots__cancel,
.checkout-coupon__button,
.auth-modal__submit,
.auth-form__submit,
.auth-form__secondary,
.auth-page button.button,
.constructor-submit,
.thankyou-page__btn,
.bigmood-tracking__btn,
.account-order-view__btn,
.account-orders-empty__btn,
.account-order__action,
.account-dashboard__logout,
.side-cart-empty__btn,
.side-cart-rec-add,
.side-cart-rec-link,
.pdp-cart .single_add_to_cart_button,
.pdp-cart .button.alt,
.pdp-reviews__submit,
.pdp-reviews__write-btn,
.pdp-reviews__filters,
.pdp-duo__btn,
.pdp-pair-card__btn,
.loyalty-btn,
.search-empty__btn,
.error-404__btn,
.about-hero__cta,
.about-cta__btn,
.cookie-consent__accept,
.byd-pvz-item__btn,
.byd-balloon__btn,
.point-out-select.button,
button.button,
a.button,
.woocommerce-Button.button,
.woocommerce-button.button,
.account-bigfoots__ref-copy {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: var(--btn-font-size);
	font-weight: var(--font-weight-medium);
	letter-spacing: var(--btn-letter-spacing);
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0 !important;
	transition:
		color var(--transition-duration, 300ms) ease,
		background-color var(--transition-duration, 300ms) ease,
		border-color var(--transition-duration, 300ms) ease,
		opacity var(--transition-duration, 300ms) ease;
}

/* --- Primary --- */
.bm-btn--primary,
.button.alt,
.button.checkout,
.button-checkout,
#place_order,
.checkout-auth-card__btn--primary,
.checkout-auth-card__btn--solid,
.checkout-bigfoots__apply,
.checkout-coupon__button,
.auth-modal__submit,
.auth-form__submit,
.auth-page button.button,
.constructor-submit,
.thankyou-page__btn--primary,
.thankyou-page__btn:not(.thankyou-page__btn--secondary):not(.thankyou-page__btn--ghost):not(.thankyou-page__btn--text),
.bigmood-tracking__btn,
.account-order-view__btn--pay,
.account-order-view__btn--primary,
.account-order-view__btn:not(.account-order-view__btn--secondary):not(.account-order-view__btn--ghost):not(.account-order-view__btn--cancel):not(.account-order-view__btn--text),
.account-orders-empty__btn,
.account-order__action--view,
.side-cart-empty__btn,
.side-cart .button-checkout,
.pdp-cart .single_add_to_cart_button,
.pdp-cart .button.alt,
.pdp-reviews__submit,
.loyalty-btn--primary,
.search-empty__btn--primary,
.search-empty__btn--solid,
.error-404__btn--primary,
.error-404__btn--solid,
.about-hero__cta,
.about-cta__btn,
.cookie-consent__accept,
.woocommerce-Button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select),
.woocommerce-button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select),
button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):not(.checkout-auth-card__btn--secondary):not(.checkout-auth-card__btn--ghost):not(.side-cart-qty__btn),
a.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):not(.checkout-auth-card__btn--secondary):not(.checkout-auth-card__btn--ghost):not(.thankyou-page__btn--secondary):not(.thankyou-page__btn--ghost):not(.account-order-view__btn--secondary):not(.account-order-view__btn--ghost):not(.account-order__action):not(.account-dashboard__logout):not(.side-cart-rec-add):not(.side-cart-rec-link) {
	background-color: var(--btn-bg-primary) !important;
	border: var(--btn-border-width) solid var(--btn-bg-primary) !important;
	color: var(--btn-color-primary) !important;
	-webkit-text-fill-color: var(--btn-color-primary) !important;
}

.bm-btn--primary:hover,
.bm-btn--primary:focus,
.button.alt:hover,
.button.alt:focus,
.button.checkout:hover,
.button.checkout:focus,
.button-checkout:hover,
.button-checkout:focus,
#place_order:hover,
#place_order:focus,
.checkout-auth-card__btn--primary:hover,
.checkout-auth-card__btn--primary:focus,
.checkout-auth-card__btn--solid:hover,
.checkout-auth-card__btn--solid:focus,
.checkout-bigfoots__apply:hover,
.checkout-bigfoots__apply:focus,
.checkout-coupon__button:hover,
.checkout-coupon__button:focus,
.auth-modal__submit:hover,
.auth-modal__submit:focus,
.auth-form__submit:hover,
.auth-form__submit:focus,
.auth-page button.button:hover,
.auth-page button.button:focus,
.constructor-submit:hover,
.constructor-submit:focus,
.thankyou-page__btn--primary:hover,
.thankyou-page__btn--primary:focus,
.thankyou-page__btn:not(.thankyou-page__btn--secondary):not(.thankyou-page__btn--ghost):not(.thankyou-page__btn--text):hover,
.thankyou-page__btn:not(.thankyou-page__btn--secondary):not(.thankyou-page__btn--ghost):not(.thankyou-page__btn--text):focus,
.bigmood-tracking__btn:hover,
.bigmood-tracking__btn:focus,
.account-order-view__btn--pay:hover,
.account-order-view__btn--pay:focus,
.account-order-view__btn--primary:hover,
.account-order-view__btn--primary:focus,
.account-order-view__btn:not(.account-order-view__btn--secondary):not(.account-order-view__btn--ghost):not(.account-order-view__btn--cancel):not(.account-order-view__btn--text):hover,
.account-order-view__btn:not(.account-order-view__btn--secondary):not(.account-order-view__btn--ghost):not(.account-order-view__btn--cancel):not(.account-order-view__btn--text):focus,
.account-orders-empty__btn:hover,
.account-orders-empty__btn:focus,
.account-order__action--view:hover,
.account-order__action--view:focus,
.side-cart-empty__btn:hover,
.side-cart-empty__btn:focus,
.side-cart .button-checkout:hover,
.side-cart .button-checkout:focus,
.pdp-cart .single_add_to_cart_button:hover,
.pdp-cart .single_add_to_cart_button:focus,
.pdp-cart .button.alt:hover,
.pdp-cart .button.alt:focus,
.pdp-reviews__submit:hover,
.pdp-reviews__submit:focus,
.loyalty-btn--primary:hover,
.loyalty-btn--primary:focus,
.search-empty__btn--primary:hover,
.search-empty__btn--primary:focus,
.search-empty__btn--solid:hover,
.search-empty__btn--solid:focus,
.error-404__btn--primary:hover,
.error-404__btn--primary:focus,
.error-404__btn--solid:hover,
.error-404__btn--solid:focus,
.about-hero__cta:hover,
.about-hero__cta:focus,
.about-cta__btn:hover,
.about-cta__btn:focus,
.cookie-consent__accept:hover,
.cookie-consent__accept:focus,
.woocommerce-Button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):hover,
.woocommerce-Button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):focus,
.woocommerce-button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):hover,
.woocommerce-button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):focus,
button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):not(.checkout-auth-card__btn--secondary):not(.checkout-auth-card__btn--ghost):not(.side-cart-qty__btn):hover,
button.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):not(.checkout-auth-card__btn--secondary):not(.checkout-auth-card__btn--ghost):not(.side-cart-qty__btn):focus,
a.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):not(.checkout-auth-card__btn--secondary):not(.checkout-auth-card__btn--ghost):not(.thankyou-page__btn--secondary):not(.thankyou-page__btn--ghost):not(.account-order-view__btn--secondary):not(.account-order-view__btn--ghost):not(.account-order__action):not(.account-dashboard__logout):not(.side-cart-rec-add):not(.side-cart-rec-link):hover,
a.button:not(.button-secondary):not(.bm-btn--secondary):not(.bm-btn--text):not(.point-out-select):not(.checkout-auth-card__btn--secondary):not(.checkout-auth-card__btn--ghost):not(.thankyou-page__btn--secondary):not(.thankyou-page__btn--ghost):not(.account-order-view__btn--secondary):not(.account-order-view__btn--ghost):not(.account-order__action):not(.account-dashboard__logout):not(.side-cart-rec-add):not(.side-cart-rec-link):focus {
	background-color: var(--btn-bg-primary-hover) !important;
	border-color: var(--btn-bg-primary-hover) !important;
	color: var(--btn-color-primary) !important;
	-webkit-text-fill-color: var(--btn-color-primary) !important;
	opacity: 1;
}

/* --- Secondary --- */
.bm-btn--secondary,
.checkout-auth-card__btn--secondary,
.checkout-auth-card__btn--ghost,
.auth-form__secondary,
.checkout-bigfoots__cancel,
.thankyou-page__btn--secondary,
.thankyou-page__btn--ghost,
.account-order-view__btn--secondary,
.account-order-view__btn--ghost,
.account-order-view__btn--cancel,
.account-order__action:not(.account-order__action--view),
.account-dashboard__logout,
.side-cart-rec-add,
.side-cart-rec-link,
.pdp-reviews__write-btn,
.pdp-reviews__filters,
.pdp-duo__btn,
.pdp-pair-card__btn,
.loyalty-btn--secondary,
.loyalty-btn--outline,
.search-empty__btn--secondary,
.search-empty__btn--ghost,
.error-404__btn--secondary,
.error-404__btn--ghost,
.byd-pvz-item__btn,
.byd-balloon__btn,
.point-out-select.button,
.point-out-select.button.button-secondary,
button.button-secondary,
body:not(.bigmood-shop) .woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce .button.wc-backward,
.account-bigfoots__ref-copy {
	background-color: var(--btn-bg-secondary) !important;
	border: var(--btn-border-width) solid var(--btn-border-secondary) !important;
	color: var(--btn-color-secondary) !important;
	-webkit-text-fill-color: var(--btn-color-secondary) !important;
}

.bm-btn--secondary:hover,
.bm-btn--secondary:focus,
.checkout-auth-card__btn--secondary:hover,
.checkout-auth-card__btn--secondary:focus,
.checkout-auth-card__btn--ghost:hover,
.checkout-auth-card__btn--ghost:focus,
.auth-form__secondary:hover,
.auth-form__secondary:focus,
.checkout-bigfoots__cancel:hover,
.checkout-bigfoots__cancel:focus,
.thankyou-page__btn--secondary:hover,
.thankyou-page__btn--secondary:focus,
.thankyou-page__btn--ghost:hover,
.thankyou-page__btn--ghost:focus,
.account-order-view__btn--secondary:hover,
.account-order-view__btn--secondary:focus,
.account-order-view__btn--ghost:hover,
.account-order-view__btn--ghost:focus,
.account-order-view__btn--cancel:hover,
.account-order-view__btn--cancel:focus,
.account-order__action:not(.account-order__action--view):hover,
.account-order__action:not(.account-order__action--view):focus,
.account-dashboard__logout:hover,
.account-dashboard__logout:focus,
.side-cart-rec-add:hover,
.side-cart-rec-add:focus,
.side-cart-rec-link:hover,
.side-cart-rec-link:focus,
.pdp-reviews__write-btn:hover,
.pdp-reviews__write-btn:focus,
.pdp-reviews__filters:not(:disabled):hover,
.pdp-reviews__filters:not(:disabled):focus,
.pdp-duo__btn:hover,
.pdp-duo__btn:focus,
.pdp-pair-card__btn:hover,
.pdp-pair-card__btn:focus,
.loyalty-btn--secondary:hover,
.loyalty-btn--secondary:focus,
.loyalty-btn--outline:hover,
.loyalty-btn--outline:focus,
.search-empty__btn--secondary:hover,
.search-empty__btn--secondary:focus,
.search-empty__btn--ghost:hover,
.search-empty__btn--ghost:focus,
.error-404__btn--secondary:hover,
.error-404__btn--secondary:focus,
.error-404__btn--ghost:hover,
.error-404__btn--ghost:focus,
.byd-pvz-item__btn:hover,
.byd-pvz-item__btn:focus,
.byd-balloon__btn:hover,
.byd-balloon__btn:focus,
.point-out-select.button:hover,
.point-out-select.button:focus,
.point-out-select.button.button-secondary:hover,
.point-out-select.button.button-secondary:focus,
button.button-secondary:hover,
button.button-secondary:focus,
body:not(.bigmood-shop) .woocommerce ul.products li.product .button.add_to_cart_button:hover,
body:not(.bigmood-shop) .woocommerce ul.products li.product .button.add_to_cart_button:focus,
.woocommerce .button.wc-backward:hover,
.woocommerce .button.wc-backward:focus,
.account-bigfoots__ref-copy:hover,
.account-bigfoots__ref-copy:focus {
	background-color: var(--btn-bg-primary) !important;
	border-color: var(--btn-bg-primary) !important;
	color: var(--btn-color-primary) !important;
	-webkit-text-fill-color: var(--btn-color-primary) !important;
	opacity: 1;
}

/* --- Text --- */
.bm-btn--text,
.home-section__link,
.search-page__submit,
.checkout-section__link:not(.checkout-section__link--btn),
.checkout-section__link--btn,
.mobile-menu__auth-btn {
	background: none !important;
	border: none !important;
	padding: 0;
	min-height: 0;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: var(--color-black) !important;
	-webkit-text-fill-color: var(--color-black) !important;
	box-shadow: none !important;
}

.bm-btn--text:hover,
.bm-btn--text:focus,
.home-section__link:hover,
.home-section__link:focus,
.search-page__submit:hover,
.search-page__submit:focus,
.checkout-section__link:not(.checkout-section__link--btn):hover,
.checkout-section__link:not(.checkout-section__link--btn):focus,
.checkout-section__link--btn:hover,
.checkout-section__link--btn:focus,
.mobile-menu__auth-btn:hover,
.mobile-menu__auth-btn:focus {
	background: none !important;
	border: none !important;
	color: var(--color-black) !important;
	-webkit-text-fill-color: var(--color-black) !important;
	opacity: 0.65;
}

.home-section__link {
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	letter-spacing: normal;
}

/* Disabled */
.bm-btn--primary:disabled,
.bm-btn--secondary:disabled,
.button.alt:disabled,
.pdp-cart .single_add_to_cart_button:disabled,
.pdp-duo__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Excluded controls — not part of the CTA system */
.side-cart-qty__btn,
.shop-card__quick-add,
.side-cart-rec-arrow,
.pdp-pairs__arrow,
.pdp-gallery__nav,
.byd-pvz__toggle,
.byd-modal__tab,
.ingredients-alphabet__btn,
.menu-toggle,
.header-search-toggle,
.mobile-bottom-nav__item {
	/* Component-specific styles live in their own CSS files */
}
