/* Pinks — VAT Toggle */

/* While an ex VAT shopper's page loads, hide prices for a moment so they don't flash inc VAT.
   The script removes this straight away; a timer in the page head removes it after 2.5s regardless. */
html.pvt-pending .woocommerce-Price-amount:not(.pvt-done) { visibility: hidden; }

/* The site adds " Inc-VAT" after every price; swap it for " Ex-VAT" on converted prices. */
html.pvt-ex body span.woocommerce-Price-amount.amount.pvt-ex-amount::after { content: " Ex-VAT"; }

/* The switch */
html body .pvt-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	vertical-align: middle;
}
html body .pvt-toggle .pvt-label { color: #555; font-weight: 500; }
html body .pvt-toggle .pvt-seg {
	display: inline-flex;
	border: 1px solid #ef2d9f;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
html body .pvt-toggle button.pvt-btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
	color: #ef2d9f !important;
	padding: 7px 14px !important;
	min-height: 0 !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
html body .pvt-toggle button.pvt-btn[aria-pressed="true"] {
	background: #ef2d9f !important;
	color: #fff !important;
}
html body .pvt-toggle button.pvt-btn:hover:not([aria-pressed="true"]) { background: #fdeaf5 !important; }
html body .pvt-toggle button.pvt-btn:focus-visible { outline: 2px solid #111 !important; outline-offset: -3px; }

/* Placements */
html body .pvt-bar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
html body .pvt-toggle.pvt-under-price { display: flex; margin: 8px 0 12px; }
html body .pvt-toggle.pvt-in-header { margin: 0 10px 0 0; }
html body .pvt-toggle.pvt-in-header .pvt-label { display: none; }
html body .pvt-toggle.pvt-floating {
	position: fixed;
	right: 16px;
	bottom: 90px;
	z-index: 9998;
	margin: 0;
	padding: 6px 8px 6px 12px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

/* Basket / checkout: ex VAT line under the total */
.pvt-total-ex { display: block; margin-top: 2px; font-size: .85em; font-weight: 400; opacity: .8; }

@media (max-width: 480px) {
	html body .pvt-toggle .pvt-label { display: none; }
	html body .pvt-bar { justify-content: flex-start; }
}

@media print {
	.pvt-toggle, .pvt-bar { display: none !important; }
}
