/**
 * Forex Swap Information Gathering Tool by SG Group — frontend styles.
 *
 * Every selector is scoped under .sggroup-forex-swap-root (or the per-language
 * root ids). No bare element selectors, no @import, no external fonts.
 */

/* ---------------------------------------------------------------- root */

.sggroup-forex-swap-root {
	--sggroup-forex-swap-fg: #1c2733;
	--sggroup-forex-swap-muted: #5b6b7b;
	--sggroup-forex-swap-bg: #ffffff;
	--sggroup-forex-swap-surface: #f4f7fa;
	--sggroup-forex-swap-border: #d4dde6;
	--sggroup-forex-swap-accent: #0b5cad;
	--sggroup-forex-swap-accent-soft: #e3eef8;
	--sggroup-forex-swap-positive: #0a6b3d;
	--sggroup-forex-swap-negative: #b3261e;
	--sggroup-forex-swap-carried-bg: #fdf3dc;
	--sggroup-forex-swap-carried-fg: #7a5a12;

	box-sizing: border-box;
	color: var(--sggroup-forex-swap-fg);
	font-size: 1rem;
	line-height: 1.65;
	max-width: 100%;
}

@media (prefers-color-scheme: dark) {
	.sggroup-forex-swap-root {
		--sggroup-forex-swap-fg: #e4ebf2;
		--sggroup-forex-swap-muted: #9fb0c0;
		--sggroup-forex-swap-bg: #141b22;
		--sggroup-forex-swap-surface: #1d2733;
		--sggroup-forex-swap-border: #344455;
		--sggroup-forex-swap-accent: #6aaee8;
		--sggroup-forex-swap-accent-soft: #1c3550;
		--sggroup-forex-swap-positive: #57c48b;
		--sggroup-forex-swap-negative: #ef8b84;
		--sggroup-forex-swap-carried-bg: #3a2f14;
		--sggroup-forex-swap-carried-fg: #e8c46a;
	}
}

.sggroup-forex-swap-root *,
.sggroup-forex-swap-root *::before,
.sggroup-forex-swap-root *::after {
	box-sizing: inherit;
}

/* ------------------------------------------------------------- header */

