/* ─────────────────────────────────────────────────────────────────────────
   ETA Innovations — Global Button System
   Wersja 3.2.0 — wzorzec: WooCommerce My Account nav (account-my.css)
   Cień: rozmyty drop pod spodem (bez ring). Alpha ~50% poprzedniej wartości.
   ───────────────────────────────────────────────────────────────────────── */

:root {
	--eta-radius-btn: 6px;
	--eta-btn-font-family: inherit;
	--eta-btn-font-size: 14px;
	--eta-btn-font-weight: 600;
	--eta-btn-line-height: 1.3;
	--eta-btn-letter-spacing: 0;
	--eta-btn-text-transform: none;
	--eta-btn-border-width: 1px;
	--eta-btn-min-height: 44px;
	--eta-btn-padding-x: 20px;
	--eta-btn-padding-y: 10px;
	--eta-btn-transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease,
		transform 120ms ease;

	/* Primary — aktywny „Adresy” / CTA granatowe */
	--eta-btn-primary-bg: #001f3f;
	--eta-btn-primary-hover: #0b2c52;
	--eta-btn-primary-text: #ffffff;
	--eta-btn-shadow-rgb: 24, 78, 140;
	--eta-btn-shadow-alpha: 0.18;
	--eta-btn-shadow-alpha-hover: 0.22;
	--eta-btn-primary-shadow: 0 8px 24px -6px rgba(var(--eta-btn-shadow-rgb), var(--eta-btn-shadow-alpha));
	--eta-btn-primary-shadow-hover: 0 14px 36px -2px rgba(var(--eta-btn-shadow-rgb), var(--eta-btn-shadow-alpha-hover));

	/* Ghost — nieaktywny link „Pobrania” */
	--eta-btn-ghost-bg: #ffffff;
	--eta-btn-ghost-hover-bg: #f2f8fb;
	--eta-btn-ghost-border: rgba(0, 31, 63, 0.08);
	--eta-btn-ghost-text: #001f3f;
	--eta-btn-ghost-hover-text: #1f5fbf;
	--eta-btn-ghost-hover-border: rgba(47, 128, 237, 0.35);

	/* Outline — „Pokaż wszystko” */
	--eta-btn-outline-bg: transparent;
	--eta-btn-outline-text: #001f3f;
	--eta-btn-outline-border: #001f3f;
	--eta-btn-outline-hover-bg: #001f3f;
	--eta-btn-outline-hover-text: #ffffff;
	--eta-btn-outline-hover-border: #001f3f;

	/* Danger — „Wyloguj się” */
	--eta-btn-danger-bg: #ffffff;
	--eta-btn-danger-hover-bg: #fff5f5;
	--eta-btn-danger-border: rgba(229, 62, 62, 0.25);
	--eta-btn-danger-hover-border: rgba(229, 62, 62, 0.45);
	--eta-btn-danger-text: #c53030;
	--eta-btn-danger-hover-text: #9b2c2c;
}

/* Ciemne tło (hero) — odwrócone kolory */
.eta-surface-dark,
.elementor .eta-elementor-home-hero {
	--eta-btn-primary-bg: #ffffff;
	--eta-btn-primary-hover: #f2f4f7;
	--eta-btn-primary-text: #001f3f;
	--eta-btn-shadow-rgb: 0, 0, 0;
	--eta-btn-shadow-alpha: 0.14;
	--eta-btn-shadow-alpha-hover: 0.18;
	--eta-btn-primary-shadow: 0 8px 24px -6px rgba(var(--eta-btn-shadow-rgb), var(--eta-btn-shadow-alpha));
	--eta-btn-primary-shadow-hover: 0 14px 36px -2px rgba(var(--eta-btn-shadow-rgb), var(--eta-btn-shadow-alpha-hover));

	--eta-btn-ghost-bg: rgba(255, 255, 255, 0.12);
	--eta-btn-ghost-hover-bg: #ffffff;
	--eta-btn-ghost-border: rgba(255, 255, 255, 0.42);
	--eta-btn-ghost-text: #ffffff;
	--eta-btn-ghost-hover-text: #001f3f;
	--eta-btn-ghost-hover-border: rgba(255, 255, 255, 0.55);

	--eta-btn-outline-bg: transparent;
	--eta-btn-outline-text: #ffffff;
	--eta-btn-outline-border: #ffffff;
	--eta-btn-outline-hover-bg: #ffffff;
	--eta-btn-outline-hover-text: #001f3f;
	--eta-btn-outline-hover-border: #ffffff;
}

