/*
Theme Name: xMoney Modern
Theme URI: https://xmoney.su
Description: Modern, accessible PremiumBox theme for xMoney.
Version: 1.0.0
Author: xMoney
Text Domain: pntheme
Requires PHP: 8.1
*/

@layer legacy;

@import url('./css/swiper-bundle.min.css') layer(legacy);
@import url('style_exch.css') layer(legacy);
@import url('./css/main.min.css') layer(legacy);

/* Visual-only exchange loader: plugin controls requests and form state. */
.ajax_post_bids .exch_ajax_wrap_abs {
	background: color-mix(in srgb, var(--Colors-Fills-Loading-Overlay) 72%, transparent);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.ajax_post_bids .exch_ajax_wrap_abs::after {
	width: 3.5rem;
	height: 3.5rem;
	margin: -1.75rem 0 0 -1.75rem;
	background-size: 3.5rem;
	-webkit-animation-duration: 1.1s;
	animation-duration: 1.1s;
}

.ajax_post_bids .exch_ajax_wrap_abs::before {
	position: absolute;
	top: 10%;
	left: 50%;
	width: clamp(7.5rem, 15vw, 11rem);
	aspect-ratio: 1594 / 446;
	content: '';
	background: url('./images/logo/logo_dark.png') center / contain no-repeat;
	transform: translateX(-50%);
}

html.dark .ajax_post_bids .exch_ajax_wrap_abs::before {
	background-image: url('./images/logo/logo_white.png');
}

/* Homepage */
@keyframes xm-hero-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

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

@keyframes xm-hero-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.xm-hero-anim-1 {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 0ms both;
}

.xm-hero-anim-2 {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 60ms both;
}

.xm-hero-anim-3 {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both;
}

.xm-hero-anim-4 {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 190ms both;
}

.xm-benefit-chips {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 250ms both;
}

.xm-exchange-head-anim {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 310ms both;
}

.xm-exchange-card-anim {
	animation: xm-hero-up 700ms cubic-bezier(0.23, 1, 0.32, 1) 360ms both;
}

@keyframes xm-pulse {
	0% {
		opacity: .65;
		transform: scale(1);
	}

	100% {
		opacity: 0;
		transform: scale(2.8);
	}
}

.xm-online-dot {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
}

.xm-online-dot::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--xm-accent);
	animation: xm-pulse 1.8s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.xm-online-dot::after {
	content: '';
	position: relative;
	z-index: 1;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--xm-accent);
}

.xm-service-info__card:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 2.875rem;
	background: color-mix(in srgb, var(--xm-line) 88%, transparent);
	transform: translateY(-50%);
	pointer-events: none;
}

.xm-service-info__link:not(:last-child)::after {
	content: "";
	width: 0.25rem;
	height: 0.25rem;
	margin-left: 0.625rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--xm-muted) 44%, transparent);
	pointer-events: none;
}

.xm-service-info__link {
	transition:
		color 140ms ease,
		opacity 140ms ease,
		transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}

.xm-service-info__link:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.xm-service-info__link:hover {
		color: var(--xm-accent-strong);
		opacity: 0.9;
	}
}

