/* ===== Coin Selector (checkout) ===== */

.theypaid-coin-selector__label {
	font-weight: 600;
	margin-bottom: 12px;
}

.theypaid-coin-selector__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}

.theypaid-coin-selector__item {
	cursor: pointer;
	display: block;
}

.theypaid-coin-selector__item input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.theypaid-coin-selector__card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 2px solid #ddd;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.theypaid-coin-selector__item input:checked + .theypaid-coin-selector__card {
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb;
}

.theypaid-coin-selector__item:hover .theypaid-coin-selector__card {
	border-color: #93a3b8;
}

.theypaid-coin-selector__logo {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: contain;
}

.theypaid-coin-selector__info {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.theypaid-coin-selector__symbol {
	font-weight: 600;
	font-size: 14px;
}

.theypaid-coin-selector__network {
	font-size: 12px;
	color: #666;
}

.theypaid-error {
	color: #d63638;
	font-style: italic;
}

/* ===== Payment Pending Page ===== */

.theypaid-pending {
	max-width: 560px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: inherit;
}

.theypaid-pending__card {
	position: relative;
	background: #fff;
	color: #111827;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
	padding: 32px 28px 24px;
	overflow: hidden;
}

.theypaid-pending__test-banner {
	margin: 0 0 20px;
	padding: 12px 14px;
	text-align: center;
	font-size: 15px;
	line-height: 1.35;
	color: #7c2d12 !important;
	background: #ffedd5;
	border: 1px solid #fdba74;
	border-radius: 10px;
}

.theypaid-pending__test-banner strong {
	font-weight: 800;
	color: #7c2d12 !important;
}

/* ── Step indicator ── */

.theypaid-pending__steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 28px;
}

.theypaid-pending__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.theypaid-pending__step-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	background: #f3f4f6;
	color: #9ca3af;
	border: 2px solid #e5e7eb;
	transition: all 0.3s ease;
}

.theypaid-pending__step-text {
	font-size: 12px;
	font-weight: 500;
	color: #9ca3af;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.theypaid-pending__step--done .theypaid-pending__step-icon {
	background: #059669;
	color: #fff;
	border-color: #059669;
}

.theypaid-pending__step--done .theypaid-pending__step-text {
	color: #059669;
}

.theypaid-pending__step--active .theypaid-pending__step-icon {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.theypaid-pending__step--active .theypaid-pending__step-text {
	color: #2563eb;
	font-weight: 600;
}

.theypaid-pending__step-line {
	flex: 1;
	height: 2px;
	background: #e5e7eb;
	margin: 0 8px;
	margin-bottom: 20px;
	min-width: 24px;
	transition: background 0.3s ease;
}

.theypaid-pending__step-line--done {
	background: #059669;
}

/* ── Header ── */

.theypaid-pending__header {
	text-align: center;
	margin-bottom: 20px;
}

.theypaid-pending__asset {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 4px;
}

.theypaid-pending__asset-logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: contain;
}

.theypaid-pending__asset-name {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827 !important;
}

.theypaid-pending__asset-network {
	font-size: 13px;
	color: #4b5563 !important;
}

.theypaid-pending__order-num {
	display: none !important;
}

/* ── Status badge ── */

.theypaid-pending__status {
	text-align: center;
	margin-bottom: 16px;
}

.theypaid-pending__status-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.theypaid-pending__status-text--waiting {
	background: #fef3c7;
	color: #92400e;
}

.theypaid-pending__status-text--paid {
	background: #d1fae5;
	color: #065f46;
}

.theypaid-pending__status-text--expired {
	background: #fee2e2;
	color: #991b1b;
}

.theypaid-pending__status-text--insufficient {
	background: #fff7ed;
	color: #9a3412;
}

.theypaid-pending__status-text--confirming {
	background: #dbeafe;
	color: #1e40af;
}

@keyframes theypaid-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.theypaid-pending__status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: theypaid-pulse 1.5s ease-in-out infinite;
}

/* ── Do-not-close notice ── */

.theypaid-pending__notice {
	text-align: center;
	font-size: 13px;
	color: #4b5563 !important;
	margin: 0 0 24px;
	padding: 0 12px;
	line-height: 1.5;
	transition: opacity 0.3s ease;
}

/* ── Payment details ── */

.theypaid-pending__details {
	transition: opacity 0.4s ease, filter 0.4s ease;
}

