/*!
 * ASA InstaPay — site-wide USD | ZiG currency switcher styles.
 *
 * Copyright (c) 2026 Afri Soft Aware (ASA). All rights reserved.
 * License: ASA Commercial License (Proprietary) — https://afrisoftaware.com/license
 *
 * Desktop: a compact segmented toggle on a light chip. Mobile: a simple native
 * dropdown. Redefines --btn-padding / --btn-height locally so WoodMart's tall
 * button sizing does not leak in.
 */

.asa-currency-switch {
	--btn-padding: 5px 10px;
	--btn-height: 20px;
	display: inline-flex;
	align-items: center;
	margin: 0 8px 0 0;
	vertical-align: middle;
	line-height: 1;
}

/* Desktop: segmented toggle. */
.asa-currency-switch__toggle {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	padding: 1px;
	border: 1px solid rgba(0, 0, 0, 0.32);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.92);
}

.asa-currency-switch__btn {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	background: transparent;
	border: 0;
	margin: 0;
	padding: var(--btn-padding, 5px 10px);
	min-height: var(--btn-height, 20px);
	height: auto;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	color: #1f1f1f;
	cursor: pointer;
	border-radius: 3px;
}

.asa-currency-switch__btn:hover {
	color: #0C5C28;
}

.asa-currency-switch__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(17, 122, 54, 0.6);
}

.asa-currency-switch__btn.is-active {
	background: #117A36;
	color: #fff;
}

.asa-currency-switch__btn.is-active .asa-currency-switch__label {
	color: #fff;
}

.asa-currency-switch__label {
	display: inline-block;
}

/* Mobile: simple native dropdown (hidden on desktop). */
.asa-currency-switch__select {
	display: none;
	box-sizing: border-box;
	padding: var(--btn-padding, 5px 10px);
	min-height: var(--btn-height, 20px);
	height: auto;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #1f1f1f;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.32);
	border-radius: 5px;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.asa-currency-switch__toggle {
		display: none;
	}
	.asa-currency-switch__select {
		display: inline-block;
	}
}
