/* WLL Pricing — toggle, banner, and suffix styles. */

/* GST toggles stay hidden until the JS engine boots AND the visitor is in NZ
   (`wll-gst-on` is only added for NZ timezones) — no-JS and overseas visitors
   see nothing, with unchanged prices. */
body:not(.wll-gst-on) .wll-gst-toggle,
body:not(.wll-gst-on) .wll-gst-toggle-toolbar,
body:not(.wll-gst-on) .wll-gst-toggle-footer,
body:not(.wll-gst-on) .wll-gst-switch {
	display: none;
}

/* --- Inline PDP switch ($190.00 incl. GST ⌄) --- */

.wll-gst-switch {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	vertical-align: middle;
	margin-left: 10px;
	padding: 6px 4px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: normal;
	line-height: 1;
	color: #666;
	transition: color 0.2s;
}

.wll-gst-switch__label {
	border-bottom: 1px dotted #aaa;
	padding-bottom: 1px;
	transition: border-color 0.2s;
}

.wll-gst-switch__chevron {
	flex: none;
	opacity: 0.7;
}

.wll-gst-switch:hover {
	color: #35C4B5;
}

.wll-gst-switch:hover .wll-gst-switch__label {
	border-bottom-color: #35C4B5;
}

.wll-gst-switch:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(53, 196, 181, 0.4);
	border-radius: 4px;
}

@media (max-width: 768px) {
	.wll-gst-switch {
		padding: 12px 8px;
		margin-left: 6px;
	}
}

/* --- Price trailers --- */

.wll-gst-suffix,
.wll-approx {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-left: 0.4em;
	vertical-align: middle;
	font-weight: normal;
	font-size: 0.8em;
	color: #555;
}

/* Faint ⓘ trigger + tooltip explaining the conversion is display-only. */
.wll-approx-info-wrap {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.wll-approx-info {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	margin: 0;
	padding: 2px;
	line-height: 0;
	color: inherit;
	opacity: 0.45;
	cursor: pointer;
	vertical-align: middle;
	transition: opacity 0.2s;
}

.wll-approx-info:hover,
.wll-approx-info:focus-visible {
	opacity: 0.9;
}

.wll-approx-info:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(53, 196, 181, 0.4);
	border-radius: 50%;
}

.wll-approx-info svg {
	display: block;
}

.wll-approx-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
	width: max-content;
	max-width: 220px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #2b2b2b;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s;
	pointer-events: none;
}

.wll-approx-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #2b2b2b;
}

.wll-approx-info-wrap:hover .wll-approx-tip,
.wll-approx-info-wrap.is-open .wll-approx-tip {
	opacity: 1;
	visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
	.wll-approx-info,
	.wll-approx-tip {
		transition: none;
	}
}

/* --- GST toggle --- */

.wll-gst-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	white-space: nowrap;
}

.wll-gst-label {
	color: #666;
}

.wll-gst-toggle .wll-gst-opt {
	background: none;
	border: none;
	padding: 2px 4px;
	cursor: pointer;
	font-family: inherit;
	font-size: inherit;
	color: #666;
	transition: color 0.15s;
}

.wll-gst-toggle .wll-gst-opt:hover {
	color: #333;
	text-decoration: underline;
}

.wll-gst-toggle .wll-gst-opt.is-active {
	color: #35C4B5;
	font-weight: 600;
}

.wll-gst-toggle .wll-gst-opt:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(53, 196, 181, 0.3);
	border-radius: 3px;
}

.wll-gst-sep {
	color: #ccc;
}

/* Buttons variant (shortcode style="buttons") */
.wll-gst-toggle--buttons {
	gap: 0;
}

.wll-gst-toggle--buttons .wll-gst-sep {
	display: none;
}

.wll-gst-toggle--buttons .wll-gst-opt {
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #ddd;
	color: #666;
	transition: all 0.2s;
}

.wll-gst-toggle--buttons .wll-gst-opt:first-of-type {
	border-radius: 4px 0 0 4px;
}