.theypaid-pending__details--disabled {
	opacity: 0.35;
	filter: grayscale(0.6);
	pointer-events: none;
}

/* ── QR code ── */

.theypaid-pending__qr {
	text-align: center;
	margin-bottom: 24px;
}

.theypaid-pending__qr-frame {
	display: inline-block;
	position: relative;
	padding: 12px;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
}

.theypaid-pending__qr-frame .theypaid-pending__qr-img {
	display: block;
	border-radius: 4px;
}

.theypaid-pending__qr-frame .theypaid-pending__qr-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	padding: 8px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	object-fit: contain;
}

.theypaid-pending__qr-hint {
	font-size: 13px;
	color: #4b5563 !important;
	margin-top: 10px;
}

/* ── Fields ── */

.theypaid-pending__field {
	margin-bottom: 14px;
}

.theypaid-pending__field-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #374151 !important;
	margin-bottom: 5px;
}

.theypaid-pending__field-value {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 11px 12px;
	font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
	font-size: 14px;
	word-break: break-all;
	line-height: 1.5;
	color: #111827 !important;
}

.theypaid-pending__field-value span {
	flex: 1;
	min-width: 0;
	color: #111827 !important;
	font-weight: 600;
	-webkit-text-fill-color: #111827;
}

.theypaid-pending__copy-btn {
	flex-shrink: 0;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
	white-space: nowrap;
}

.theypaid-pending__copy-btn:hover {
	background: #1d4ed8;
}

.theypaid-pending__copy-btn:active {
	transform: scale(0.96);
}

.theypaid-pending__copy-btn--copied {
	background: #059669;
}

/* ── Tag/Memo warning ── */

.theypaid-pending__tag-warning {
	background: #fef3c7;
	border: 1px solid #fbbf24;
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
	font-size: 13px;
	color: #92400e;
	line-height: 1.5;
}

.theypaid-pending__tag-warning strong {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ── Amounts ── */

.theypaid-pending__amounts {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
}

.theypaid-pending__amounts .theypaid-pending__field {
	flex: 1;
	margin-bottom: 0;
	min-width: 0;
}

@media (max-width: 480px) {
	.theypaid-pending__card {
		padding: 24px 18px 20px;
	}

	.theypaid-pending__amounts {
		flex-direction: column;
		gap: 14px;
	}

	.theypaid-pending__step-text {
		font-size: 11px;
	}
}

/* ── Countdown ── */

.theypaid-pending__countdown {
	text-align: center;
	margin-top: 20px;
	padding: 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.theypaid-pending__countdown--urgent {
	background: #fef2f2;
	border-color: #fecaca;
}

.theypaid-pending__countdown-label {
	font-size: 12px;
	color: #374151 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.theypaid-pending__countdown-timer {
	font-size: 32px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #111827 !important;
	margin-top: 4px;
	transition: color 0.3s ease;
}

.theypaid-pending__countdown-timer--urgent {
	color: #dc2626;
}

/* ── Overlays (success / expired) ── */

.theypaid-pending__overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.96);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	z-index: 10;
	border-radius: 16px;
	transition: opacity 0.4s ease;
}

.theypaid-pending__overlay--hidden {
	opacity: 0;
	pointer-events: none;
}

.theypaid-pending__overlay--visible {
	opacity: 1;
	pointer-events: auto;
}

@keyframes theypaid-pop {
	0% { transform: scale(0.5); opacity: 0; }
	60% { transform: scale(1.1); }
	100% { transform: scale(1); opacity: 1; }
}

.theypaid-pending__overlay-icon {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	font-weight: 700;
	animation: theypaid-pop 0.5s ease-out;
}

.theypaid-pending__overlay-icon--success {
	background: #d1fae5;
	color: #059669;
}

.theypaid-pending__overlay-icon--expired {
	background: #fee2e2;
	color: #dc2626;
}

.theypaid-pending__overlay-text {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	text-align: center;
}

.theypaid-pending__overlay-btn {
	display: inline-block;
	padding: 10px 28px;
	background: #2563eb;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s;
}

.theypaid-pending__overlay-btn:hover {
	background: #1d4ed8;
	color: #fff;
}

/* ── Footer ── */

.theypaid-pending__footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
	font-size: 12px;
	color: #9ca3af;
}

.theypaid-pending__footer a {
	color: #6b7280;
	font-weight: 600;
	text-decoration: none;
}

.theypaid-pending__footer a:hover {
	color: #2563eb;
}
