/* Crypto Exchanger — базовые стили (минимальные, подстрой под тему) */
.cx-exchange, .cx-order-card {
	max-width: 480px;
	margin: 0 auto;
	padding: 20px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
}
.cx-exchange h3, .cx-order-card h3 { margin-top: 0; }
.cx-row { margin-bottom: 14px; }
.cx-row label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.cx-pair { display: flex; gap: 8px; }
.cx-pair input { flex: 1; }
.cx-coin-wrap { display: inline-flex; align-items: center; gap: 6px; }
.cx-coin-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cx-coin-name { font-weight: 600; font-size: 14px; }

/* Широкая форма с двумя колонками и плитками */
.cx-exchange-wide { max-width: 940px; }
.cx-sides { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px; align-items: start; }
.cx-swap { align-self: center; text-align: center; color: #9ca3af; font-size: 18px; }
@media (max-width: 720px) { .cx-sides { grid-template-columns: 1fr; } .cx-swap { display: none; } }
.cx-side-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cx-side-title { font-weight: 700; font-size: 16px; }
.cx-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.cx-tab { border: 0; background: #f1f5f9; color: #475569; border-radius: 999px; padding: 4px 10px; font-size: 11px; cursor: pointer; }
.cx-tab.active { background: #ea580c; color: #fff; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-bottom: 12px; }
.cx-tile { border: 1px solid transparent; background: transparent; border-radius: 12px; padding: 6px 2px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cx-tile:hover { background: #f8fafc; }
.cx-tile.active { border-color: #ea580c; background: #fff7ed; }
.cx-tile-ic { width: 34px; height: 34px; display: grid; place-items: center; }
.cx-tile-ic img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.cx-tile-ph { width: 34px; height: 34px; border-radius: 50%; background: #64748b; color: #fff; display: grid; place-items: center; font-weight: 700; }
.cx-tile-lbl { font-size: 10px; color: #475569; text-align: center; line-height: 1.1; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-tile-more .cx-tile-ic { color: #ea580c; font-size: 18px; }
.cx-amount-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line, #e3e3e3); border-radius: 12px; padding: 12px 14px; }
.cx-amount-box input { flex: 1; border: 0; font-size: 20px; background: transparent; color: inherit; outline: none; }
@media (prefers-color-scheme: dark) {
	.cx-tab { background: #273244; color: #cbd5e1; }
	.cx-tab.active { background: #ea580c; color: #fff; }
	.cx-tile:hover { background: #1f2733; }
	.cx-tile.active { background: #2a1b10; }
	.cx-tile-lbl { color: #cbd5e1; }
	.cx-amount-box { border-color: #334155; }
}
.cx-exchange input, .cx-exchange select {
	padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; width: 100%;
	box-sizing: border-box;
}
.cx-rate { font-size: 13px; color: #777; margin: 8px 0; min-height: 18px; }
.cx-btn {
	width: 100%; padding: 12px; border: 0; border-radius: 8px;
	background: #2563eb; color: #fff; font-size: 16px; cursor: pointer;
}
.cx-btn:hover { background: #1d4ed8; }
.cx-btn:disabled { background: #9ca3af; cursor: default; }
.cx-error { color: #dc2626; font-size: 14px; margin-top: 10px; min-height: 18px; }
.cx-limits, .cx-reserve { font-size: 12px; color: #6b7280; margin-top: 6px; }
.cx-city-label { font-size: 13px; color: #555; margin: 10px 0 6px; }
.cx-city-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cx-city {
	padding: 8px 14px; border: 1px solid #ccc; border-radius: 8px; background: #fff;
	cursor: pointer; font-size: 14px;
}
.cx-city.active { border-color: #ea580c; color: #ea580c; background: #fff7ed; }
.cx-service {
	display: flex; align-items: center; gap: 8px; padding: 10px 12px;
	background: #f8fafc; border-radius: 8px; margin-bottom: 8px; font-size: 14px;
}
.cx-service input { width: auto; }
.cx-fee { color: #ea580c; font-size: 13px; }
.cx-turnstile { margin: 12px 0; min-height: 65px; }
.cx-agreements { margin: 12px 0; font-size: 13px; color: #444; }
.cx-aml { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; line-height: 1.4; }
.cx-aml input { margin-top: 3px; width: auto; }
.cx-agree-line { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.cx-agree-line input { width: auto; }

.cx-rates { width: 100%; border-collapse: collapse; }
.cx-rates th, .cx-rates td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: left; }

.cx-pay { margin-top: 16px; padding: 14px; background: #f8fafc; border-radius: 8px; }
.cx-amount { font-size: 20px; font-weight: 700; color: #111; }
.cx-address { font-family: monospace; word-break: break-all; background: #fff; padding: 8px; border: 1px dashed #ccc; border-radius: 6px; }
.cx-note { font-size: 12px; color: #b45309; }
.cx-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 12px 0; }
.cx-qr img { border-radius: 10px; }
.cx-qr-hint { font-size: 12px; color: #6b7280; text-align: center; }
.cx-status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 13px; background: #f1f5f9; }
.cx-status-paid, .cx-status-done { background: #dcfce7; color: #166534; }
.cx-status-expired { background: #fee2e2; color: #991b1b; }
.cx-status-confirming { background: #fef9c3; color: #854d0e; }
.cx-tx { font-family: monospace; font-size: 12px; word-break: break-all; color: #666; }
.cx-status-aml_review, .cx-status-on_hold { background: #fef3c7; color: #92400e; }
.cx-status-blocked { background: #fee2e2; color: #991b1b; }

/* Модальное окно (AML / блокировка) */
.cx-modal-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,0.55);
	display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 16px;
}
.cx-modal-box {
	background: #fff; border-radius: 12px; max-width: 420px; width: 100%;
	padding: 24px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.cx-modal-box h3 { margin-top: 0; }
.cx-modal-support { font-size: 14px; color: #374151; margin-top: 12px; }
.cx-modal-links { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.cx-modal-link {
	display: block; padding: 10px; border: 1px solid #e5e7eb; border-radius: 8px;
	text-decoration: none; color: #2563eb; font-weight: 600;
}
.cx-modal-link:hover { background: #f8fafc; }

/* =====================================================================
 * Форма обмена в стиле bulldog — стили живут В ПЛАГИНЕ (v0.15.1+).
 * Все правила с префиксом #cx-exchange, поэтому старый/закешированный CSS
 * темы или другие стили сайта их не перебивают.
 * ===================================================================== */
#cx-exchange {
	--cx-accent: #f27540; --cx-accent-2: #ef5310; --cx-ink: #1a1a1a; --cx-ink-soft: #3a3a3e; --cx-line: #e2e1e1;
	--cx-font-head: "Jost", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--cx-font-body: "Jost", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	max-width: none; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 30px; overflow: hidden;
	background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.08); color: var(--cx-ink); font-family: var(--cx-font-body); line-height: 1.5; text-align: left;
}
[dir="rtl"] #cx-exchange { text-align: right; }
/* Глушим старые хаки темы (подмена заголовков, стрелки в селекторе и т.п.) */
#cx-exchange .cx-side-title::before, #cx-exchange .cx-side-title::after, #cx-exchange .cx-coin-wrap::before { content: none !important; display: none !important; }
#cx-exchange input[type="radio"], #cx-exchange input[type="checkbox"] { padding: 0; box-shadow: none; outline: none; }
#cx-exchange p { margin-left: 0; margin-right: 0; }
#cx-exchange *, #cx-exchange *::before, #cx-exchange *::after { box-sizing: border-box; }

/* Две колонки с вертикальным разделителем */
#cx-exchange .cx-sides { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--cx-line); }
#cx-exchange .cx-side { padding: 32px 32px 34px; min-width: 0; }
#cx-exchange .cx-side-take { border-left: 1px solid var(--cx-line); }
#cx-exchange .cx-swap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; background: #fdece3; color: var(--cx-accent); display: grid; place-items: center; cursor: pointer; font-size: 0; transition: background .15s; }
#cx-exchange .cx-swap:hover { background: #fbdccb; }
#cx-exchange .cx-swap.cx-shake { animation: cxShake .35s; }
@keyframes cxShake { 0%,100% { transform: translate(-50%,-50%); } 25% { transform: translate(-58%,-50%); } 75% { transform: translate(-42%,-50%); } }

/* Заголовок + вкладки валют */
#cx-exchange .cx-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
#cx-exchange .cx-side-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cx-font-head); font-weight: 600; font-size: 25px; line-height: 1; color: var(--cx-ink); letter-spacing: 0; }
#cx-exchange .cx-arrow { display: inline-flex; align-items: center; color: var(--cx-accent); line-height: 1; }
#cx-exchange .cx-arrow-svg { display: block; width: 16px; height: 22px; }
#cx-exchange .cx-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
#cx-exchange .cx-tab { height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: #f3f3f3; color: #7a7a7a; font-family: var(--cx-font-body); font-size: 13px; font-weight: 500; line-height: 28px; cursor: pointer; }
#cx-exchange .cx-tab:hover { color: var(--cx-ink); }
#cx-exchange .cx-tab.active { background: var(--cx-accent); color: #fff; }

/* Плитки: рамка-карточка с иконкой + подпись снизу (7 в ряд) */
#cx-exchange .cx-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px 16px; margin: 0 0 30px; }
#cx-exchange .cx-tile { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; min-width: 0; font-family: var(--cx-font-body); }
#cx-exchange .cx-tile:hover { background: transparent; }
#cx-exchange .cx-tile-ic { width: 100%; max-width: 60px; aspect-ratio: 1 / 1; height: auto; display: grid; place-items: center; background: #fff; border: 1px solid var(--cx-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; color: var(--cx-accent); }
#cx-exchange .cx-tile:hover .cx-tile-ic { border-color: #cfcdcb; }
#cx-exchange .cx-tile.active .cx-tile-ic { border-color: var(--cx-accent); box-shadow: inset 0 0 0 1px var(--cx-accent); }
#cx-exchange .cx-tile-ic img { width: 60%; height: 60%; border-radius: 50%; object-fit: contain; }
#cx-exchange .cx-tile-ph { width: 60%; height: 60%; border-radius: 50%; background: #eef0f3; color: #6b7280; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
#cx-exchange .cx-tile-lbl { display: block; width: 100%; max-width: 76px; margin-top: 8px; font-size: 10px; line-height: 1.2; color: #7a7a7a; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cx-exchange .cx-tile.active .cx-tile-lbl { color: var(--cx-accent); }
#cx-exchange .cx-tile-more .cx-tile-ic { border-color: var(--cx-line); box-shadow: none; }
#cx-exchange .cx-tile-more .cx-tile-lbl { color: var(--cx-ink); font-weight: 600; }

/* Поле суммы + селектор монеты */
#cx-exchange .cx-amount-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 62px; padding: 6px 6px 6px 20px; margin: 0; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; }
#cx-exchange .cx-amount-box input { flex: 1 1 auto; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; font-family: var(--cx-font-body); font-size: 20px; font-weight: 400; color: var(--cx-ink); -moz-appearance: textfield; }
#cx-exchange .cx-amount-box input::placeholder { color: #7a7a7a; opacity: 1; }
#cx-exchange .cx-amount-box input::-webkit-outer-spin-button, #cx-exchange .cx-amount-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#cx-exchange .cx-coin-wrap { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: #f3f3f3; border-radius: 10px; }
#cx-exchange .cx-coin-wrap::after { content: none; }
#cx-exchange .cx-coin-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
#cx-exchange .cx-coin-name { font-family: var(--cx-font-head); font-size: 17px; font-weight: 600; color: var(--cx-ink); text-transform: uppercase; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
#cx-exchange .cx-chev { width: 8px; height: 8px; border-right: 1.6px solid var(--cx-ink); border-bottom: 1.6px solid var(--cx-ink); transform: rotate(45deg); margin: -5px 2px 0 4px; }

/* Min/Max · Reserve · курс · Fee */
#cx-exchange .cx-limits, #cx-exchange .cx-reserve { margin: 10px 0 0; font-size: 12px; color: #7a7a7a; }
#cx-exchange .cx-limits .k, #cx-exchange .cx-reserve .k { color: var(--cx-ink); font-weight: 600; margin-right: 2px; }
#cx-exchange .cx-limits .sep { color: var(--cx-ink); margin: 0 2px; }
#cx-exchange .cx-mm { color: #7a7a7a; cursor: pointer; border-bottom: 1px dashed transparent; transition: color .15s, border-color .15s; }
#cx-exchange .cx-mm:hover { color: var(--cx-accent); border-bottom-color: var(--cx-accent); }
#cx-exchange .cx-rate { margin: 6px 0 0; text-align: right; color: var(--cx-ink); min-height: 0; }
#cx-exchange .cx-rate-line { font-family: var(--cx-font-head); font-size: 16px; font-weight: 600; }
#cx-exchange .cx-fee-line { font-family: var(--cx-font-head); font-size: 16px; font-weight: 600; margin-top: 2px; }
#cx-exchange .cx-fee-line .k { font-size: 12px; }

/* Города (в колонке Take) */
#cx-exchange .cx-cities:empty { display: none; }
#cx-exchange .cx-city-label { display: none; }
#cx-exchange .cx-city-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
#cx-exchange .cx-city { padding: 9px 14px; margin: 0; background: #fff; border: 1px solid var(--cx-line); border-radius: 10px; color: #4a4a4a; font-family: var(--cx-font-body); font-size: 16px; font-weight: 400; cursor: pointer; }
#cx-exchange .cx-city:hover { border-color: #cfcdcb; }
#cx-exchange .cx-city.active { border-color: var(--cx-accent); color: var(--cx-accent); background: #fff; }

/* Нижняя часть */
#cx-exchange .cx-lower { padding: 36px 32px 34px; }
#cx-exchange .cx-fields:empty { display: none; }
#cx-exchange .cx-notice { margin: 54px 0 66px; padding: 0 28px; font-size: 15px; line-height: 1.15; color: var(--cx-ink); }
#cx-exchange .cx-notice ol { margin: 0; padding: 0; list-style: decimal inside; }
#cx-exchange .cx-notice li { margin: 0; padding: 0; }
#cx-exchange .cx-notice a, #cx-exchange .cx-notice b { color: var(--cx-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#cx-exchange .cx-notice .cx-notice-faq, #cx-exchange .cx-notice .cx-notice-faq a { font-weight: 400; text-decoration: none; color: inherit; }
#cx-exchange .cx-notice .cx-notice-faq a:hover { text-decoration: underline; }
#cx-exchange .cx-notice[data-mode="cash"]:not(.cx-on) { display: none; }
#cx-exchange .cx-field { margin: 0 0 22px; }
#cx-exchange .cx-field input, #cx-exchange .cx-field select { display: block; width: 100%; height: 62px; margin: 0; padding: 0 30px; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; box-shadow: none; outline: none; font-family: var(--cx-font-body); font-size: 15px; color: var(--cx-ink); }
#cx-exchange .cx-field input::placeholder { color: #7a7a7a; opacity: 1; }
#cx-exchange .cx-field input:focus, #cx-exchange .cx-field select:focus { border-color: var(--cx-accent); }
#cx-exchange .cx-field-msg { margin: 6px 4px 0; font-size: 13px; line-height: 1.35; color: var(--cx-muted, #848484); }
#cx-exchange .cx-field-msg:empty { display: none; }
#cx-exchange .cx-field-bad input { border-color: #e02626; }
#cx-exchange .cx-field-bad .cx-field-msg { color: #e02626; }
#cx-exchange .cx-field-good .cx-field-msg { color: #3ea589; }

/* Доп. услуги — 3 колонки с тумблерами */
#cx-exchange .cx-services:empty { display: none; }
#cx-exchange .cx-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 32px; }
#cx-exchange .cx-service { display: flex; align-items: center; gap: 14px; min-height: 66px; margin: 0; padding: 16px 22px; background: #f6f5f4; border: 0; border-radius: 14px; font-size: 14px; line-height: 1.35; color: var(--cx-ink); cursor: pointer; }
#cx-exchange .cx-service input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 36px; width: 36px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #e2e1e1; position: relative; cursor: pointer; transition: background .15s; }
#cx-exchange .cx-service input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
#cx-exchange .cx-service input[type="checkbox"]:checked { background: var(--cx-accent); }
#cx-exchange .cx-service input[type="checkbox"]:checked::after { left: 18px; }
#cx-exchange .cx-fee { color: var(--cx-accent); font-size: 14px; font-weight: 400; }

/* AML · согласия · капча + кнопка */
#cx-exchange .cx-bottom { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 30px; align-items: center; margin: 0; }
#cx-exchange .cx-bottom-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#cx-exchange .cx-bottom-aml { gap: 18px; }
#cx-exchange .cx-aml, #cx-exchange .cx-agree-line { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 1.45; color: var(--cx-ink); cursor: pointer; }
#cx-exchange .cx-aml a, #cx-exchange .cx-agree-line a { color: var(--cx-accent); text-decoration: underline; text-underline-offset: 2px; }
#cx-exchange .cx-aml b, #cx-exchange .cx-agree-line b { color: var(--cx-accent); font-weight: 400; text-decoration: underline; }
#cx-exchange .cx-aml input[type="radio"] { appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--cx-line); border-radius: 50%; background: #fff; cursor: pointer; position: relative; }
#cx-exchange .cx-aml input[type="radio"]:checked { border-color: var(--cx-accent); }
#cx-exchange .cx-aml input[type="radio"]:checked::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--cx-accent); }
#cx-exchange .cx-agree-line input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: 0 0 26px; width: 26px; height: 26px; margin: 0; border: 1.5px solid var(--cx-line); border-radius: 6px; background: #fff; cursor: pointer; }
#cx-exchange .cx-agree-line input[type="checkbox"]:checked { background: var(--cx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--cx-accent); }
#cx-exchange .cx-bottom-action { align-items: stretch; gap: 18px; }
#cx-exchange .cx-turnstile { margin: 0; min-height: 0; }
#cx-exchange .cx-btn { display: block; width: 100%; height: 60px; padding: 0 24px; margin: 0; border: 0; border-radius: 40px; background: var(--cx-accent); color: #fff; font-family: var(--cx-font-body); font-size: 20px; font-weight: 400; cursor: pointer; box-shadow: 0 12px 30px rgba(242,117,64,.28); transition: background .15s, transform .1s; }
#cx-exchange .cx-btn:hover { background: var(--cx-accent-2); }
#cx-exchange .cx-btn:active { transform: translateY(1px); }
#cx-exchange .cx-btn:disabled { background: #f4b393; box-shadow: none; cursor: default; }
#cx-exchange .cx-error { color: #e02626; font-size: 14px; margin: 14px 0 0; min-height: 0; text-align: center; }
#cx-exchange .cx-error:empty { display: none; }
#cx-exchange .cx-attention { margin: 30px 0 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--cx-ink); }
#cx-exchange .cx-attention a, #cx-exchange .cx-attention b { color: var(--cx-ink); font-weight: 400; text-decoration: underline; }

[dir="rtl"] #cx-exchange .cx-side-take { border-left: 0; border-right: 1px solid var(--cx-line); }
[dir="rtl"] #cx-exchange .cx-tile-lbl { direction: ltr; }

/* Адаптив формы */
@media (max-width: 1100px) {
	#cx-exchange .cx-grid { gap: 14px 10px; }
	#cx-exchange .cx-bottom { grid-template-columns: 1fr 1fr; }
	#cx-exchange .cx-bottom-action { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	#cx-exchange .cx-sides { grid-template-columns: 1fr; }
	#cx-exchange .cx-side-take { border-left: 0; border-top: 1px solid var(--cx-line); }
	#cx-exchange .cx-swap { top: auto; bottom: auto; position: relative; left: auto; transform: none; margin: -20px auto; grid-row: 2; }
	#cx-exchange .cx-swap.cx-shake { animation: none; }
	#cx-exchange .cx-services { grid-template-columns: 1fr; }
	#cx-exchange .cx-bottom { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
	#cx-exchange .cx-side { padding: 22px 16px 24px; }
	#cx-exchange .cx-lower { padding: 26px 16px; }
	#cx-exchange .cx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	#cx-exchange .cx-side-head { flex-direction: column; align-items: flex-start; }
	#cx-exchange .cx-field input { padding: 0 18px; }
}

/* --- Поля сумм обеих колонок всегда на одном уровне (как в оригинале при «See more») --- */
#cx-exchange .cx-meta { min-width: 0; }
#cx-exchange .cx-meta > .cx-limits:first-child, #cx-exchange .cx-meta > .cx-reserve:first-child { margin-top: 10px; }
@supports (grid-template-rows: subgrid) {
	#cx-exchange .cx-sides { grid-template-rows: auto auto auto auto; }
	#cx-exchange .cx-side { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
	#cx-exchange .cx-side > .cx-grid { align-self: start; }
	#cx-exchange .cx-side > .cx-amount-box { align-self: start; }
	#cx-exchange .cx-side > .cx-meta { align-self: start; }
}
@media (max-width: 860px) {
	#cx-exchange .cx-sides { grid-template-rows: none; }
	#cx-exchange .cx-side { display: block; grid-row: auto; }
}
/* Поле «Получаете» теперь можно редактировать */
#cx-exchange #cx-get-amount { cursor: text; }
#cx-exchange .cx-reserve .cx-mm { cursor: pointer; }

/* --- Выпадающий список монет с поиском --- */
#cx-exchange .cx-amount-box { position: relative; }
#cx-exchange .cx-coin-wrap { cursor: pointer; user-select: none; }
#cx-exchange .cx-coin-wrap:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }
#cx-exchange .cx-chev { transition: transform .2s, margin .2s; }
#cx-exchange .cx-dd-open .cx-chev { transform: rotate(-135deg); margin-top: 4px; }
#cx-exchange .cx-dd { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 8px; background: #f3f2ef; border: 1px solid var(--cx-line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
#cx-exchange .cx-dd[hidden] { display: none; }
#cx-exchange .cx-dd-search { position: relative; margin: 0 0 8px; }
#cx-exchange .cx-dd-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--cx-accent); pointer-events: none; }
#cx-exchange .cx-dd-search input { width: 100%; height: 36px; margin: 0; padding: 0 12px 0 36px; background: #fff; border: 1px solid var(--cx-line); border-radius: 8px; outline: none; box-shadow: none; font-family: var(--cx-font-body); font-size: 14px; color: var(--cx-ink); }
#cx-exchange .cx-dd-search input::placeholder { color: #9a9ca3; opacity: 1; }
#cx-exchange .cx-dd-search input:focus { border-color: var(--cx-accent); }
#cx-exchange .cx-dd-list { list-style: none; margin: 0; padding: 0; max-height: 250px; overflow-y: auto; overscroll-behavior: contain; }
#cx-exchange .cx-dd-list li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 16px; line-height: 20px; color: var(--cx-ink); }
#cx-exchange .cx-dd-list li:hover { background: #e9e8e4; }
#cx-exchange .cx-dd-list li.active { background: var(--cx-accent); color: #fff; }
#cx-exchange .cx-dd-list li img, #cx-exchange .cx-dd-ph { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
#cx-exchange .cx-dd-ph { display: grid; place-items: center; background: #e2e1e1; color: #6b7280; font-size: 12px; font-weight: 600; }
#cx-exchange .cx-dd-list li.active .cx-dd-ph { background: rgba(255,255,255,.3); color: #fff; }
#cx-exchange .cx-dd-empty { color: #9a9ca3; cursor: default; }

/* --- Телефон: как в оригинале — без плиток, вкладок и ⇄; выбор через список --- */
@media (max-width: 767px) {
	#cx-exchange { border-radius: 20px; }
	#cx-exchange .cx-side { padding: 20px 16px 22px; }
	#cx-exchange .cx-side-head { margin: 0 0 16px; }
	#cx-exchange .cx-tabs, #cx-exchange .cx-grid, #cx-exchange .cx-swap { display: none !important; }
	#cx-exchange .cx-side-take { border-top: 1px solid var(--cx-line); }
	#cx-exchange .cx-amount-box { height: 56px; padding: 4px 4px 4px 18px; }
	#cx-exchange .cx-coin-wrap { height: 46px; padding: 0 14px; }
	#cx-exchange .cx-coin-name { font-size: 16px; }
	#cx-exchange .cx-city-btns { margin-top: 16px; gap: 8px; }
	#cx-exchange .cx-city { font-size: 15px; padding: 8px 12px; }
	#cx-exchange .cx-lower { padding: 22px 16px 26px; }
	#cx-exchange .cx-field { margin-bottom: 16px; }
	#cx-exchange .cx-field input, #cx-exchange .cx-field select { height: 56px; padding: 0 18px; }
	#cx-exchange .cx-services { gap: 10px; margin-bottom: 24px; }
	#cx-exchange .cx-attention { font-size: 14px; margin-top: 22px; }
	#cx-exchange .cx-notice { margin: 50px 0 64px; padding: 0 14px; font-size: 15px; }
}

/* =====================================================================
   Страница заявки (стиль bulldog-подобной темы)
   ===================================================================== */
#cx-order.cx-op { --op-ink: #1a1a1a; --op-muted: #848484; --op-line: #e2e1e1; --op-accent: var(--cx-accent, #f27540); --op-soft: #f2f4f7; font-family: var(--cx-font-body, "Jost", "Roboto", sans-serif); color: var(--op-ink); max-width: 1110px; margin: 0 auto; padding: 0; background: none; border: 0; box-shadow: none; text-align: left; }
#cx-order .cx-op-title { margin: 56px 0 64px; font-family: var(--cx-font-head, inherit); font-size: 44px; line-height: 1.2; font-weight: 400; text-align: center; color: var(--op-ink); letter-spacing: -.5px; }
#cx-order .cx-op-title span { color: var(--op-accent); }
#cx-order .cx-op-card { background: #fff; border-radius: 34px; overflow: hidden; }
#cx-order .cx-op-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
#cx-order .cx-op-side { background: #fcfcfd; border-right: 1px solid var(--op-line); }
#cx-order .cx-op-side-h { display: flex; align-items: center; justify-content: center; height: 84px; padding: 0 16px; background: #eef0f5; font-size: 24px; line-height: 1.2; text-align: center; }
#cx-order .cx-op-side-b { padding: 30px 36px 36px; }
#cx-order .cx-op-kv { display: flex; flex-direction: column; gap: 4px; margin: 0 0 24px; font-size: 15px; line-height: 19px; }
#cx-order .cx-op-kv > span, #cx-order .cx-op-kv > div > span { color: var(--op-ink); }
#cx-order .cx-op-kv strong { font-size: 17px; font-weight: 400; line-height: 23px; overflow-wrap: anywhere; }
#cx-order .cx-op-kv b { font-size: 17px; font-weight: 400; color: var(--op-muted); }
#cx-order .cx-op-kv em { font-style: normal; color: var(--op-muted); }
#cx-order .cx-op-id { padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid #d9d9d9; }
#cx-order .cx-op-kv-ic { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 10px; }
#cx-order .cx-op-kv-ic > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#cx-order .cx-op-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
#cx-order .cx-op-kv-mono strong { letter-spacing: .2px; }
#cx-order .cx-op-kv-soft strong { font-size: 15px; color: var(--op-muted); }
#cx-order .cx-op-main { display: flex; flex-direction: column; min-width: 0; }
#cx-order .cx-op-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; padding: 14px 40px; border-bottom: 1px solid var(--op-line); }
#cx-order .cx-op-head .cx-op-kv { margin: 0; }
#cx-order .cx-op-timer { display: flex; align-items: center; gap: 12px; }
#cx-order .cx-op-timer svg { width: 40px; height: 40px; transform: rotate(-90deg); }
#cx-order .cx-op-timer circle { fill: none; stroke-width: 3; }
#cx-order .cx-op-timer .bg { stroke: #f8d9cb; }
#cx-order .cx-op-timer .fg { stroke: var(--op-accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
#cx-order .cx-op-left { color: var(--op-accent) !important; font-variant-numeric: tabular-nums; }
#cx-order .cx-op-body { flex: 1; padding: 50px 60px 48px; }
#cx-order .cx-op-note { max-width: 440px; margin: 0 auto 56px; font-size: 14px; line-height: 18px; color: var(--op-ink); }
#cx-order .cx-op-note .u { font-weight: 700; text-decoration: underline; }
#cx-order .cx-op-note-soft { max-width: 380px; color: var(--op-muted); line-height: 19px; }
#cx-order .cx-op-h { margin: 0 0 34px; font-family: inherit; font-size: 24px; line-height: 30px; font-weight: 400; text-align: center; color: var(--op-ink); }
#cx-order .cx-op-rows { max-width: 500px; margin: 0 auto; }
#cx-order .cx-op-row { margin: 0 0 24px; }
#cx-order .cx-op-row > span { display: block; margin-bottom: 12px; font-size: 15px; }
#cx-order .cx-op-val { padding: 0 22px; font-size: 15px; color: var(--op-muted); overflow-wrap: anywhere; }
#cx-order .cx-op-recv { display: flex; align-items: center; gap: 12px; padding: 0 22px; font-size: 18px; color: var(--op-muted); }
#cx-order .cx-op-recv em { font-style: normal; flex: 1; }
#cx-order .cx-op-recv strong { font-weight: 400; white-space: nowrap; }
#cx-order .cx-op-aml { max-width: 500px; margin: 30px auto 30px; padding: 10px 16px; border: 1px solid #dde3ee; border-radius: 8px; background: #f8fafd; font-size: 14px; line-height: 20px; text-align: center; }
#cx-order .cx-op-aml a { color: var(--op-accent); text-decoration: underline; }
#cx-order .cx-op-pay { display: block; width: 294px; max-width: 100%; height: 74px; margin: 0 auto; border: 0; border-radius: 40px; background: var(--op-accent); color: #fff; font-family: inherit; font-size: 20px; cursor: pointer; box-shadow: 0 14px 30px rgba(242,117,64,.28); transition: background .15s, transform .1s; }
#cx-order .cx-op-pay:hover { background: var(--cx-accent-2, #ef5310); }
#cx-order .cx-op-pay:active { transform: translateY(1px); }
#cx-order .cx-op-pay:disabled { opacity: .7; cursor: default; }
#cx-order .cx-op-qr { display: flex; justify-content: center; margin: 0 0 30px; }
#cx-order .cx-op-qr img { width: 200px; height: 200px; image-rendering: pixelated; }
#cx-order .cx-op-fields { max-width: 500px; margin: 0 auto; }
#cx-order .cx-op-fields label { display: block; margin: 0 0 8px; font-size: 14px; color: var(--op-ink); }
#cx-order .cx-op-red { color: #d93025 !important; font-weight: 600; }
#cx-order .cx-op-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; margin: 0 0 22px; padding: 8px 10px 8px 18px; border-radius: 8px; background: var(--op-soft); font-size: 13px; line-height: 18px; }
#cx-order .cx-op-field span { min-width: 0; overflow-wrap: anywhere; }
#cx-order .cx-op-field-big { font-size: 16px; }
#cx-order .cx-op-field-sm { font-size: 13px; }
#cx-order .cx-op-field-warn { background: #fff4ee; box-shadow: inset 0 0 0 1px #f8c9b2; }
#cx-order .cx-op-mono { font-family: inherit; letter-spacing: .2px; }
#cx-order .cx-op-copy { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a94a3; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
#cx-order .cx-op-copy:hover { background: #e4e8ef; color: var(--op-ink); }
#cx-order .cx-op-copy.ok { color: #3ea589; }
#cx-order .cx-op-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 40px; border-top: 1px solid var(--op-line); font-size: 15px; color: var(--op-muted); }
#cx-order .cx-op-foot-b { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
#cx-order .cx-op-cancel { height: 52px; padding: 0 32px; border: 1px solid var(--op-line); border-radius: 30px; background: #fff; color: var(--op-muted); font-family: inherit; font-size: 15px; cursor: pointer; transition: border-color .15s, color .15s; }
#cx-order .cx-op-cancel:hover { border-color: #c9c7c1; color: var(--op-ink); }
#cx-order .cx-op-cancel-yes { border-color: #e9a3a3; color: #c62828; }
#cx-order .cx-op-cancel-yes:hover { border-color: #c62828; background: #fff5f5; color: #c62828; }
#cx-order .cx-op-removed { padding: 8px 0 40px; text-align: center; }
#cx-order .cx-op-removed h3 { margin: 0 0 22px; font-size: 22px; font-weight: 400; color: var(--op-ink); }
#cx-order .cx-op-removed p { margin: 0; font-size: 14px; }
#cx-order .cx-op-empty { padding: 60px 20px; text-align: center; font-size: 16px; color: var(--op-muted); }

/* Состояния: успех / ожидание / AML / приостановлено */
#cx-order .cx-op-state { max-width: 460px; margin: 6px auto 0; padding: 34px 30px 30px; border-radius: 24px; background: #f7f7f5; text-align: center; }
#cx-order .cx-op-state h3 { margin: 18px 0 10px; font-family: inherit; font-size: 26px; line-height: 32px; font-weight: 500; color: var(--op-ink); }
#cx-order .cx-op-state p { margin: 0 auto; max-width: 380px; font-size: 15px; line-height: 22px; color: #5c6670; }
#cx-order .cx-op-state-ic { display: flex; justify-content: center; }
#cx-order .cx-op-state-ic svg { width: 76px; height: 76px; }
#cx-order .cx-op-state-ic .c { fill: none; stroke-width: 3; }
#cx-order .cx-op-state-ic .k { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
#cx-order .cx-op-state-ok { background: linear-gradient(180deg, #eef8f4 0%, #f7f7f5 70%); }
#cx-order .cx-op-state-ok .c { stroke: #3ea589; fill: #3ea589; stroke-dasharray: 151; stroke-dashoffset: 151; animation: cxOpCircle .6s ease-out forwards; }
#cx-order .cx-op-state-ok .k { stroke: #fff; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cxOpCheck .4s .45s ease-out forwards; }
#cx-order .cx-op-state-ok .cx-op-state-ic { animation: cxOpPop .5s .5s ease-out both; }
#cx-order .cx-op-state-warn { background: #fff8e6; box-shadow: inset 0 0 0 1px #f7dfa5; }
#cx-order .cx-op-state-warn .c { stroke: #f0a63a; fill: #fff; }
#cx-order .cx-op-state-warn .k { stroke: #f0a63a; }
#cx-order .cx-op-state-warn .d { fill: #f0a63a; }
#cx-order .cx-op-state-warn h3 { color: #8a5a00; }
#cx-order .cx-op-state-stop { background: #fff3f2; box-shadow: inset 0 0 0 1px #f5c6c2; }
#cx-order .cx-op-state-stop .c { stroke: #e0574a; fill: #fff; }
#cx-order .cx-op-state-stop .k { stroke: #e0574a; }
#cx-order .cx-op-state-stop h3 { color: #a52a1f; }
#cx-order .cx-op-spin { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #f8d9cb; border-top-color: var(--op-accent); animation: cxOpSpin 1s linear infinite; }
#cx-order .cx-op-mini { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--op-muted); }
#cx-order .cx-op-mini b { color: var(--op-ink); font-weight: 500; }
#cx-order .cx-op-tx code { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; background: #fff; padding: 3px 8px; border-radius: 6px; }
#cx-order .cx-op-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
#cx-order .cx-op-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; height: 50px; padding: 0 28px; border-radius: 30px; font-size: 16px; text-decoration: none; transition: background .15s, border-color .15s; }
#cx-order .cx-op-btn-accent { background: var(--op-accent); color: #fff; box-shadow: 0 12px 26px rgba(242,117,64,.25); }
#cx-order .cx-op-btn-accent:hover { background: var(--cx-accent-2, #ef5310); color: #fff; }
#cx-order .cx-op-btn-dark { background: var(--op-ink); color: #fff; }
#cx-order .cx-op-btn-dark:hover { background: #000; color: #fff; }
#cx-order .cx-op-btn-line { border: 1px solid #d9d6cf; color: var(--op-ink); background: #fff; }
#cx-order .cx-op-btn-line:hover { border-color: var(--op-ink); }
#cx-order .cx-op-support { margin: 4px 0 0 !important; font-size: 14px !important; }
@keyframes cxOpCircle { to { stroke-dashoffset: 0; } }
@keyframes cxOpCheck { to { stroke-dashoffset: 0; } }
@keyframes cxOpPop { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes cxOpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	#cx-order .cx-op-state-ok .c, #cx-order .cx-op-state-ok .k { animation: none; stroke-dashoffset: 0; }
	#cx-order .cx-op-spin { animation-duration: 3s; }
}
@media (max-width: 767px) {
	#cx-order .cx-op-title { margin: 10px 0 30px; font-size: 32px; }
	#cx-order .cx-op-card { border-radius: 24px; }
	#cx-order .cx-op-grid { grid-template-columns: 1fr; }
	#cx-order .cx-op-main { order: 1; }
	#cx-order .cx-op-side { order: 2; border-right: 0; border-top: 1px solid var(--op-line); }
	#cx-order .cx-op-side-h { height: 60px; font-size: 20px; }
	#cx-order .cx-op-side-b { padding: 22px 20px 6px; }
	#cx-order .cx-op-head { padding: 12px 18px; }
	#cx-order .cx-op-body { padding: 28px 18px 28px; }
	#cx-order .cx-op-note { margin-bottom: 30px; }
	#cx-order .cx-op-h { font-size: 21px; line-height: 27px; margin-bottom: 22px; }
	#cx-order .cx-op-recv { padding: 0 6px; font-size: 17px; }
	#cx-order .cx-op-pay { width: 100%; height: 60px; }
	#cx-order .cx-op-foot { flex-direction: column; align-items: stretch; text-align: center; padding: 18px; }
	#cx-order .cx-op-foot-b { justify-content: center; }
	#cx-order .cx-op-state { padding: 26px 18px 24px; }
	#cx-order .cx-op-btn { width: 100%; min-width: 0; }
}
[dir="rtl"] #cx-order .cx-op-side { border-right: 0; border-left: 1px solid var(--op-line); }

/* Тема CX Exchange: страница заявки шире обычной страницы */
.cx-content.cx-content-wide:has(#cx-order) { max-width: 1200px; }

/* Официальные иконки: значок сети в углу у токенов */
#cx-exchange .cx-tile-ic { position: relative; }
#cx-exchange .cx-tile-ic img.cx-ic-badge { position: absolute; right: 14%; bottom: 14%; width: 36%; height: 36%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff; object-fit: contain; }
#cx-exchange .cx-dd-ic { position: relative; flex: 0 0 24px; width: 24px; height: 24px; display: inline-block; }
#cx-exchange .cx-dd-ic > img:first-child, #cx-exchange .cx-dd-ic .cx-dd-ph { width: 24px; height: 24px; }
#cx-exchange .cx-dd-list li img.cx-ic-badge { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; flex: none; background: #fff; box-shadow: 0 0 0 1.5px #fff; }
#cx-exchange .cx-coin-wrap { position: relative; }
#cx-exchange .cx-coin-badge { position: absolute; left: 30px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff; object-fit: contain; }
#cx-exchange .cx-coin-badge[hidden] { display: none; }
@media (max-width: 767px) { #cx-exchange .cx-coin-badge { left: 28px; top: 26px; } }

/* Одноколоночная форма (страницы направлений «Exchange X to Y») */
#cx-exchange.cx-single { max-width: 714px; margin-left: auto; margin-right: auto; }
#cx-exchange.cx-single .cx-sides { grid-template-columns: 1fr; grid-template-rows: none; }
#cx-exchange.cx-single .cx-side { display: block; grid-row: auto; }
#cx-exchange.cx-single .cx-side-take { border-left: 0; border-top: 1px solid var(--cx-line); background: #f8f9fb; }
#cx-exchange.cx-single .cx-tabs, #cx-exchange.cx-single .cx-grid, #cx-exchange.cx-single .cx-swap { display: none !important; }
#cx-exchange.cx-single .cx-side-head { margin: 0 0 18px; }
#cx-exchange.cx-single .cx-services, #cx-exchange.cx-single .cx-bottom { grid-template-columns: 1fr; }
#cx-exchange.cx-single .cx-bottom { gap: 22px; }
#cx-exchange.cx-single .cx-bottom-action { grid-column: auto; }
#cx-exchange.cx-single .cx-single-top { padding: 40px 36px 10px; }
#cx-exchange.cx-single .cx-single-top:empty { display: none; }
#cx-exchange.cx-single .cx-notice { margin: 0 0 30px; padding: 0; font-size: 14px; }
@media (max-width: 767px) { #cx-exchange.cx-single .cx-single-top { padding: 26px 16px 0; } }
