@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: inherit;
}

body {
	/* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
	background-color: #1a1a1a;
	color: white;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.receipt-card {
	max-width: 400px;
	width: 100%;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 24px;
	margin: 20px;
	color: #333;
	border: 1px solid #e5e7eb;
}

.receipt-header {
	text-align: center;
	margin-bottom: 24px;
}

.pay-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pay-fields {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pay-qrmodal[hidden] {
	display: none !important;
}

.pay-qrmodal {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px 16px;
	z-index: 50;
}

.pay-qrback {
	position: absolute;
	inset: 0;
	border: none;
	background: rgba(0, 0, 0, .55);
}

.pay-qrcard {
	position: relative;
	width: 100%;
	max-width: 360px;
	background: #fff;
	border: 1px solid #e6e8ee;
	border-radius: 22px;
	padding: 16px;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
	display: flex;
	justify-content: center;
}

.pay-qrimg {
	width: 240px;
	height: 240px;
	border-radius: 14px;
	border: 1px solid #e6e8ee;
	object-fit: contain;
}

.pay-invoice-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	height: 44px;
	padding: 0 34px;
	border-radius: 14px;

	background: linear-gradient(180deg, #F7F8FB 0%, #EEF1F6 100%);
	border: 1px solid rgba(17, 24, 39, 0.08);

	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 10px 22px rgba(17, 24, 39, 0.08);

	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: #111827;

	-webkit-font-smoothing: antialiased;
	user-select: none;
}

.receipt-amount {
	margin-top: 14px;
	text-align: center;
}

.amount-like-screen {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
}

.amount-like-screen .amount-value {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
	font-size: 44px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #111827;
}

.amount-like-screen .amount-currency {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: #111827;
	transform: translateY(-2px);
}



.amount-sub {
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #9ca3af;
}

.receipt-title {
	font-size: 20px;
	font-weight: 600;
	color: #374151;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.receipt-amount {
	text-align: center;
	margin-bottom: 32px;
}

.amount-main {
	font-size: 32px;
	font-weight: 700;
	color: #10b981;
	margin-bottom: 4px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.amount-sub {
	font-size: 16px;
	color: #6b7280;
	font-weight: 500;
}

.qr-section {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}

.pay-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	color: #9ca3af;
	text-transform: uppercase;
}

.pay-box {
	height: 58px;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #fff;
	padding: 0 12px 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pay-text {
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	min-width: 0;
}

.pay-ellipsis {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pay-copy {
	height: 36px;
	padding: 0 16px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #f3f4f6;
	box-shadow: none;
	color: #374151;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	flex: 0 0 auto;
}

.pay-qrlink {
	border: none;
	background: transparent;
	padding: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6d28d9;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.pay-net {
	color: #6d28d9;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.pay-status {
	height: 64px;
	width: 100%;
	border-radius: 18px;
	background: #e9e8fb;
	border: 1px solid #d7d6f5;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .10em;
	text-transform: uppercase;
	color: #111827;
	user-select: none;
	cursor: pointer;
}

.qr-code {
	width: 200px;
	height: 200px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
}

.qr-code svg {
	width: 100%;
	height: 100%;
}

.receipt-details {
	margin-bottom: 32px;
}

.detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-label {
	font-size: 14px;
	color: #6b7280;
	font-weight: 500;
}

.detail-value {
	font-size: 14px;
	color: #374151;
	font-weight: 600;
	text-align: right;
}

.default-value-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 50%;
	cursor: pointer;
}

.default-value-ellipsis>svg {
	transform: translateY(4px);
}

.receipt-footer {
	margin-top: 32px;
}

.receive-button {
	width: 100%;
	background: #10b981;
	color: white;
	border: none;
	padding: 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.receive-button:hover {
	background: #059669;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.receive-button:active {
	transform: translateY(0);
}

/* Container for the receipt */
.container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: #f9fafb;
	padding: 20px;
}

/* Override body styles for this specific page */
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #f9fafb !important;
	color: #333 !important;
	margin: 0;
	padding: 0;
}

/* Mobile responsive */
@media (max-width: 480px) {
	.receipt-card {
		margin: 10px;
		padding: 20px;
	}

	.amount-main {
		font-size: 28px;
	}

	.qr-code {
		width: 180px;
		height: 180px;
	}

	.receipt-title {
		font-size: 18px;
	}
}

/* Success Page Styles */
.success-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.success-message {
	text-align: center;
	margin-bottom: 32px;
}

.pay-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.message-title {
	font-size: 18px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 12px 0;
	line-height: 1.4;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.message-subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
}

.status-processing {
	color: #f59e0b !important;
	font-weight: 600;
}

.success-button {
	background: #10b981 !important;
	color: white !important;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.success-button:hover {
	background: #059669 !important;
}

.fail-wrap {
	margin-top: 18px;
	text-align: center;
}

.fail-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	line-height: 1.35;
}

.fail-subtitle {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.45;
}

.fail-x {
	width: 68px;
	height: 68px;
	border-radius: 999px;
	border: none;
	background: #ef4444;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
	margin-bottom: 14px;
}


/* Mobile responsive for success page */
@media (max-width: 480px) {
	.message-title {
		font-size: 16px;
	}

	.message-subtitle {
		font-size: 13px;
	}

	.success-icon svg {
		width: 60px;
		height: 60px;
	}
}