/* ── Anatomia (wyrównanie kontekstowe — bez zmiany globalnego justify) ─── */
.eta-btn,
.elementor-button,
.elementor-button-wrapper .elementor-button,
a.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.woocommerce-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce .actions > button,
.woocommerce-form button[type="submit"],
.woocommerce .checkout-button,
.woocommerce #payment #place_order,
.woocommerce .single_add_to_cart_button,
.woocommerce .product_type_simple,
.woocommerce-MyAccount-content .button,
.woocommerce-orders-table .woocommerce-button,
.woocommerce-table--order-downloads .woocommerce-button,
.wp-block-button__link,
.wc-block-cart__submit-button,
.wc-block-checkout__submit-button,
.wc-block-components-button,
.ct-button,
a.ct-button,
.wp-block-button a,
input[type="submit"],
button[type="submit"],
.eta-withdrawal-btn,
.eta-withdrawal-submit,
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.eta-account-btn,
.eta-order-actions .woocommerce-button,
.eta-header-contact-btn,
#header-contact-btn,
.eta-archive-quick-filters__btn,
.eta-contact-native-form__submit,
.eta-shop-search__submit,
.eta-address-book__add,
.eta-address-book__btn--save,
.sidebar .widget_price_filter .price_slider_amount .button,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link a,
body.eta-blog-skin .sidebar .eta-blog-sidebar-search .search_submit,
body.blog .sidebar .eta-blog-sidebar-search .search_submit,
body.eta-blog-skin .sidebar .search_form .search_submit,
body.blog .sidebar .search_form .search_submit,
body.single-post .comment-form .submit,
body.single-post .comment-form #send_comment,
body.eta-blog-skin .nav-links .current,
body.blog .nav-links .current,
body.eta-blog-skin .post_item .eta-post-readmore,
body.blog .post_item .eta-post-readmore,
body.eta-blog-skin .post_item .more-link,
body.blog .post_item .more-link,
body.single-post a.eta-post-nav__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--eta-btn-min-height);
	padding: var(--eta-btn-padding-y) var(--eta-btn-padding-x);
	border-style: solid;
	border-width: var(--eta-btn-border-width);
	border-radius: var(--eta-radius-btn) !important;
	font-family: var(--eta-btn-font-family) !important;
	font-size: var(--eta-btn-font-size) !important;
	font-weight: var(--eta-btn-font-weight) !important;
	line-height: var(--eta-btn-line-height) !important;
	letter-spacing: var(--eta-btn-letter-spacing) !important;
	text-transform: var(--eta-btn-text-transform) !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: var(--eta-btn-transition);
}

.elementor-button .elementor-button-text,
.elementor-button:hover .elementor-button-text,
.elementor-button:focus-visible .elementor-button-text {
	color: inherit !important;
	-webkit-text-fill-color: currentColor !important;
}