.wll-gst-toggle--buttons .wll-gst-opt:last-of-type {
	border-radius: 0 4px 4px 0;
	border-left: none;
}

.wll-gst-toggle--buttons .wll-gst-opt:hover {
	background: #f5f5f5;
	text-decoration: none;
}

.wll-gst-toggle--buttons .wll-gst-opt.is-active {
	background: #35C4B5;
	border-color: #35C4B5;
	color: #fff;
}

/* --- Placements --- */

.wll-gst-toggle-toolbar {
	display: inline-flex;
	align-items: center;
	margin: 0 0 0 12px;
}

.wll-pricing-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
	padding: 10px 16px;
	font-size: 13px;
}

.wll-currency-footer select {
	font-size: inherit;
	padding: 2px 4px;
}

/* --- Reusable labelled currency switcher ("Display prices in [select]") ---
   Shared by the desktop header (stacked, borderless) and the mobile bar
   (inline). No border in either variant. */

.wll-currency-switch {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
	color: #333;
	font-size: 13px;
	line-height: 1.2;
}

.wll-currency-switch__lead {
	white-space: nowrap;
}

.wll-currency-switch__select {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.wll-currency-switch__select::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	opacity: 0.6;
	pointer-events: none;
}

.wll-currency-switch select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: transparent;
	border: none;
	box-shadow: none; /* override the theme's faint select drop-shadow */
	margin: 0;
	padding: 2px 18px 2px 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: inherit;
	cursor: pointer;
	transition: color 0.2s;
}

.wll-currency-switch select:hover {
	color: #35C4B5;
}

.wll-currency-switch select:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(53, 196, 181, 0.4);
	border-radius: 4px;
}

/* Desktop header: stacked — a small "DISPLAY PRICES IN" line above the
   borderless switcher, vertically centred in the header row beside the cart. */
.wll-currency-switch--header {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	margin-right: 16px;
}

.wll-currency-switch--header .wll-currency-switch__lead {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.6;
}

.wll-currency-switch--header select {
	padding-left: 0;
	font-size: 14px;
}

.wll-currency-switch--header .wll-currency-switch__select::after {
	right: 6px;
}

@media (max-width: 992px) {
	.wll-currency-switch--header {
		display: none;
	}
}

/* Mobile: dedicated full-width currency bar above everything (desktop uses
   the cart-adjacent switcher instead). Light turquoise tint matches the
   banner so the two read as the same family. Kept slim. */
.wll-currency-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 6px;
	padding: 3px 12px;
	background: #f4fbfa;
	border-bottom: 1px solid #d4efec;
	color: #333;
	font-size: 12px;
	line-height: 1.3;
}

.wll-currency-bar .wll-currency-switch--bar {
	font-size: 12px;
}

/* Keep both sentences in the bar typographically identical (same size,
   weight and line-height) so they read as one continuous line. */
.wll-currency-bar__lead,
.wll-currency-bar .wll-currency-switch__lead {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

/* Native mobile selects render ~40px tall for touch — cap it so the bar
   stays slim while keeping a usable tap target (the label is wide). */
.wll-currency-bar select {
	height: 28px;
	padding-top: 0;
	padding-bottom: 0;
}

@media (min-width: 993px) {
	.wll-currency-bar {
		display: none;
	}
}

/* --- Overseas banner --- */

.wll-currency-banner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 7px 40px 7px 16px;
	background: #f4fbfa;
	border-bottom: 1px solid #d4efec;
	color: #333;
	font-size: 13px;
	line-height: 1.4;
	position: relative;
	z-index: 999;
}

.wll-currency-banner select {
	font-size: inherit;
	padding: 1px 4px;
}

.wll-banner-dismiss {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: #888;
	padding: 4px 8px;
}

.wll-banner-dismiss:hover {
	color: #333;
}

/* --- Checkout NZD notice --- */

.wll-nzd-notice {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px;
}
