/**
 * GRACE Technology Bangladesh — plugin assets/css/currency.css
 *
 * Designed & developed by Ishraq Uddin Chowdhury <ishraq.uc@gmail.com>
 * Copyright (c) 2026 Ishraq Uddin Chowdhury. All rights reserved.
 * Unauthorized copying, modification or use without written permission is prohibited. See LICENSE.
 */

/*
 * Dual-currency price spans: both values are in the HTML; html[data-cur] decides which one shows.
 * Regulatory figures (Tk 10.50/kWh, the USD rate, fees) always print both in fixed order.
 */
.g-price b {
	font-weight: inherit;
}

html[data-cur="USD"] .g-price:not(.g-price--regulatory) .g-price__bdt,
html[data-cur="BDT"] .g-price:not(.g-price--regulatory) .g-price__usd,
html:not([data-cur]) .g-price:not(.g-price--regulatory) .g-price__usd {
	display: none;
}

.g-price--regulatory .g-price__usd {
	opacity: 0.8;
	font-size: 0.9em;
}

/* Currency toggle buttons (৳ / $). */
.g-switch__cur {
	display: inline-flex;
	border: 1px solid currentcolor;
	border-radius: 999px;
	overflow: hidden;
}

.g-cur-btn {
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	cursor: pointer;
}

.g-cur-btn[aria-pressed="true"] {
	background: currentcolor;
}

.g-cur-btn[aria-pressed="true"]::before {
	content: attr(data-g-cur) "";
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

html[data-cur="BDT"] .g-cur-btn[data-g-cur="BDT"],
html[data-cur="USD"] .g-cur-btn[data-g-cur="USD"] {
	background: currentcolor;
}

/* Text on the filled button. */
.g-cur-btn[aria-pressed="true"],
html[data-cur="BDT"] .g-cur-btn[data-g-cur="BDT"],
html[data-cur="USD"] .g-cur-btn[data-g-cur="USD"] {
	color: inherit;
	-webkit-text-fill-color: var(--g-surface, #fff);
}
