/**
 * AltCtrl — primary action buttons: filled blue by default, visible border, subtle hover darken.
 */

:root {
	--altctrl-btn-blue: #0066cc;
	--altctrl-btn-blue-border: #005bb5;
	--altctrl-btn-blue-hover: #005bb5;
	--altctrl-btn-blue-hover-border: #004fa3;
}

/* Shared primary fill + border (default = former hover look) */
body button.button:not(.cancel):not(.return):not(.exchange):not(.compare),
body input.button,
body input[type="submit"]:not(.altctrl-qty-btn),
body button[type="submit"]:not(.altctrl-qty-btn):not(.menu-toggle):not(.altctrl-mobile-nav-drawer__toggle),
body .add_to_cart_button,
body .altctrl-add-to-cart-btn,
body .single_add_to_cart_button,
body .altctrl-buy-now-btn,
body .altctrl-view-cart-button,
body .altctrl-wishlist-add-btn,
body a.button.checkout-button,
body a.button.altctrl-cart-buy-btn,
body.woocommerce-checkout #payment #place_order,
body.woocommerce-checkout #payment .place-order .button,
body.woocommerce-checkout .woocommerce-form-login .button,
body.woocommerce-checkout .altctrl-checkout-coupon-form .button,
body.woocommerce-checkout #btn-razorpay,
body.woocommerce-checkout #btn-razorpay-cancel,
body.woocommerce-checkout #btn-1cc,
#btn-razorpay,
#btn-razorpay-cancel,
#btn-1cc {
	border: 2px solid var(--altctrl-btn-blue-border) !important;
	background: var(--altctrl-btn-blue) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body button.button:not(.cancel):not(.return):not(.exchange):not(.compare):hover,
body button.button:not(.cancel):not(.return):not(.exchange):not(.compare):focus,
body input.button:hover,
body input.button:focus,
body input[type="submit"]:not(.altctrl-qty-btn):hover,
body input[type="submit"]:not(.altctrl-qty-btn):focus,
body button[type="submit"]:not(.altctrl-qty-btn):not(.menu-toggle):not(.altctrl-mobile-nav-drawer__toggle):hover,
body button[type="submit"]:not(.altctrl-qty-btn):not(.menu-toggle):not(.altctrl-mobile-nav-drawer__toggle):focus,
body .add_to_cart_button:hover,
body .add_to_cart_button:focus,
body .altctrl-add-to-cart-btn:hover,
body .altctrl-add-to-cart-btn:focus,
body .single_add_to_cart_button:hover,
body .single_add_to_cart_button:focus,
body .altctrl-buy-now-btn:hover,
body .altctrl-buy-now-btn:focus,
body .altctrl-view-cart-button:hover,
body .altctrl-view-cart-button:focus,
body .altctrl-wishlist-add-btn:hover,
body .altctrl-wishlist-add-btn:focus,
body a.button.checkout-button:hover,
body a.button.checkout-button:focus,
body a.button.altctrl-cart-buy-btn:hover,
body a.button.altctrl-cart-buy-btn:focus,
body.woocommerce-checkout #payment #place_order:hover,
body.woocommerce-checkout #payment #place_order:focus,
body.woocommerce-checkout #payment .place-order .button:hover,
body.woocommerce-checkout #payment .place-order .button:focus,
body.woocommerce-checkout .woocommerce-form-login .button:hover,
body.woocommerce-checkout .woocommerce-form-login .button:focus,
body.woocommerce-checkout .altctrl-checkout-coupon-form .button:hover,
body.woocommerce-checkout .altctrl-checkout-coupon-form .button:focus,
body.woocommerce-checkout #btn-razorpay:hover,
body.woocommerce-checkout #btn-razorpay:focus,
body.woocommerce-checkout #btn-razorpay-cancel:hover,
body.woocommerce-checkout #btn-razorpay-cancel:focus,
body.woocommerce-checkout #btn-1cc:hover,
body.woocommerce-checkout #btn-1cc:focus,
#btn-razorpay:hover,
#btn-razorpay:focus,
#btn-razorpay-cancel:hover,
#btn-razorpay-cancel:focus,
#btn-1cc:hover,
#btn-1cc:focus {
	background: var(--altctrl-btn-blue-hover) !important;
	border-color: var(--altctrl-btn-blue-hover-border) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* Razorpay pay-for-order layout */
body.woocommerce-checkout #btn-razorpay,
body.woocommerce-checkout #btn-razorpay-cancel,
body.woocommerce-checkout #btn-1cc,
#btn-razorpay,
#btn-razorpay-cancel,
#btn-1cc {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	margin: 0 0.625rem 0.625rem 0;
	padding: 0.875rem 1.5rem;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

/* Outline, secondary, and icon buttons — keep their intended colors */
body .button.cancel,
body .button.return,
body .button.exchange,
body .button.compare,
body a.compare,
body .compare.button,
body .altctrl-order-return-exchange__btn--secondary,
body .altctrl-order-hub__btn--secondary,
body .altctrl-order-hub__btn--cancel,
body .altctrl-order-cancel__btn,
body .altctrl-signin__create,
body .altctrl-write-review__submit,
body .altctrl-wishlist-action .yith-wcwl-add-to-wishlist-button,
body .altctrl-wishlist-action .yith-add-to-wishlist-button-block a,
body .altctrl-deal-card__footer .altctrl-notify-me-btn--outline,
body .altctrl-order-modal__btn-back,
body .altctrl-scroll-top,
body .shop-control-bar .handheld-sidebar-toggle button {
	background: transparent !important;
	border-color: currentColor !important;
	color: inherit;
	-webkit-text-fill-color: currentColor;
}