/* ── PRIMARY ─────────────────────────────────────────────────────────── */
.eta-btn--primary,
.eta-header-contact-btn,
#header-contact-btn,
.eta-contact-native-form__submit,
.eta-shop-search__submit,
.eta-address-book__add,
.eta-address-book__btn--save,
.sidebar .widget_price_filter .price_slider_amount .button,
.eta-archive-quick-filters__btn--promocja,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a,
body.woocommerce.eta-shop-skin .woocommerce ul.products li.product .button,
body.woocommerce.eta-shop-skin .woocommerce ul.products li.product .add_to_cart_button,
body.woocommerce.eta-shop-skin .woocommerce ul.products li.product a.product_type_simple,
body.eta-shop-skin .woocommerce ul.products li.product .button,
body.eta-shop-skin .woocommerce ul.products li.product .add_to_cart_button,
body.eta-shop-skin .single_add_to_cart_button,
body.eta-shop-skin .woocommerce .checkout-button,
body.eta-shop-skin #payment #place_order,
body.eta-shop-skin .wc-block-components-button,
body.eta-shop-skin .wc-block-cart__submit-button,
body.eta-shop-skin .wc-block-components-checkout-place-order-button,
body.eta-shop-skin .wp-block-woocommerce-proceed-to-checkout-block a,
body.eta-shop-skin .wc-block-grid__product .wp-block-button__link,
.elementor .eta-elementor-home-hero .elementor-element-etaher13 .elementor-button,
.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:first-child .elementor-button,
body .eta-home-reviews .elementor-widget-button .elementor-button,
body.eta-blog-skin .sidebar .eta-blog-sidebar-search .search_submit,
body.blog .sidebar .eta-blog-sidebar-search .search_submit,
body.eta-blog-skin .sidebar .search_form .search_submit,
body.blog .sidebar .search_form .search_submit,
body.single-post .comment-form .submit,
body.single-post .comment-form #send_comment,
body.eta-blog-skin .nav-links .current,
body.blog .nav-links .current,
.elementor-widget-button .elementor-button:not(.eta-btn--ghost):not(.eta-btn--outline):not(.elementor-button-outline),
.eta-account-btn--primary,
body.eta-shop-skin.woocommerce-account .woocommerce-form-login__submit,
body.eta-shop-skin.woocommerce-account .woocommerce-form-register__submit,
body.eta-shop-skin.woocommerce-account button[type="submit"].button {
	background: var(--eta-btn-primary-bg) !important;
	background-color: var(--eta-btn-primary-bg) !important;
	border-color: var(--eta-btn-primary-bg) !important;
	color: var(--eta-btn-primary-text) !important;
	-webkit-text-fill-color: var(--eta-btn-primary-text) !important;
	box-shadow: var(--eta-btn-primary-shadow);
}

.eta-btn--primary:hover,
.eta-btn--primary:focus-visible,
.eta-header-contact-btn:hover,
.eta-header-contact-btn:focus-visible,
#header-contact-btn:hover,
#header-contact-btn:focus-visible,
.eta-contact-native-form__submit:hover:not(:disabled),
.eta-contact-native-form__submit:focus-visible:not(:disabled),
.eta-shop-search__submit:hover,
.eta-shop-search__submit:focus-visible,
.eta-address-book__add:hover,
.eta-address-book__add:focus-visible,
.eta-address-book__btn--save:hover,
.eta-address-book__btn--save:focus-visible,
body.eta-shop-skin.woocommerce-account .woocommerce-form-login__submit:hover,
body.eta-shop-skin.woocommerce-account .woocommerce-form-login__submit:focus-visible,
body.eta-shop-skin.woocommerce-account .woocommerce-form-register__submit:hover,
body.eta-shop-skin.woocommerce-account .woocommerce-form-register__submit:focus-visible,
body.eta-shop-skin.woocommerce-account button[type="submit"].button:hover,
body.eta-shop-skin.woocommerce-account button[type="submit"].button:focus-visible,
.sidebar .widget_price_filter .price_slider_amount .button:hover,
.sidebar .widget_price_filter .price_slider_amount .button:focus-visible,
.eta-archive-quick-filters__btn--promocja:hover,
.eta-archive-quick-filters__btn--promocja:focus-visible,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a:hover,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a:focus-visible,
body.woocommerce.eta-shop-skin .woocommerce ul.products li.product .button:hover,
body.woocommerce.eta-shop-skin .woocommerce ul.products li.product .add_to_cart_button:hover,
body.eta-shop-skin .woocommerce ul.products li.product .button:hover,
body.eta-shop-skin .woocommerce ul.products li.product .add_to_cart_button:hover,
body.eta-shop-skin .single_add_to_cart_button:hover,
body.eta-shop-skin .single_add_to_cart_button:focus-visible,
body.eta-shop-skin .woocommerce .checkout-button:hover,
body.eta-shop-skin #payment #place_order:hover,
.elementor .eta-elementor-home-hero .elementor-element-etaher13 .elementor-button:hover,
.elementor .eta-elementor-home-hero .elementor-element-etaher13 .elementor-button:focus-visible,
.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:first-child .elementor-button:hover,
.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:first-child .elementor-button:focus-visible,
body .eta-home-reviews .elementor-widget-button .elementor-button:hover,
body .eta-home-reviews .elementor-widget-button .elementor-button:focus-visible,
body.eta-blog-skin .sidebar .eta-blog-sidebar-search .search_submit:hover,
body.eta-blog-skin .sidebar .eta-blog-sidebar-search .search_submit:focus-visible,
body.blog .sidebar .eta-blog-sidebar-search .search_submit:hover,
body.blog .sidebar .eta-blog-sidebar-search .search_submit:focus-visible,
body.eta-blog-skin .sidebar .search_form .search_submit:hover,
body.eta-blog-skin .sidebar .search_form .search_submit:focus-visible,
body.blog .sidebar .search_form .search_submit:hover,
body.blog .sidebar .search_form .search_submit:focus-visible,
body.single-post .comment-form .submit:hover,
body.single-post .comment-form .submit:focus-visible,
body.single-post .comment-form #send_comment:hover,
body.single-post .comment-form #send_comment:focus-visible,
body.single-post a.eta-post-nav__btn:hover,
body.single-post a.eta-post-nav__btn:focus-visible,
.elementor-widget-button .elementor-button:not(.eta-btn--ghost):not(.eta-btn--outline):not(.elementor-button-outline):hover,
.elementor-widget-button .elementor-button:not(.eta-btn--ghost):not(.eta-btn--outline):not(.elementor-button-outline):focus-visible {
	background: var(--eta-btn-primary-hover) !important;
	background-color: var(--eta-btn-primary-hover) !important;
	border-color: var(--eta-btn-primary-hover) !important;
	color: var(--eta-btn-primary-text) !important;
	-webkit-text-fill-color: var(--eta-btn-primary-text) !important;
	box-shadow: var(--eta-btn-primary-shadow-hover);
	transform: translateY(-1px);
}

