/* Currency converter — separate online tool (scoped) */
.arsam-fxc {
	--fxc-surface: #0d121b;
	--fxc-surface-deep: #090e16;
	--fxc-gold: #d7aa3b;
	--fxc-gold-hi: #e7b64d;
	--fxc-text: #f4f4f1;
	--fxc-muted: #a8afb8;
	--fxc-line: rgba(215, 170, 59, 0.35);
	--fxc-radius: 20px;
	max-width: 800px;
	margin: 0 auto;
}

.arsam-fxc__card {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: var(--fxc-surface);
	border: 1px solid var(--fxc-line);
	border-radius: var(--fxc-radius);
}

.arsam-fxc__form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.arsam-fxc__field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
}

.arsam-fxc__label {
	font-size: 0.88rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
}

.arsam-fxc__input,
.arsam-fxc__select {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 1rem;
	font: inherit;
	font-size: 1rem;
	color: var(--fxc-text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(215, 170, 59, 0.28);
	border-radius: 999px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.arsam-fxc__input:focus,
.arsam-fxc__select:focus {
	border-color: rgba(215, 170, 59, 0.7);
	box-shadow: 0 0 0 3px rgba(215, 170, 59, 0.16);
}

.arsam-fxc__pair {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.75rem;
	align-items: end;
}

.arsam-fxc__select-wrap {
	position: relative;
	display: flex;
	align-items: center;
	z-index: 2;
}

.arsam-fxc__select-wrap.is-open {
	z-index: 30;
}

.arsam-fxc__select-flag {
	position: absolute;
	inset-inline-start: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	pointer-events: none;
	z-index: 1;
}

.arsam-fxc__select-flag img {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
	display: block;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Native select kept for a11y/value; custom dark list shown instead. */
.arsam-fxc__select--native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.arsam-fxc__select-btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 48px;
	padding-block: 0.7rem;
	padding-inline: 2.55rem 2.4rem;
	font: inherit;
	font-size: 1rem;
	color: var(--fxc-text);
	text-align: start;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(215, 170, 59, 0.28);
	border-radius: 999px;
	cursor: pointer;
	appearance: none;
}

.arsam-fxc__select-btn::after {
	content: "";
	position: absolute;
	inset-inline-end: 16px;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -2px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--fxc-gold);
	pointer-events: none;
}

.arsam-fxc__select-btn:hover,
.arsam-fxc__select-btn:focus-visible,
.arsam-fxc__select-wrap.is-open .arsam-fxc__select-btn {
	border-color: rgba(215, 170, 59, 0.7);
	box-shadow: 0 0 0 3px rgba(215, 170, 59, 0.16);
	outline: none;
}

.arsam-fxc__select-list {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 6px);
	z-index: 40;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	max-height: min(280px, 50vh);
	overflow-y: auto;
	background: #0a121c;
	border: 1px solid rgba(215, 170, 59, 0.4);
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.arsam-fxc__select-list[hidden] {
	display: none !important;
}

.arsam-fxc__select-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--fxc-text);
	text-align: start;
	background: transparent;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.arsam-fxc__select-option img {
	width: 20px;
	height: 14px;
	object-fit: cover;
	border-radius: 2px;
	flex: 0 0 auto;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.arsam-fxc__select-option:hover,
.arsam-fxc__select-option:focus-visible {
	background: rgba(215, 170, 59, 0.14);
	outline: none;
}

.arsam-fxc__select-option.is-active {
	background: rgba(215, 170, 59, 0.22);
	color: var(--fxc-gold-hi);
}

.arsam-fxc__select {
	padding-inline-start: 2.55rem;
	padding-inline-end: 2.2rem;
}

.arsam-fxc__swap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1px;
	color: var(--fxc-gold-hi);
	background: rgba(215, 170, 59, 0.08);
	border: 1px solid rgba(215, 170, 59, 0.4);
	border-radius: 999px;
	cursor: pointer;
	flex: 0 0 auto;
}

.arsam-fxc__swap:hover,
.arsam-fxc__swap:focus-visible {
	background: rgba(215, 170, 59, 0.16);
	outline: none;
}

.arsam-fxc__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	width: 100%;
	padding: 0.85rem 1.25rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 750;
	color: #03172f;
	background: var(--fxc-gold);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.arsam-fxc__submit:hover:not(:disabled) {
	background: var(--fxc-gold-hi);
}

.arsam-fxc__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.arsam-fxc__consent {
	padding: 0.65rem 0.85rem;
	background: rgba(215, 170, 59, 0.07);
	border: 1px solid rgba(215, 170, 59, 0.25);
	border-radius: 12px;
}

.arsam-fxc__consent-label {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	font-size: 0.88rem;
	color: var(--fxc-muted);
	cursor: pointer;
}

.arsam-fxc__error {
	margin: 0;
	font-size: 0.82rem;
	color: #f0c070;
}

.arsam-fxc__result {
	margin-top: 1.15rem;
	padding: 1.1rem 1.15rem;
	background: var(--fxc-surface-deep);
	border: 1px solid rgba(215, 170, 59, 0.22);
	border-radius: 16px;
}

.arsam-fxc__result-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.55rem;
}

.arsam-fxc__result-title {
	font-size: 0.88rem;
	font-weight: 650;
	color: var(--fxc-muted);
}

.arsam-fxc__copy {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--fxc-gold-hi);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 650;
	cursor: pointer;
	padding: 0.2rem 0;
}

.arsam-fxc__result-value {
	margin: 0 0 0.45rem;
	font-size: clamp(1.45rem, 4.5vw, 2rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--fxc-gold-hi);
	overflow-wrap: anywhere;
}

.arsam-fxc__result-rate,
.arsam-fxc__result-meta {
	margin: 0.25rem 0 0;
	font-size: 0.86rem;
	line-height: 1.65;
	color: var(--fxc-muted);
}

.arsam-fxc__toast {
	margin: 0.55rem 0 0;
	font-size: 0.82rem;
	color: var(--fxc-gold-hi);
}

.arsam-fxc__status {
	margin: 0.75rem 0 0;
	min-height: 1.2em;
	font-size: 0.84rem;
	color: var(--fxc-muted);
}

.arsam-fxc__rates {
	max-width: 800px;
	margin: 1.35rem auto 0;
}

.arsam-fxc__chips {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arsam-fxc__chip-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	min-height: 88px;
	padding: 0.75rem 0.5rem;
	font: inherit;
	color: inherit;
	background: var(--fxc-surface);
	border: 1px solid var(--fxc-line);
	border-radius: 14px;
	cursor: pointer;
}

.arsam-fxc__chip-btn:hover,
.arsam-fxc__chip-btn:focus-visible {
	border-color: rgba(215, 170, 59, 0.65);
	outline: none;
}

.arsam-fxc__chip-name {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.86);
	text-align: center;
}

.arsam-fxc__chip-price {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--fxc-gold-hi);
	direction: ltr;
	unicode-bidi: isolate;
}

@media (max-width: 720px) {
	.arsam-fxc__pair {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.arsam-fxc__swap {
		margin: 0 auto;
		transform: rotate(90deg);
	}

	.arsam-fxc__chips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.arsam-fxc__chips .arsam-fxc__chip:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: min(100%, 220px);
	}
}

@media (max-width: 420px) {
	.arsam-fxc__card {
		padding: 1.05rem;
		border-radius: 16px;
	}
}