/* WooCommerce cart success / notice banners — restore original message + View cart button */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
	padding: 1em 1.618em;
	margin-bottom: 1.41575em;
	border-radius: 2px;
	clear: both;
}

body .woocommerce-message {
	background-color: #3d9cd2 !important;
	color: #fff !important;
	border-left: 0.35em solid rgba(0, 0, 0, 0.15) !important;
}

body .woocommerce-info {
	background-color: #3d9cd2 !important;
	color: #fff !important;
	border-left: 0.35em solid rgba(0, 0, 0, 0.15) !important;
}

body .woocommerce-error {
	background-color: #e2401c !important;
	color: #fff !important;
	border-left: 0.35em solid rgba(0, 0, 0, 0.15) !important;
}

body .woocommerce-message a,
body .woocommerce-info a,
body .woocommerce-error a {
	color: #fff;
}

body .woocommerce-message .button,
body .woocommerce-message a.button {
	float: right !important;
	padding: 0 0 0 1em !important;
	margin: 0 0 0 1em !important;
	background: none !important;
	border: 0 !important;
	border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: inherit !important;
	font-weight: 400 !important;
	line-height: 1.618 !important;
	min-height: 0 !important;
	transition: opacity 0.2s ease !important;
}

body .woocommerce-info .button,
body .woocommerce-info a.button,
body .woocommerce-error .button,
body .woocommerce-error a.button {
	float: right !important;
	padding: 0.45em 0.85em !important;
	margin: 0 0 0 1em !important;
	background: #0066cc !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: inherit !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	min-height: 0 !important;
	transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

body .woocommerce-message .button:hover,
body .woocommerce-message .button:focus,
body .woocommerce-message a.button:hover,
body .woocommerce-message a.button:focus {
	background: none !important;
	border: 0 !important;
	border-left: 1px solid rgba(255, 255, 255, 0.25) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	opacity: 0.7 !important;
}

body .woocommerce-info .button:hover,
body .woocommerce-info .button:focus,
body .woocommerce-info a.button:hover,
body .woocommerce-info a.button:focus,
body .woocommerce-error .button:hover,
body .woocommerce-error .button:focus,
body .woocommerce-error a.button:hover,
body .woocommerce-error a.button:focus {
	background: #005bb5 !important;
	border: 0 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	opacity: 1 !important;
}

.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-message,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-info,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-error {
	background: #f9fafb !important;
	border: 1px solid #eaecf0 !important;
	border-left: 1px solid #eaecf0 !important;
	color: #475467 !important;
}

.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-message {
	background: #3d9cd2 !important;
	border-color: transparent !important;
	border-left: 0.35em solid rgba(0, 0, 0, 0.15) !important;
	color: #fff !important;
}

.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-error {
	background: #fef3f2 !important;
	border-color: #fecdca !important;
	color: #b42318 !important;
}

.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-message .button,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-message a.button,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-info .button,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-info a.button,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-error .button,
.altctrl-myaccount .woocommerce-MyAccount-content .woocommerce-error a.button {
	float: none !important;
	margin: 0 !important;
}

body .altctrl-write-review__submit,
body .altctrl-write-review__submit:hover,
body .altctrl-write-review__submit:focus {
	background: #facc15 !important;
	border-color: #eab308 !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
}

body .altctrl-signin__create,
body .altctrl-signin__create:hover,
body .altctrl-signin__create:focus {
	background: transparent !important;
	border-color: var(--ac-signin-blue, #0066cc) !important;
	color: var(--ac-signin-blue, #0066cc) !important;
	-webkit-text-fill-color: var(--ac-signin-blue, #0066cc) !important;
}

body .altctrl-wishlist-action .yith-wcwl-add-to-wishlist-button,
body .altctrl-wishlist-action .yith-add-to-wishlist-button-block a {
	background: transparent !important;
	border-color: #ddd !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
}

body .altctrl-wishlist-action .yith-wcwl-add-to-wishlist-button.exists,
body .altctrl-wishlist-action .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--added {
	color: #e11d48 !important;
	-webkit-text-fill-color: #e11d48 !important;
}

body.altctrl-myaccount-page .woocommerce-orders-table .button.cancel,
body.altctrl-myaccount-page .woocommerce-orders-table .button.return,
body.altctrl-myaccount-page .woocommerce-orders-table .button.exchange,
body .altctrl-order-return-exchange__btn--secondary,
body .altctrl-order-hub__btn--secondary,
body .altctrl-order-hub__btn--cancel,
body .altctrl-order-cancel__btn {
	background: transparent !important;
	color: inherit;
	-webkit-text-fill-color: currentColor;
}

body.altctrl-myaccount-page .woocommerce-orders-table .button.cancel {
	border-color: #b42318 !important;
	color: #b42318 !important;
	-webkit-text-fill-color: #b42318 !important;
}

body.altctrl-myaccount-page .woocommerce-orders-table .button.return,
body.altctrl-myaccount-page .woocommerce-orders-table .button.exchange,
body .altctrl-order-return-exchange__btn--secondary,
body .altctrl-order-hub__btn--secondary {
	border-color: #0066cc !important;
	color: #0066cc !important;
	-webkit-text-fill-color: #0066cc !important;
}

body .altctrl-order-hub__btn--cancel,
body .altctrl-order-cancel__btn {
	border-color: #b42318 !important;
	color: #b42318 !important;
	-webkit-text-fill-color: #b42318 !important;
}

body .altctrl-scroll-top,
body .altctrl-scroll-top:hover,
body .altctrl-scroll-top:focus {
	background: #fff !important;
	border-color: #ddd !important;
	color: #111 !important;
	-webkit-text-fill-color: #111 !important;
}