.eta-btn--primary:active,
.eta-header-contact-btn:active,
#header-contact-btn:active,
body.eta-shop-skin .woocommerce ul.products li.product .button:active,
.elementor-widget-button .elementor-button:active {
	transform: translateY(0);
	box-shadow: var(--eta-btn-primary-shadow);
}

/* Hover primary — tylko cień drop, bez ring / obrysu */
.eta-header-contact-btn:hover,
.eta-header-contact-btn:focus-visible,
#header-contact-btn:hover,
#header-contact-btn:focus-visible,
.eta-btn--primary:hover,
.eta-btn--primary:focus-visible {
	outline: none !important;
}

/* ── GHOST ───────────────────────────────────────────────────────────── */
.eta-btn--ghost,
.eta-archive-quick-filters__btn:not(.eta-archive-quick-filters__btn--promocja),
body.eta-blog-skin .post_item .eta-post-readmore,
body.blog .post_item .eta-post-readmore,
body.eta-blog-skin .post_item .more-link,
body.blog .post_item .more-link,
body.single-post a.eta-post-nav__btn:not(.is-disabled),
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link:not(.is-active):not(.woocommerce-MyAccount-navigation-link--customer-logout) a,
.elementor .eta-elementor-home-hero .elementor-element-etaher14 .elementor-button,
.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:last-child .elementor-button {
	background: var(--eta-btn-ghost-bg) !important;
	border-color: var(--eta-btn-ghost-border) !important;
	color: var(--eta-btn-ghost-text) !important;
	-webkit-text-fill-color: var(--eta-btn-ghost-text) !important;
	box-shadow: none;
}

.eta-btn--ghost:hover,
.eta-btn--ghost:focus-visible,
.eta-archive-quick-filters__btn:not(.eta-archive-quick-filters__btn--promocja):hover,
.eta-archive-quick-filters__btn:not(.eta-archive-quick-filters__btn--promocja):focus-visible,
body.eta-blog-skin .post_item .eta-post-readmore:hover,
body.eta-blog-skin .post_item .eta-post-readmore:focus-visible,
body.blog .post_item .eta-post-readmore:hover,
body.blog .post_item .eta-post-readmore:focus-visible,
body.eta-blog-skin .post_item .more-link:hover,
body.eta-blog-skin .post_item .more-link:focus-visible,
body.blog .post_item .more-link:hover,
body.blog .post_item .more-link:focus-visible,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link:not(.is-active):not(.woocommerce-MyAccount-navigation-link--customer-logout) a:hover,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link:not(.is-active):not(.woocommerce-MyAccount-navigation-link--customer-logout) a:focus-visible,
.elementor .eta-elementor-home-hero .elementor-element-etaher14 .elementor-button:hover,
.elementor .eta-elementor-home-hero .elementor-element-etaher14 .elementor-button:focus-visible,
.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:last-child .elementor-button:hover,
.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:last-child .elementor-button:focus-visible {
	background: var(--eta-btn-ghost-hover-bg) !important;
	border-color: var(--eta-btn-ghost-hover-border) !important;
	color: var(--eta-btn-ghost-hover-text) !important;
	-webkit-text-fill-color: var(--eta-btn-ghost-hover-text) !important;
	box-shadow: none;
	transform: translateY(-1px);
}

