/*
 * PMU Buttons 1.1.0 — centred button text, CTA pills, and no arrows on buttons.
 * Render-time only: no page content is changed in the database.
 * Never styles: header, menus, footer, Payflex/PayFast, the checkout payment box,
 * FiboSearch, quantity inputs, swatches, Complianz banner, admin bar.
 * Colours: black #111113, pink #d7b1bf, pink-deep #b77e92, pale #fbf4f7.
 */

/* ------------------------------------------------------------------ */
/* 1. Centre the text inside every button (horizontal, vertical, wrap) */
/*    Only alignment properties: no display/size change on any button. */
/* ------------------------------------------------------------------ */
:is(
	.elementor-button, a.button, button.button, input.button, .wp-element-button, .wp-block-button__link,
	.single_add_to_cart_button, .checkout-button, .woocommerce-button, .woocommerce-Button,
	.pmu-btn, .pmu-view-all, .pmu-trustpilot-link, .pmu-contact-btn, .pmu-shop-button, .pmu-wishlist-btn,
	.pmu-product-button, .pmu-product-view, .pmu-add-cart, .pmu-wishlist-button, .pmu-dark, .pmu-light,
	.pmu-account-extra-card a, .pmu-contact-list a, .ff-btn, input.nf-element[type="submit"],
	.pmu-btn-link, main input[type="submit"], main button[type="submit"]
):not(
	#wpadminbar *, #cmplz-cookiebanner-container *, .cmplz-cookiebanner *, .cmplz-manage-consent,
	#payment *, .woocommerce-checkout-payment *, [class*="payflex"], [class*="payflex"] *, [id*="payflex"] *,
	[class*="payfast"] *, .dgwt-wcas-search-wrapp *, .dgwt-wcas-suggestions-wrapp *, .quantity *, .variations *,
	[class*="swatch-item"], [class*="swatches-item"], .pmu-site-header *, header *, footer *,
	[data-elementor-type="header"] *, [data-elementor-type="footer"] *, nav *, .pmu-app-bar *, .pmu-app-sheet *
) {
	text-align: center !important;
	justify-content: center !important;
	align-items: center !important;
}
.elementor-button .elementor-button-content-wrapper,
.elementor-button .elementor-button-text {
	justify-content: center;
	text-align: center;
}

/* Contact page: email / WhatsApp / orders cards were left-aligned */
.pmu-contact-list a {
	justify-content: center !important;
	text-align: center !important;
}

/* Home page "View all" pills sat at the top of their 48px box on phones */
@media (max-width: 1024px) {
	body.home .pmu-front .pmu-view-all,
	body.home .pmu-front .pmu-trustpilot-link {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		line-height: 1.2 !important;
	}
}

/* ------------------------------------------------------------------ */
/* 2. Stand-alone call-to-action links -> pill buttons (site style)    */
/* ------------------------------------------------------------------ */
html body .pmu-btn-link,
html body .pmu-contact-help-card > a,
html body .woocommerce-form-login .woocommerce-LostPassword a,
html body .woocommerce .woocommerce-form-login-toggle .woocommerce-info a.showlogin:not(.button),
html body .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:not(.button) {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px;
	min-height: 44px;
	padding: 0 20px !important;
	border: 1px solid #111113 !important;
	border-radius: 999px !important;
	background: #111113 !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center !important;
	text-decoration: none !important;
	white-space: normal;
	max-width: 100%;
	box-sizing: border-box;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
html body .pmu-btn-link:hover,
html body .pmu-btn-link:focus-visible,
html body .pmu-contact-help-card > a:hover,
html body .pmu-contact-help-card > a:focus-visible,
html body .woocommerce .woocommerce-form-login-toggle .woocommerce-info a.showlogin:not(.button):hover,
html body .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:not(.button):hover {
	background: #d7b1bf !important;
	border-color: #b77e92 !important;
	color: #111113 !important;
}

/* Outline (pink) variant: secondary links such as "Lost your password?" */
html body .pmu-btn-link.is-outline,
html body .woocommerce-form-login .woocommerce-LostPassword a {
	background: #fff !important;
	color: #111113 !important;
	border-color: #b77e92 !important;
	min-height: 40px;
}
html body .pmu-btn-link.is-outline:hover,
html body .woocommerce-form-login .woocommerce-LostPassword a:hover {
	background: #fbf4f7 !important;
	color: #111113 !important;
}

/* Small pills inside the checkout "Returning customer? / Have a coupon?" bars */
html body .woocommerce .woocommerce-form-login-toggle .woocommerce-info a.showlogin:not(.button),
html body .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:not(.button) {
	min-height: 32px;
	padding: 0 14px !important;
	margin: 4px 0 4px 6px;
	font-size: 10px !important;
	vertical-align: middle;
	letter-spacing: 0.02em;
}

/* Paragraph-ending link turned into a button (optional flag) */
html body .pmu-btn-link.is-para-end {
	margin-top: 10px;
}
html body .pmu-btn-break { display: block; height: 0; }

/* ------------------------------------------------------------------ */
/* 3. Links inside sentences (legal/body text): stay links, but clear  */
/* ------------------------------------------------------------------ */
html body :is(.pmu-legal, .cmplz-document, .pmu-about p, .pmu-about li, .woocommerce-privacy-policy-text, .elementor-widget-text-editor, .entry-content)
 a:not(.button):not(.pmu-btn-link):not([class*="btn"]):not([class*="button"]):not(#payment *):not(.pmu-site-header *):not(:has(img)),
html body a.pmu-inline-link {
	color: #8f4f66 !important;
	font-weight: 700;
	text-decoration: underline !important;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}
html body :is(.pmu-legal, .cmplz-document, .pmu-about p, .pmu-about li, .woocommerce-privacy-policy-text, .elementor-widget-text-editor, .entry-content)
 a:not(.button):not(.pmu-btn-link):not([class*="btn"]):not([class*="button"]):not(#payment *):not(.pmu-site-header *):hover,
html body a.pmu-inline-link:hover {
	color: #111113 !important;
}


/* ------------------------------------------------------------------ */
/* 4. Hide arrows on buttons and pills (text, icons, ::before/::after) */
/*    Text arrows are wrapped in .pmu-btn-arrow at render time.        */
/*    Does not target header menus, carousel/gallery/review controls,  */
/*    pagination, quantity, selects, Payflex/PayFast or back-to-top.   */
/* ------------------------------------------------------------------ */
.pmu-btn-arrow {
	display: none !important;
	speak: never;
}
.pmu-hide-after-arrow::after {
	content: none !important;
	display: none !important;
}
.pmu-hide-before-arrow::before {
	content: none !important;
	display: none !important;
}
/* Icon-font / Elementor arrow icons sitting inside a button */
:is(
	.elementor-button, a.button, button.button, .pmu-btn, .pmu-view-all, .pmu-trustpilot-link,
	.pmu-contact-btn, .pmu-shop-button, .pmu-wishlist-btn, .pmu-product-button, .pmu-product-view,
	.pmu-add-cart, .pmu-dark, .pmu-light, .pmu-btn-link, .pmu-footer-cta-btn, .pmu-footer-trustpilot-link,
	.pmu-contact-help-card > a
) :is(
	.elementor-button-icon, i, svg, em
):is(
	[class*="arrow"], [class*="chevron"], [class*="eicon-right"], [class*="eicon-left"],
	[class*="eicon-chevron"], [class*="angle-right"], [class*="angle-left"],
	[class*="long-arrow"], [class*="dashicons-arrow"]
) {
	display: none !important;
}