@media (max-width: 56rem) {
	.xm-service-info__card:not(:last-child)::after {
		top: auto;
		right: 0;
		bottom: 0;
		left: 2.25rem;
		width: auto;
		height: 1px;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.xm-hero-anim-1,
	.xm-hero-anim-2,
	.xm-hero-anim-3,
	.xm-hero-anim-4,
	.xm-benefit-chips,
	.xm-exchange-head-anim,
	.xm-exchange-card-anim {
		animation: xm-hero-fade 250ms ease both;
	}

	.xm-online-dot::before {
		animation: none;
	}

	.xm-service-info__link {
		transition: none;
	}

	.xm-service-info__link:active {
		transform: none;
	}
}

/* PremiumBox homepage exchange table overrides. */
/* ─────────────────────────────────────────────────────────────────
   Exchange table — Apple-style redesign
   ───────────────────────────────────────────────────────────────── */

/* Reset and normalise plugin elements */
.xm-home-exchange__card .xchange_table_wrap,
.xm-home-exchange__card .homechange,
.xm-home-exchange__card .xchange_type_table {
  width: 100%;
  max-width: none;
  margin: 0;
}

.xm-home-exchange__card .xchange_type_table {
  color: var(--xm-ink);
  font-family: var(--xm-font-body) !important;
  font-size: 1rem;
  line-height: 1.4;
}

.xm-home-exchange__card .xchange_type_table_ins {
  display: grid;
  gap: 0.625rem;
}

.xm-home-exchange__card .homechange > :first-child { margin-top: 0; }
.xm-home-exchange__card .homechange > :last-child  { margin-bottom: 0; }

/* ── Two-column layout: category picker + rate table ── */
.xm-home .xchange_type_table.tbl4 .xtt_icon_wrap,
.xm-home .xchange_type_table.tbl4 .xtt_table_body_wrap {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(16rem, 0.48fr) minmax(24rem, 1.12fr);
  gap: 0.75rem;
  border-radius: 1rem;
  background: transparent;
}

.xm-home .xchange_type_table.tbl4 .xtt_left_col_icon,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_icon,
.xm-home .xchange_type_table.tbl4 .xtt_left_col_table,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_table {
  width: auto;
  min-width: 0;
}

/* ── Category picker panel ── */
.xm-home .xchange_type_table.tbl4 .xtt_left_col_icon_ins,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_icon_ins {
	display: flex !important;
	flex-wrap: wrap;
	min-width: 0;
	gap: 0.125rem;
	padding: 0.1875rem;
	border: 0;
	border-radius: 0.875rem;
	background: color-mix(in srgb, var(--xm-ink) 3%, transparent);
	box-shadow: none;
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
}

html.dark .xm-home .xchange_type_table.tbl4 .xtt_left_col_icon_ins,
html.dark .xm-home .xchange_type_table.tbl4 .xtt_right_col_icon_ins {
	background: color-mix(in srgb, var(--xm-surface-raised) 78%, transparent);
}

/* ── Rate table panel ── */
.xm-home .xchange_type_table.tbl4 .xtt_left_col_table_ins,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_table_ins {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--xm-line) 78%, transparent);
  border-radius: 1rem;
  padding: 0.375rem;
  background: color-mix(in srgb, var(--xm-surface) 88%, transparent);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.62),
    0 1px 2px rgb(18 18 18 / 0.03);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.xm-home .xchange_type_table.tbl4 .xtt_icon_wrap {
  margin-bottom: 0;
  font-size: 0.8125rem;
}

/* ── Category tab buttons ── */
.xm-home .xchange_type_table.tbl4 .tbl_icon {
  width: auto !important;
  height: auto !important;
  flex: none !important;
  min-width: 0;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  cursor: pointer;
}

.xm-home .xchange_type_table.tbl4 .tbl_icon_ins {
	display: flex;
	min-height: 1.875rem;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	border: 0;
	border-radius: 0.625rem;
	padding: 0.25rem 0.625rem;
	background: transparent;
	color: var(--xm-muted);
  font-size: 0.71875rem;
  font-weight: 680;
  letter-spacing: 0em;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    border-color     160ms ease,
    color            160ms ease,
    box-shadow       160ms ease,
    transform        120ms var(--xm-ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.xm-home .xchange_type_table.tbl4 .tbl_icon:not(.active) .tbl_icon_ins:hover {
		background: color-mix(in srgb, var(--xm-ink) 5%, transparent);
		color: var(--xm-ink);
		transform: translateY(-1px);
	}
}

.xm-home .xchange_type_table.tbl4 .tbl_icon_abs {
	width: 0;
	height: 0.375rem;
	flex: 0 0 auto;
	border-radius: 999px;
	background: transparent;
	transition: width 160ms ease, margin-inline-end 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

/* Active tab — minimal lifted pill with a status dot */
.xm-home .xchange_type_table.tbl4 .tbl_icon.active .tbl_icon_ins {
	background: var(--xm-surface);
	color: var(--xm-ink);
  box-shadow:
    0 1px 2px rgb(18 18 18 / 0.06),
    0 6px 18px rgb(18 18 18 / 0.07),
    inset 0 1px 0 rgb(255 255 255 / 0.72);
}

.xm-home .xchange_type_table.tbl4 .tbl_icon.active .tbl_icon_abs {
	width: 0.375rem;
	margin-inline-end: 0.375rem;
	background: var(--xm-accent);
	box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--xm-accent) 16%, transparent);
}