.sggroup-forex-swap-root .sggroup-forex-swap-heading {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.75rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-subheading {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-meta {
	background: var(--sggroup-forex-swap-surface);
	border: 1px solid var(--sggroup-forex-swap-border);
	border-radius: 6px;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-meta > li {
	font-size: 0.9rem;
	margin: 0.15rem 0;
	padding: 0;
}

.sggroup-forex-swap-root .sggroup-forex-swap-meta-label {
	color: var(--sggroup-forex-swap-muted);
	display: inline-block;
	font-weight: 600;
	margin-right: 0.35rem;
	min-width: 10em;
}

.sggroup-forex-swap-root .sggroup-forex-swap-coverage {
	font-weight: 700;
}

.sggroup-forex-swap-root .sggroup-forex-swap-coverage-detail {
	color: var(--sggroup-forex-swap-muted);
	font-size: 0.85rem;
}

/* ----------------------------------------------------------- controls */

.sggroup-forex-swap-root .sggroup-forex-swap-controls {
	margin: 0 0 1.25rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-filter-form {
	align-items: flex-end;
	background: var(--sggroup-forex-swap-surface);
	border: 1px solid var(--sggroup-forex-swap-border);
	border-radius: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0.75rem 1rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-control {
	display: inline-flex;
	flex-direction: column;
	gap: 0.2rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-control > label {
	color: var(--sggroup-forex-swap-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.sggroup-forex-swap-root .sggroup-forex-swap-control > select {
	background: var(--sggroup-forex-swap-bg);
	border: 1px solid var(--sggroup-forex-swap-border);
	border-radius: 4px;
	color: var(--sggroup-forex-swap-fg);
	font-size: 0.9rem;
	max-width: 100%;
	padding: 0.35rem 0.5rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-button {
	background: var(--sggroup-forex-swap-accent);
	border: 1px solid var(--sggroup-forex-swap-accent);
	border-radius: 4px;
	color: #ffffff;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.4rem 0.9rem;
	transition: background-color 0.15s ease-in-out;
}

.sggroup-forex-swap-root .sggroup-forex-swap-button:hover {
	background: #094a8c;
	border-color: #094a8c;
}

/* ------------------------------------------------------------ top N */

.sggroup-forex-swap-root .sggroup-forex-swap-top {
	margin: 0 0 1.5rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-list {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: sggroup-forex-swap-top;
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-card {
	background: var(--sggroup-forex-swap-accent-soft);
	border: 1px solid var(--sggroup-forex-swap-border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0;
	padding: 0.85rem 1rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-rank {
	color: var(--sggroup-forex-swap-accent);
	font-size: 0.8rem;
	font-weight: 700;
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-rank::before {
	content: "#";
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-name {
	font-size: 1rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-value {
	font-size: 1.3rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.sggroup-forex-swap-root .sggroup-forex-swap-top-unit {
	color: var(--sggroup-forex-swap-muted);
	font-size: 0.78rem;
}

/* ----------------------------------------------------- pair sections */

.sggroup-forex-swap-root .sggroup-forex-swap-pair,
.sggroup-forex-swap-root .sggroup-forex-swap-reference,
.sggroup-forex-swap-root .sggroup-forex-swap-sources {
	border: 1px solid var(--sggroup-forex-swap-border);
	border-radius: 6px;
	margin: 0 0 0.9rem;
	padding: 0;
}

.sggroup-forex-swap-root .sggroup-forex-swap-pair-summary {
	cursor: pointer;
	font-weight: 700;
	padding: 0.7rem 1rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-pair-summary:hover {
	background: var(--sggroup-forex-swap-surface);
}

.sggroup-forex-swap-root .sggroup-forex-swap-reference-note {
	color: var(--sggroup-forex-swap-muted);
	font-size: 0.88rem;
	margin: 0.25rem 1rem 0.75rem;
}

/* -------------------------------------------------------------- table */

.sggroup-forex-swap-root .sggroup-forex-swap-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	padding: 0 0.5rem 0.75rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table {
	border-collapse: collapse;
	font-size: 0.88rem;
	margin: 0;
	width: 100%;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table > caption {
	caption-side: top;
	color: var(--sggroup-forex-swap-muted);
	font-size: 0.82rem;
	padding: 0.4rem 0.25rem;
	text-align: left;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table th,
.sggroup-forex-swap-root .sggroup-forex-swap-table td {
	border-bottom: 1px solid var(--sggroup-forex-swap-border);
	padding: 0.5rem 0.6rem;
	text-align: left;
	vertical-align: top;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table thead th {
	background: var(--sggroup-forex-swap-surface);
	border-bottom: 2px solid var(--sggroup-forex-swap-border);
	font-size: 0.8rem;
	white-space: nowrap;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table thead th[data-sggroup-forex-swap-key] {
	cursor: pointer;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table thead th[aria-sort="ascending"]::after {
	content: " \25B2";
	font-size: 0.7em;
}

.sggroup-forex-swap-root .sggroup-forex-swap-table thead th[aria-sort="descending"]::after {
	content: " \25BC";
	font-size: 0.7em;
}

.sggroup-forex-swap-root .sggroup-forex-swap-broker-name {
	display: block;
	font-weight: 700;
}

.sggroup-forex-swap-root .sggroup-forex-swap-broker-sub {
	color: var(--sggroup-forex-swap-muted);
	display: block;
	font-size: 0.78rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-value {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sggroup-forex-swap-root .sggroup-forex-swap-value-positive {
	color: var(--sggroup-forex-swap-positive);
	font-weight: 700;
}

.sggroup-forex-swap-root .sggroup-forex-swap-value-negative {
	color: var(--sggroup-forex-swap-negative);
	font-weight: 700;
}

.sggroup-forex-swap-root .sggroup-forex-swap-value-empty {
	color: var(--sggroup-forex-swap-muted);
}

.sggroup-forex-swap-root .sggroup-forex-swap-status {
	border-radius: 3px;
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.1rem 0.4rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-status-fresh {
	background: var(--sggroup-forex-swap-accent-soft);
	color: var(--sggroup-forex-swap-accent);
}

.sggroup-forex-swap-root .sggroup-forex-swap-status-carried,
.sggroup-forex-swap-root .sggroup-forex-swap-carried-mark {
	background: var(--sggroup-forex-swap-carried-bg);
	color: var(--sggroup-forex-swap-carried-fg);
}

.sggroup-forex-swap-root .sggroup-forex-swap-carried-mark {
	border-radius: 3px;
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.1rem 0.4rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-row-carried > td {
	background: var(--sggroup-forex-swap-carried-bg);
}

.sggroup-forex-swap-root .sggroup-forex-swap-table a {
	color: var(--sggroup-forex-swap-accent);
	text-decoration: underline;
}

/* -------------------------------------------------------- side filter */

.sggroup-forex-swap-root[data-sggroup-forex-swap-side="long"] [data-sggroup-forex-swap-col="short"],
.sggroup-forex-swap-root[data-sggroup-forex-swap-side="short"] [data-sggroup-forex-swap-col="long"] {
	display: none;
}

/* ------------------------------------------------------------- footer */

.sggroup-forex-swap-root .sggroup-forex-swap-footer {
	border-top: 2px solid var(--sggroup-forex-swap-border);
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-footer-block {
	margin: 0 0 1rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-footer-block > p {
	font-size: 0.88rem;
	margin: 0 0 0.5rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-sources-list {
	font-size: 0.88rem;
	margin: 0.25rem 0 0.75rem;
	padding: 0 1rem 0 2rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-sources-list a {
	color: var(--sggroup-forex-swap-accent);
}

/* ---------------------------------------------------------- preparing */

.sggroup-forex-swap-root .sggroup-forex-swap-preparing {
	background: var(--sggroup-forex-swap-surface);
	border: 1px dashed var(--sggroup-forex-swap-border);
	border-radius: 6px;
	padding: 1.25rem 1.5rem;
}

.sggroup-forex-swap-root .sggroup-forex-swap-preparing-text {
	color: var(--sggroup-forex-swap-muted);
	margin: 0;
}

/* ------------------------------------------------------------- inline */

.sggroup-forex-swap-root.sggroup-forex-swap-inline {
	display: inline;
	font-size: inherit;
}

.sggroup-forex-swap-root .sggroup-forex-swap-inline-label,
.sggroup-forex-swap-root.sggroup-forex-swap-inline .sggroup-forex-swap-inline-label {
	font-weight: 600;
}

/* -------------------------------------------------------------- focus */

.sggroup-forex-swap-root a:focus-visible,
.sggroup-forex-swap-root button:focus-visible,
.sggroup-forex-swap-root select:focus-visible,
.sggroup-forex-swap-root summary:focus-visible,
.sggroup-forex-swap-root th:focus-visible {
	outline: 3px solid var(--sggroup-forex-swap-accent);
	outline-offset: 2px;
}

/* ----------------------------------------------- mobile card transform */

@media (max-width: 767px) {
	.sggroup-forex-swap-root .sggroup-forex-swap-table-wrap {
		overflow-x: visible;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table,
	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody,
	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr,
	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr > td,
	.sggroup-forex-swap-root .sggroup-forex-swap-table > caption {
		display: block;
		width: 100%;
	}

	/* Keep headers available to assistive tech but visually hidden. */
	.sggroup-forex-swap-root .sggroup-forex-swap-table > thead {
		border: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		width: 1px;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr {
		background: var(--sggroup-forex-swap-bg);
		border: 1px solid var(--sggroup-forex-swap-border);
		border-radius: 6px;
		margin: 0 0 0.75rem;
		padding: 0.25rem 0;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr > td {
		align-items: baseline;
		border-bottom: 1px dotted var(--sggroup-forex-swap-border);
		display: flex;
		gap: 0.75rem;
		justify-content: space-between;
		padding: 0.4rem 0.75rem;
		text-align: right;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr > td:last-child {
		border-bottom: 0;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr > td::before {
		color: var(--sggroup-forex-swap-muted);
		content: attr(data-sggroup-forex-swap-label);
		flex-shrink: 0;
		font-size: 0.78rem;
		font-weight: 600;
		text-align: left;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-row-carried {
		background: var(--sggroup-forex-swap-carried-bg);
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-row-carried > td {
		background: transparent;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-meta-label {
		display: block;
		min-width: 0;
	}
}

/* 360px safety: shrink paddings and fonts slightly, never overflow. */
@media (max-width: 400px) {
	.sggroup-forex-swap-root .sggroup-forex-swap-heading {
		font-size: 1.25rem;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-filter-form {
		padding: 0.6rem 0.7rem;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-control {
		width: 100%;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-control > select {
		width: 100%;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table > tbody > tr > td {
		flex-wrap: wrap;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-top-list {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.sggroup-forex-swap-root .sggroup-forex-swap-button,
	.sggroup-forex-swap-root .sggroup-forex-swap-pair-summary {
		transition: none;
	}
}

/* -------------------------------------------------------------- print */

@media print {
	.sggroup-forex-swap-root {
		--sggroup-forex-swap-fg: #000000;
		--sggroup-forex-swap-muted: #333333;
		--sggroup-forex-swap-bg: #ffffff;
		--sggroup-forex-swap-surface: #ffffff;
		--sggroup-forex-swap-border: #999999;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-controls {
		display: none;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table-wrap {
		overflow-x: visible;
	}

	.sggroup-forex-swap-root .sggroup-forex-swap-table a::after {
		content: " (" attr(href) ")";
		font-size: 0.7em;
		word-break: break-all;
	}
}

/* -------------------------------------------------- v2: share tools */

.sggroup-forex-swap-share {
	--sggroup-forex-swap-share-fg: #1c2733;
	--sggroup-forex-swap-share-bg: #ffffff;
	--sggroup-forex-swap-share-surface: #f4f7fa;
	--sggroup-forex-swap-share-border: #d4dde6;
	--sggroup-forex-swap-share-accent: #0b5cad;

	box-sizing: border-box;
	color: var(--sggroup-forex-swap-share-fg);
	margin: 1.5rem 0 1rem;
	max-width: 100%;
	position: relative;
}

@media (prefers-color-scheme: dark) {
	.sggroup-forex-swap-share {
		--sggroup-forex-swap-share-fg: #e4ebf2;
		--sggroup-forex-swap-share-bg: #141b22;
		--sggroup-forex-swap-share-surface: #1d2733;
		--sggroup-forex-swap-share-border: #344455;
		--sggroup-forex-swap-share-accent: #6aaee8;
	}
}

.sggroup-forex-swap-share *,
.sggroup-forex-swap-share *::before,
.sggroup-forex-swap-share *::after {
	box-sizing: inherit;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-heading {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-item {
	margin: 0;
	padding: 0;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-btn {
	align-items: center;
	background: var(--sggroup-forex-swap-share-surface);
	border: 1px solid var(--sggroup-forex-swap-share-border);
	border-radius: 999px;
	color: var(--sggroup-forex-swap-share-fg);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.85rem;
	gap: 0.4rem;
	justify-content: center;
	line-height: 1;
	min-height: 44px;
	min-width: 44px;
	padding: 0.6rem 0.9rem;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-btn:hover {
	border-color: var(--sggroup-forex-swap-share-accent);
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-btn:focus-visible,
.sggroup-forex-swap-share .sggroup-forex-swap-share-dismiss:focus-visible {
	outline: 3px solid var(--sggroup-forex-swap-share-accent);
	outline-offset: 2px;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-icon {
	flex: 0 0 auto;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-toast {
	background: var(--sggroup-forex-swap-share-fg);
	border-radius: 6px;
	color: var(--sggroup-forex-swap-share-bg);
	display: inline-block;
	font-size: 0.85rem;
	margin-top: 0.5rem;
	max-width: 100%;
	opacity: 0;
	padding: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-toast-visible {
	opacity: 1;
	padding: 0.4rem 0.75rem;
}

.sggroup-forex-swap-share .sggroup-forex-swap-share-dismiss {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--sggroup-forex-swap-share-fg);
	cursor: pointer;
	display: none;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0.5rem;
}

/* Fixed mobile bar variant: small, dismissible, respects the safe area and
   never adds body padding — content stays fully reachable by scrolling. */
@media (max-width: 767px) {
	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar {
		background: var(--sggroup-forex-swap-share-bg);
		border-top: 1px solid var(--sggroup-forex-swap-share-border);
		bottom: 0;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
		left: 0;
		margin: 0;
		padding: 0.4rem 3.25rem 0.4rem 0.75rem;
		padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
		position: fixed;
		right: 0;
		z-index: 9990;
	}

	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar .sggroup-forex-swap-share-heading {
		border: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		margin: 0;
		overflow: hidden;
		padding: 0;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar .sggroup-forex-swap-share-list {
		flex-wrap: nowrap;
		gap: 0.4rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar .sggroup-forex-swap-share-btn {
		padding: 0.5rem 0.7rem;
	}

	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar .sggroup-forex-swap-share-text {
		border: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar .sggroup-forex-swap-share-dismiss {
		display: inline-flex;
		position: absolute;
		right: 0.25rem;
		top: 50%;
		transform: translateY(-50%);
	}

	.sggroup-forex-swap-share.sggroup-forex-swap-share-fixedbar .sggroup-forex-swap-share-toast {
		bottom: calc(100% + 0.5rem);
		left: 0.75rem;
		margin: 0;
		position: absolute;
	}
}

/* --------------------------------------------------------- v2: a2hs */

.sggroup-forex-swap-a2hs {
	--sggroup-forex-swap-a2hs-fg: #1c2733;
	--sggroup-forex-swap-a2hs-bg: #ffffff;
	--sggroup-forex-swap-a2hs-border: #d4dde6;
	--sggroup-forex-swap-a2hs-accent: #0b3a63;
	--sggroup-forex-swap-a2hs-accent-fg: #ffffff;

	box-sizing: border-box;
	color: var(--sggroup-forex-swap-a2hs-fg);
	margin: 1rem 0;
	max-width: 100%;
}

@media (prefers-color-scheme: dark) {
	.sggroup-forex-swap-a2hs {
		--sggroup-forex-swap-a2hs-fg: #e4ebf2;
		--sggroup-forex-swap-a2hs-bg: #141b22;
		--sggroup-forex-swap-a2hs-border: #344455;
		--sggroup-forex-swap-a2hs-accent: #1c5a94;
		--sggroup-forex-swap-a2hs-accent-fg: #ffffff;
	}
}

.sggroup-forex-swap-a2hs *,
.sggroup-forex-swap-a2hs *::before,
.sggroup-forex-swap-a2hs *::after {
	box-sizing: inherit;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-button {
	align-items: center;
	background: var(--sggroup-forex-swap-a2hs-accent);
	border: 1px solid var(--sggroup-forex-swap-a2hs-accent);
	border-radius: 8px;
	color: var(--sggroup-forex-swap-a2hs-accent-fg);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9rem;
	gap: 0.45rem;
	justify-content: center;
	line-height: 1;
	min-height: 44px;
	padding: 0.65rem 1rem;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-button:focus-visible,
.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-action:focus-visible {
	outline: 3px solid var(--sggroup-forex-swap-a2hs-accent);
	outline-offset: 2px;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.55);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	padding: 1rem;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 99990;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-modal[hidden] {
	display: none;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-modal-inner {
	animation: sggroup-forex-swap-a2hs-in 0.18s ease-out;
	background: var(--sggroup-forex-swap-a2hs-bg);
	border: 1px solid var(--sggroup-forex-swap-a2hs-border);
	border-radius: 10px;
	color: var(--sggroup-forex-swap-a2hs-fg);
	max-width: 26rem;
	padding: 1.25rem;
	width: 100%;
}

@keyframes sggroup-forex-swap-a2hs-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-text {
	font-size: 0.92rem;
	line-height: 1.65;
	margin: 0 0 1rem;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-end;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-action {
	background: var(--sggroup-forex-swap-a2hs-accent);
	border: 1px solid var(--sggroup-forex-swap-a2hs-accent);
	border-radius: 6px;
	color: var(--sggroup-forex-swap-a2hs-accent-fg);
	cursor: pointer;
	font-size: 0.88rem;
	min-height: 44px;
	padding: 0.55rem 1rem;
}

.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-action-quiet {
	background: transparent;
	border-color: var(--sggroup-forex-swap-a2hs-border);
	color: var(--sggroup-forex-swap-a2hs-fg);
}

@media (prefers-reduced-motion: reduce) {
	.sggroup-forex-swap-share .sggroup-forex-swap-share-btn,
	.sggroup-forex-swap-share .sggroup-forex-swap-share-toast {
		transition: none;
	}

	.sggroup-forex-swap-a2hs .sggroup-forex-swap-a2hs-modal-inner {
		animation: none;
	}
}

@media print {
	.sggroup-forex-swap-share,
	.sggroup-forex-swap-a2hs {
		display: none;
	}
}