.eta-archive-quick-filters__btn.is-active:not(.eta-archive-quick-filters__btn--promocja) {
	background: var(--eta-btn-ghost-hover-bg) !important;
	border-color: var(--eta-btn-primary-bg) !important;
	color: var(--eta-btn-ghost-text) !important;
}

/* Filtry sklepu — lekko szare tło (polecane) */
.eta-archive-quick-filters__btn:not(.eta-archive-quick-filters__btn--promocja) {
	--eta-btn-ghost-bg: #f2f4f7;
	--eta-btn-ghost-hover-bg: #e8ecf1;
}

/* ── OUTLINE ─────────────────────────────────────────────────────────── */
.eta-btn--outline,
.eta-archive-show-all,
.eta-order-actions .eta-btn--outline,
.woocommerce-orders-table .eta-btn--outline,
.elementor-button.elementor-button-outline,
.elementor-button[data-style="outline"],
body .eta-home-blog .elementor-widget-button .elementor-button {
	background: var(--eta-btn-outline-bg) !important;
	color: var(--eta-btn-outline-text) !important;
	border-color: var(--eta-btn-outline-border) !important;
	border-width: var(--eta-btn-border-width) !important;
	box-shadow: none;
}

.eta-btn--outline:hover,
.eta-btn--outline:focus-visible,
.eta-archive-show-all:hover,
.eta-archive-show-all:focus-visible,
.elementor-button.elementor-button-outline:hover,
.elementor-button.elementor-button-outline:focus-visible,
body .eta-home-blog .elementor-widget-button .elementor-button:hover,
body .eta-home-blog .elementor-widget-button .elementor-button:focus-visible {
	background: var(--eta-btn-outline-hover-bg) !important;
	color: var(--eta-btn-outline-hover-text) !important;
	border-color: var(--eta-btn-outline-hover-border) !important;
	-webkit-text-fill-color: var(--eta-btn-outline-hover-text) !important;
	box-shadow: var(--eta-btn-primary-shadow-hover);
	transform: translateY(-1px);
}

/* ── DANGER ──────────────────────────────────────────────────────────── */
.eta-btn--danger,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	background: var(--eta-btn-danger-bg) !important;
	border-color: var(--eta-btn-danger-border) !important;
	color: var(--eta-btn-danger-text) !important;
	-webkit-text-fill-color: var(--eta-btn-danger-text) !important;
	box-shadow: none;
}

.eta-btn--danger:hover,
.eta-btn--danger:focus-visible,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:focus-visible {
	background: var(--eta-btn-danger-hover-bg) !important;
	border-color: var(--eta-btn-danger-hover-border) !important;
	color: var(--eta-btn-danger-hover-text) !important;
	-webkit-text-fill-color: var(--eta-btn-danger-hover-text) !important;
}

/* ── Focus (klawiatura) ────────────────────────────────────────────────── */
.eta-btn:focus-visible,
.woocommerce a.button:focus-visible,
.eta-archive-quick-filters__btn:focus-visible,
.elementor-button:focus-visible,
body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link a:focus-visible {
	outline: 2px solid #2f80ed;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.eta-btn,
	.elementor-button,
	.eta-header-contact-btn,
	.woocommerce a.button,
	body.eta-shop-skin.woocommerce-account .woocommerce-MyAccount-navigation-link a {
		transition: none;
	}

	.eta-btn--primary:hover,
	.eta-header-contact-btn:hover,
	.elementor-button:hover {
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.elementor .eta-elementor-home-hero .elementor-element-etaher14 .elementor-button,
	.elementor .eta-elementor-home-hero .elementor-element-etaher12 .elementor-widget-button:last-child .elementor-button {
		--eta-btn-ghost-bg: rgba(255, 255, 255, 0.92);
		--eta-btn-ghost-text: #001f3f;
	}
}
