/* --- Обёртка страницы: убираем белый фон темы, центрируем --- */
.expay-aml-page-wrap {
    width: 100%;
    max-width: 1180px;
    margin-left: 120px !important;
    margin-right: auto !important;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 3.5rem !important;
    box-sizing: border-box;
    background: none;
    box-shadow: none;
}

.expay-aml-page-wrap .expay-aml-page-wrap__inner.text,
.expay-aml-page-wrap .text.expay-aml-page-wrap__inner {
	background: transparent !important;
	background-color: transparent !important;
	color: rgba(255, 255, 255, 0.94);
	max-width: 100%;
	margin: 0 auto;
	padding: 0 !important;
	box-shadow: none !important;
}

/* Корневой блок шорткода */
.expay-aml {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

.expay-aml [hidden] {
	display: none !important;
}

/* Карточка (стекло на тёмном фоне) */
.expay-aml__panel {
	border-radius: 20px;
	padding: clamp(1.35rem, 3.5vw, 2.25rem);
	background: linear-gradient(
		145deg,
		rgba(22, 12, 16, 0.88) 0%,
		rgba(12, 8, 14, 0.92) 100%
	);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(180, 40, 50, 0.12) inset;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.expay-aml__panel--single {
	max-width: 42rem;
	margin: 0 auto;
}

/* Сетка: слева инфо + цена, справа форма */
.expay-aml__layout {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

@media (min-width: 900px) {
	.expay-aml__layout {
		grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.35fr);
	}
}

/* Левая колонка */
.expay-aml__aside {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.expay-aml__heading {
	margin: 0 0 0.65rem;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	letter-spacing: -0.02em;
}

.expay-aml__intro p {
    margin: 0;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.95rem !important;
}

/* Карточка цены */
.expay-aml__price-card {
	padding: 1.1rem 1.2rem;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(245, 158, 11, 0.28);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.expay-aml__price-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.35rem;
}

.expay-aml__price-value {
    margin: 0;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #fbbf24 !important;
    line-height: 1.2 !important;
}

.expay-aml__price-unit {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

/* Поля формы — сетка */
.expay-aml__fields {
	display: grid;
	gap: 1rem 1.15rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.expay-aml__fields {
		grid-template-columns: 1fr 1fr;
	}

	.expay-aml__field--wide {
		grid-column: 1 / -1;
	}
}

.expay-aml__field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

.expay-aml__req {
	color: #f87171;
	font-weight: 700;
}

.expay-aml__opt {
	font-weight: 400;
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.8rem;
}

.expay-aml__field input,
.expay-aml__field select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.expay-aml__field input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.expay-aml__field input:hover,
.expay-aml__field select:hover {
	border-color: rgba(255, 255, 255, 0.28);
}

.expay-aml__field input:focus,
.expay-aml__field select:focus {
	outline: none;
	border-color: rgba(245, 158, 11, 0.65);
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
	background: rgba(0, 0, 0, 0.55);
}

.expay-aml__field select {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff99' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	padding-right: 2.25rem;
}

.expay-aml__field select option {
	background: #1a1014;
	color: #fff;
}

.expay-aml__captcha {
	display: grid;
	gap: 0.55rem;
	padding: 0.7rem 0.8rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.expay-aml__captcha-text {
	margin: 0;
	font-size: 0.82rem !important;
	line-height: 1.35 !important;
	color: rgba(255, 255, 255, 0.74) !important;
}

.expay-aml__captcha-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 0.7rem;
	border-radius: 8px;
	background: rgba(245, 158, 11, 0.1);
	border: 1px dashed rgba(245, 158, 11, 0.42);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	color: #fde68a;
	width: fit-content;
	min-width: 108px;
}

.expay-aml__actions {
	margin-top: 1.35rem;
	padding-top: 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.expay-aml__submit,
.expay-aml__copy,
.expay-aml__cancel {
	cursor: pointer;
	padding: 0.75rem 1.35rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	transition:
		transform 0.12s ease,
		box-shadow 0.15s ease,
		opacity 0.15s ease;
}

.expay-aml__submit {
	width: 100%;
	border: none;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
	color: #140801;
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
	position: relative;
}

@media (min-width: 480px) {
	.expay-aml__submit {
		width: auto;
		min-width: 220px;
	}
}

.expay-aml__submit:hover {
	box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
	transform: translateY(-1px);
}

.expay-aml__submit:active {
	transform: translateY(0);
}

.expay-aml__submit:disabled {
	cursor: wait;
	opacity: 0.9;
}

.expay-aml__submit.is-loading {
	color: transparent;
	pointer-events: none;
	transform: none;
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.expay-aml__submit.is-loading:hover {
	transform: none;
}

.expay-aml__submit.is-loading::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(50% - 64px);
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(20, 8, 1, 0.28);
	border-top-color: #140801;
	border-radius: 50%;
	animation: expay-aml-spin 0.7s linear infinite;
}

.expay-aml__submit.is-loading::after {
	content: "Загрузка...";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #140801;
	font-weight: 600;
	white-space: nowrap;
}

@keyframes expay-aml-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.expay-aml__copy {
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	flex-shrink: 0;
}

.expay-aml__copy:hover {
	background: rgba(255, 255, 255, 0.14);
}

.expay-aml__cancel {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
}

.expay-aml__cancel:hover {
	border-color: rgba(248, 113, 113, 0.5);
	color: #fecaca;
}

.expay-aml__err {
	color: #fecaca;
	margin-top: 1rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: rgba(127, 29, 29, 0.35);
	border: 1px solid rgba(248, 113, 113, 0.25);
	font-size: 0.9rem;
}

.expay-aml__notice {
	margin: 0;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	background: rgba(127, 29, 29, 0.35);
	border: 1px solid rgba(248, 113, 113, 0.3);
	color: #fecaca;
	line-height: 1.5;
}

/* Блок оплаты — внутри той же панели, отделён сверху */
.expay-aml__pay {
	margin-top: clamp(1.5rem, 3vw, 2rem);
	padding-top: clamp(1.35rem, 2.5vw, 1.85rem);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expay-aml__pay-head {
	margin-bottom: 1.15rem;
}

.expay-aml__pay-title {
	margin: 0 0 0.5rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #fff;
}

.expay-aml__timer {
    margin: 0;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fbbf24 !important;
}

.expay-aml__pay-grid {
	display: grid;
	gap: 1.15rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.expay-aml__pay-grid {
		grid-template-columns: minmax(160px, 0.45fr) 1fr;
		align-items: start;
	}
}

.expay-aml__pay-block {
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.32);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.expay-aml__pay-block--wide {
	grid-column: 1 / -1;
}

@media (min-width: 640px) {
	.expay-aml__pay-block--wide {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: stretch;
	}
	.page_wrap {
    margin: 0 120px 20px 120 !important;
    padding: 20px 20px 1px;
    border-radius: 4px;
}
.expay-aml-page-wrap{
    margin: 0 120px 20px 120 !important;
}
}

.expay-aml__label {
	margin: 0 0 0.35rem;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5) !important;
}

.expay-aml__amount {
    margin: 0;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #fde68a !important;
    word-break: break-word;
}

.expay-aml__address-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: stretch;
}

.expay-aml__address,
.expay-aml__memo {
	display: block;
	padding: 0.75rem 0.9rem;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	word-break: break-all;
	flex: 1;
	min-width: min(100%, 200px);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.82rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
}

.expay-aml__memo-wrap {
	margin-top: 1rem;
}

.expay-aml__status {
    margin: 1.15rem 0 0;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.expay-aml__pay-actions {
	margin-top: 1.15rem;
}
