/* NDS location / currency selector */
:root {
	--nds-cur-ink: #14241c;
	--nds-cur-muted: #5f7168;
	--nds-cur-accent: #1aada3;
	--nds-cur-accent-2: #0f8a7e;
	--nds-cur-soft: #eef4f1;
	--nds-cur-line: rgba(20, 36, 28, 0.12);
}

/* Flag-style chip in top bar (with About / Services / Contact / Shop) */
.topbar-wrapp .nds-currency-chip,
.nds-currency-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0 0.2rem 0 0.45rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1a1a1a !important;
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: inherit;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	vertical-align: middle;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.nds-currency-chip:hover,
.nds-currency-chip:focus-visible {
	color: var(--nds-cur-accent-2);
	outline: none;
	opacity: 0.92;
}

.nds-currency-chip__flag {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	flex-shrink: 0;
}

.nds-currency-chip--no-flag .nds-currency-chip__flag:empty {
	display: none;
}

.nds-currency-chip__flag-img,
.nds-currency-chip__flag-svg {
	display: block;
	width: 22px;
	height: 15px;
	object-fit: cover;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.nds-currency-chip__label {
	max-width: 11rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar-menu .nds-currency-topbar-item {
	vertical-align: middle;
	margin-left: 0.35rem;
}

.topbar-menu .nds-currency-topbar-item .nds-currency-chip {
	padding-left: 0.65rem;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
}

.nds-currency-modal[hidden] {
	display: none !important;
}

.nds-currency-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.nds-currency-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 26, 20, 0.55);
	backdrop-filter: blur(2px);
}

.nds-currency-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(420px, 100%);
	max-height: min(90vh, 640px);
	overflow: auto;
	padding: 1.5rem 1.35rem 1.35rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 26, 20, 0.28);
	color: var(--nds-cur-ink);
}

.nds-currency-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.nds-currency-modal__lead {
	margin: 0 0 1.1rem;
	color: var(--nds-cur-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.nds-currency-modal__note {
	margin: 0.85rem 0 0;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	background: var(--nds-cur-soft);
	color: var(--nds-cur-muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

.nds-currency-field {
	display: block;
	margin: 0 0 0.85rem;
	border: 0;
	padding: 0;
	min-width: 0;
}

.nds-currency-field__label {
	display: block;
	margin-bottom: 0.35rem;
	padding: 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nds-cur-muted);
}

.nds-currency-country-radios {
	display: grid;
	gap: 0.5rem;
}

.nds-currency-country {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.7rem 0.8rem;
	border: 1px solid var(--nds-cur-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nds-currency-country:has(input:checked) {
	border-color: var(--nds-cur-accent);
	box-shadow: 0 0 0 1px var(--nds-cur-accent);
}

.nds-currency-country input {
	margin: 0;
	flex-shrink: 0;
}

.nds-currency-country__flag {
	display: inline-flex;
	flex-shrink: 0;
}

.nds-currency-country__flag .nds-currency-chip__flag-img {
	width: 28px;
	height: 19px;
}

.nds-currency-country__name {
	font-size: 0.95rem;
	color: var(--nds-cur-ink);
	font-weight: 600;
}

.nds-currency-radios {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.55rem;
}

.nds-currency-radio {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 0.75rem;
	border: 1px solid var(--nds-cur-line);
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.92rem;
}

.nds-currency-radio:has(input:checked) {
	border-color: var(--nds-cur-accent);
	background: rgba(26, 173, 163, 0.08);
}

.nds-currency-radio input {
	accent-color: var(--nds-cur-accent);
}

.nds-currency-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.15rem;
}

.nds-currency-modal__btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1.15rem;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.nds-currency-modal__btn--primary {
	background: linear-gradient(135deg, var(--nds-cur-accent), var(--nds-cur-accent-2));
	color: #fff;
}

.nds-currency-modal__btn--primary:hover {
	filter: brightness(1.05);
}

.nds-currency-modal__btn--ghost {
	background: transparent;
	color: var(--nds-cur-muted);
	border: 1px solid var(--nds-cur-line);
}

.nds-currency-modal__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

body.nds-currency-modal-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.nds-currency-chip__label-full {
		display: none;
	}

	.nds-currency-chip__label-short {
		display: inline;
	}
}

@media (min-width: 769px) {
	.nds-currency-chip__label-short {
		display: none;
	}
}