html.dark .xm-home .xchange_type_table.tbl4 .tbl_icon.active .tbl_icon_ins {
  background: color-mix(in srgb, var(--xm-surface) 90%, #fff 6%);
  color: var(--xm-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 4px 12px rgb(0 0 0 / 0.28);
}

.xm-home .xchange_type_table.tbl4 .tbl_icon_ins:active {
  transform: scale(0.96);
}

/* ── Column headers ── */
.xm-home .xchange_type_table.tbl4 .xtt_table_title_wrap {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: minmax(16rem, 0.88fr) minmax(24rem, 1.12fr);
  gap: 0.75rem;
  margin: 0;
}

.xm-home .xchange_type_table.tbl4 .xtt_left_col_title,
.xm-home .xchange_type_table.tbl4 .xtt_left_incol_title,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_title,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title {
  display: grid !important;
  width: auto !important;
  min-height: 2.125rem;
  align-items: center;
  column-gap: 0.75rem;
  border-bottom: 0;
  margin: 0 0 0.25rem;
  padding-block: 0.25rem;
  padding-inline: 0.75rem;
}

/* Header columns match row grid (icon col + content cols) */
.xm-home .xchange_type_table.tbl4 .xtt_left_col_title,
.xm-home .xchange_type_table.tbl4 .xtt_left_incol_title {
  grid-template-columns: minmax(0, 1fr);
}

.xm-home .xchange_type_table.tbl4 .xtt_right_col_title,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title {
  grid-template-columns: minmax(10rem, 1fr) 5.75rem 5.75rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title1,
.xm-home .xchange_type_table.tbl4 .xtt_table_title2,
.xm-home .xchange_type_table.tbl4 .xtt_table_title3,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4 {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title1 > span,
.xm-home .xchange_type_table.tbl4 .xtt_table_title2 > span,
.xm-home .xchange_type_table.tbl4 .xtt_table_title3 > span,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4 > span {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 0.375rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title1 > span,
.xm-home .xchange_type_table.tbl4 .xtt_table_title2 > span {
  justify-content: flex-start;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title3 > span,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4 > span {
  justify-content: flex-end;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title1 > span::before,
.xm-home .xchange_type_table.tbl4 .xtt_table_title2 > span::before,
.xm-home .xchange_type_table.tbl4 .xtt_table_title3 > span::before,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4 > span::before {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  background: var(--xm-accent);
  content: "";
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title1 > span::before {
  -webkit-mask-image: url('./assets/icons/material-symbols/upload.svg');
  mask-image: url('./assets/icons/material-symbols/upload.svg');
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title2 > span::before {
  -webkit-mask-image: url('./assets/icons/material-symbols/download.svg');
  mask-image: url('./assets/icons/material-symbols/download.svg');
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title3 > span::before {
  -webkit-mask-image: url('./assets/icons/material-symbols/sync_alt.svg');
  mask-image: url('./assets/icons/material-symbols/sync_alt.svg');
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title4 > span::before {
  -webkit-mask-image: url('./assets/icons/material-symbols/account_balance_wallet.svg');
  mask-image: url('./assets/icons/material-symbols/account_balance_wallet.svg');
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title3 > span::before,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4 > span::before {
  width: 0.75rem;
  height: 0.75rem;
  background: currentColor;
  opacity: 0.72;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title1 > span::before,
.xm-home .xchange_type_table.tbl4 .xtt_table_title2 > span::before {
  opacity: 0.9;
}

.xm-home .xchange_type_table.tbl4 .xtt_left_col_title > .xtt_table_title1,
.xm-home .xchange_type_table.tbl4 .xtt_left_incol_title > .xtt_table_title1 {
  grid-column: 1;
}

.xm-home .xchange_type_table.tbl4 .xtt_right_col_title > .xtt_table_title2,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title > .xtt_table_title2 {
  grid-column: 1;
}

.xm-home .xchange_type_table.tbl4 .xtt_right_col_title > .xtt_table_title3,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title > .xtt_table_title3 {
  grid-column: 2;
}

.xm-home .xchange_type_table.tbl4 .xtt_right_col_title > .xtt_table_title4,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title > .xtt_table_title4 {
  grid-column: 3;
  margin-right: 0 !important;
}

.xm-home .xchange_type_table.tbl4 .xtt_left_col_title > .clear,
.xm-home .xchange_type_table.tbl4 .xtt_left_incol_title > .clear,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_title > .clear,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title > .clear,
.xm-home .xchange_type_table.tbl4 .xtt_table_title_wrap > .clear {
  display: none !important;
}

/* Column title text — primary (currency name column) */
.xm-home .xchange_type_table.tbl4 .xtt_table_title1,
.xm-home .xchange_type_table.tbl4 .xtt_table_title2 {
  text-align: start;
  color: var(--xm-ink);
  font-family: var(--xm-font-display);
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1.3;
}

/* Column title text — secondary (rate / reserve) */
.xm-home .xchange_type_table.tbl4 .xtt_table_title3,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4 {
  padding-inline-start: 0;
  color: var(--xm-muted);
  font-size: 0.6875rem;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-align: end;
  text-transform: none;
}

/* ── Scroll area ── */
.xm-home .xchange_type_table.tbl4 .scroll-wrapper,
.xm-home .xchange_type_table.tbl4 #xtt_left_col_html,
.xm-home .xchange_type_table.tbl4 #xtt_right_col_html {
  max-height: 26rem;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-color: color-mix(in srgb, var(--xm-line) 80%, transparent) transparent;
  scrollbar-width: thin;
  padding: 0.125rem;
}

/* ── Row base ── */
.xm-home .xtt_one_line_left,
.xm-home .xtt_one_line_right,
.xm-home .tbl_icon_ins {
  border-radius: 0.75rem;
  transition:
    background-color 160ms ease,
    border-color     160ms ease,
    color            160ms ease,
    box-shadow       160ms ease,
    transform        120ms var(--xm-ease-out);
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_left,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_right {
  position: relative;
  display: grid !important;
  min-height: 3.375rem;
  align-items: center;
  column-gap: 0.75rem;
  margin-block: 0;
  border: 0 !important;
  border-radius: 0.8125rem;
  padding: 0.4375rem 0.75rem;
  background: transparent;
  cursor: pointer;
  font-size: 0.9375rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_left {
  grid-template-columns: 2.125rem minmax(0, 1fr);
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_right {
  grid-template-columns: 2.125rem minmax(10rem, 1fr) 5.75rem 5.75rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_abs,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_abs2,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_left > .clear,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_right > .clear {
  display: none !important;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_ico_left,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_ico_right,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_name_left,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_name_right,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs_right,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv_right {
  float: none !important;
  width: auto !important;
  min-width: 0;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_ico_left,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_ico_right {
  grid-column: 1;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_name_left,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_name_right {
  grid-column: 2;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs_right {
  grid-column: 3;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv_right {
  grid-column: 4;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs_right,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv_right {
  text-align: end;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv {
  display: block;
  width: 100%;
  text-align: inherit;
}

.xm-home .xchange_type_table.tbl4 .js_item_right,
.xm-home .xchange_type_table.tbl4 .js_item_left {
  display: block;
  border: 0 !important;
  color: inherit;
  text-decoration: none;
}

/* Row hover */
@media (hover: hover) and (pointer: fine) {
	.xm-home .xchange_type_table.tbl4 .js_item_left:not(.active) .xtt_one_line_left:hover,
	.xm-home .xchange_type_table.tbl4 .js_item_right:not(.active) .xtt_one_line_right:hover {
		background: #57c82d20;
		box-shadow: inset 0 0 0 1px rgb(87 200 45 / 0.58);
	}

  .xm-home .xchange_type_table.tbl4 .js_item_left:not(.active) .xtt_one_line_left:hover .xtt_one_line_name,
  .xm-home .xchange_type_table.tbl4 .js_item_right:not(.active) .xtt_one_line_right:hover .xtt_one_line_name {
    color: var(--xm-ink);
  }
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_left:active,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_right:active {
  transform: scale(0.985);
}

/* ── Active rows — lifted surface with green rail ── */
.xm-home .xchange_type_table.tbl4 .js_item_left.active .xtt_one_line_left {
  background: var(--xm-accent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    0 1px 2px rgb(18 18 18 / 0.10),
    0 8px 22px color-mix(in srgb, var(--xm-accent) 28%, transparent);
}

.xm-home .xchange_type_table.tbl4 .js_item_right.active .xtt_one_line_right {
  background: color-mix(in srgb, var(--xm-accent) 10%, var(--xm-surface));
  box-shadow:
    0 1px 2px rgb(18 18 18 / 0.04),
    0 6px 18px color-mix(in srgb, var(--xm-accent) 12%, transparent);
}

.xm-home .xchange_type_table.tbl4 .js_item_left.active .xtt_one_line_left::before,
.xm-home .xchange_type_table.tbl4 .js_item_right.active .xtt_one_line_right::before {
  position: absolute;
  top: 0.625rem;
  bottom: 0.625rem;
  left: 0.375rem;
  width: 0.1875rem;
  border-radius: 999px;
  background: var(--xm-accent);
  box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--xm-accent) 13%, transparent);
  content: "";
}

.xm-home .xchange_type_table.tbl4 .js_item_left.active .xtt_one_line_left::before {
  background: #fff;
  box-shadow: 0 0 0 0.1875rem rgb(255 255 255 / 0.18);
}

.xm-home .xchange_type_table.tbl4 .js_item_left.active .xtt_one_line_name,
.xm-home .xchange_type_table.tbl4 .js_item_left.active .xtt_one_line_curs {
  color: #fff !important;
}

.xm-home .xchange_type_table.tbl4 .js_item_left.active .xtt_one_line_curs {
  opacity: 0.82;
}

/* Focus rings */
.xm-home .xchange_type_table.tbl4 .js_item_right:focus-visible .xtt_one_line_right,
.xm-home .xchange_type_table.tbl4 .js_item_left:focus-visible .xtt_one_line_left,
.xm-home .xchange_type_table.tbl4 .tbl_icon:focus-visible .tbl_icon_ins {
  outline: 2px solid var(--xm-accent);
  outline-offset: 2px;
}

/* ── Row typography ── */
.xm-home .xchange_type_table.tbl4 .xtt_one_line_name,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv {
  font-family: var(--xm-font-body) !important;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_name {
  font-family: var(--xm-font-display) !important;
  font-size: 0.84375rem;
  font-weight: 780;
  letter-spacing: -0.008em;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv {
  color: var(--xm-muted);
  font-size: 0.75rem;
  font-weight: 660;
  letter-spacing: -0.005em;
}

/* ── Swap icon between columns ── */
.xm-home .xchange_type_table.tbl4 .xtt_change_ico {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-repeat: no-repeat !important;
  background-color: var(--xm-surface);
  background-position: center;
  box-shadow:
    0 0 0 0.125rem var(--xm-surface),
    0 1px 3px rgb(18 18 18 / 0.1),
    0 4px 10px rgb(18 18 18 / 0.07);
}

html.dark .xm-home .xchange_type_table.tbl4 .xtt_change_ico {
  background-color: var(--xm-surface-raised);
  box-shadow:
    0 0 0 0.125rem var(--xm-surface-raised),
    0 1px 3px rgb(0 0 0 / 0.28);
}

/* ── Active row text colours ── */
.xm-home .js_item_left.active .xtt_one_line_left,
.xm-home .js_item_right.active .xtt_one_line_right,
.xm-home .tbl_icon.active .tbl_icon_ins {
  color: var(--xm-ink);
}

.xm-home .js_item_left.active .xtt_one_line_left {
  color: #fff;
}

/* ── Responsive: stack to 1-col on narrow screens ── */
@media (max-width: 44rem) {
  .xm-home .xchange_type_table.tbl4 .xtt_icon_wrap,
  .xm-home .xchange_type_table.tbl4 .xtt_table_title_wrap,
  .xm-home .xchange_type_table.tbl4 .xtt_table_body_wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .xm-home .xchange_type_table.tbl4 .xtt_left_col_icon_ins,
  .xm-home .xchange_type_table.tbl4 .xtt_right_col_icon_ins {
    flex-direction: row;
  }

  .xm-home .xchange_type_table.tbl4 .tbl_icon {
    flex: calc(33.333% - 0.375rem) !important;
  }

  .xm-home .xchange_type_table.tbl4 .xtt_right_col_title,
  .xm-home .xchange_type_table.tbl4 .xtt_right_incol_title {
    grid-template-columns: minmax(6.5rem, 1fr) 4.25rem 3.75rem;
  }

  .xm-home .xchange_type_table.tbl4 .xtt_one_line_right {
    grid-template-columns: 2.125rem minmax(6.5rem, 1fr) 4.25rem 3.75rem;
  }

  .xm-home .xchange_type_table.tbl4 .xtt_table_title3,
  .xm-home .xchange_type_table.tbl4 .xtt_table_title4,
  .xm-home .xchange_type_table.tbl4 .xtt_one_line_curs_right,
  .xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv_right {
    display: block !important;
  }
}

/* PremiumBox injects unlayered legacy exchange CSS, so these scoped overrides stay unlayered too. */
.xm-home .xchange_type_table.tbl4 .xtt_one_line_left .xtt_one_line_name,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_right .xtt_one_line_name {
font: 780 0.84375rem/1.35 var(--xm-font-display) !important;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv {
font: 660 0.75rem/1.35 var(--xm-font-body) !important;
}

.xm-home .xchange_type_table.tbl4 .xtt_change_ico {
background-repeat: no-repeat !important;
}

@media (max-width: 39.99rem) {
.xm-home .xchange_type_table.tbl4 .xtt_table_wrap {
  padding: 0.5rem !important;
}

.xm-home .xchange_type_table.tbl4 .xtt_icon_wrap,
.xm-home .xchange_type_table.tbl4 .xtt_table_title_wrap,
.xm-home .xchange_type_table.tbl4 .xtt_table_body_wrap {
  grid-template-columns: minmax(0, 1fr);
}

.xm-home .xchange_type_table.tbl4 .xtt_left_col_icon_ins,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_icon_ins {
  flex-wrap: wrap;
  border-radius: 0.75rem;
}

.xm-home .xchange_type_table.tbl4 .tbl_icon {
  flex: 1 1 calc(33.333% - 0.375rem);
}

.xm-home .xchange_type_table.tbl4 .xtt_left_col_table_ins,
.xm-home .xchange_type_table.tbl4 .xtt_right_col_table_ins {
  padding: 0.375rem 0.25rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_right_col_title,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title {
  grid-template-columns: minmax(6rem, 1fr) 4rem 3.5rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_right {
  grid-template-columns: 2rem minmax(6rem, 1fr) 4rem 3.5rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_right_col_title,
.xm-home .xchange_type_table.tbl4 .xtt_right_incol_title {
  grid-template-columns: minmax(6rem, 1fr) 4rem 3.5rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_left,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_right {
  min-height: 3.375rem;
  padding-inline: 0.5rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_one_line_name,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv {
  font-size: 0.75rem;
}

.xm-home .xchange_type_table.tbl4 .xtt_table_title3,
.xm-home .xchange_type_table.tbl4 .xtt_table_title4,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_curs_right,
.xm-home .xchange_type_table.tbl4 .xtt_one_line_reserv_right {
  display: block !important;
}

}

@media (hover: hover) and (pointer: fine) {
.xm-home .xtt_one_line_left:hover,
.xm-home .xtt_one_line_right:hover {
  background: var(--xm-accent-soft);
}
}
