.voucher-pending-panel-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 28, 45, 0.24);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 9998;
}

.voucher-pending-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 92vw;
	height: 100vh;
	background: #fff;
	box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
	transform: translateX(100%);
	transition: transform 0.2s ease;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

body.pending-panel-open .voucher-pending-panel-overlay {
	opacity: 1;
	pointer-events: auto;
}

body.pending-panel-open .voucher-pending-panel {
	transform: translateX(0);
}

.voucher-pending-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 12px;
	border-bottom: 1px solid #eceff5;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 2;
}

.voucher-pending-panel-head h4,
.voucher-pending-panel-head p {
	margin: 0;
}

.voucher-pending-panel-head-main {
	flex: 1;
	min-width: 0;
}

.voucher-pending-panel-head-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.voucher-pending-panel-close {
	border: 0;
	background: transparent;
	color: #7a8499;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.voucher-pending-panel-body {
	padding: 16px 20px 20px;
	overflow-y: auto;
	flex: 1;
}

.voucher-pending-panel-member-info {
	margin-bottom: 16px;
	padding: 16px 18px;
	border: 1px solid #eceff5;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.voucher-member-hero {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #edf1f7;
	margin-bottom: 14px;
}

.voucher-member-hero-title {
	font-size: 24px;
	font-weight: 700;
	color: #2f3a5d;
	line-height: 1.2;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.voucher-member-hero-title.is-email {
	font-size: 18px !important;
	line-height: 1.25;
}

.voucher-member-hero-subtitle {
	font-size: 13px;
	color: #7a8499;
	margin-top: 4px;
}

.voucher-member-hero-subtitle-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.voucher-member-hero-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: #ff596f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
	cursor: pointer;
	box-shadow: none;
}

.voucher-member-hero-balance-label {
	font-size: 12px;
	color: #7a8499;
	text-align: right;
}

.voucher-member-hero-balance-value {
	font-size: 28px;
	font-weight: 800;
	color: #2f3a5d;
	text-align: right;
	line-height: 1.1;
}

.voucher-member-hero-balance-value.is-negative {
	color: #d11f3a;
}

.voucher-pending-panel-total {
	color: #363636;
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 0;
	text-align: right;
	white-space: nowrap;
	display: none;
}

.voucher-pending-panel-total.is-pending {
	color: #f08a24;
}

.voucher-pending-panel-total.is-negative {
	color: #d11f3a;
}

.voucher-pending-panel-member {
	display: none;
}

.voucher-pending-item {
	border: 1px solid #eceff5;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.voucher-pending-item:last-child {
	margin-bottom: 0;
}

.voucher-pending-item-main {
	flex: 1;
	min-width: 0;
}

.voucher-pending-item-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	min-width: 132px;
}

.voucher-pending-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.voucher-pending-item-tools {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.voucher-pending-item-order {
	font-weight: 700;
	color: #363636;
}

.voucher-pending-item-date,
.voucher-pending-item-meta,
.voucher-pending-item-status {
	color: #5b657a;
	font-size: 12px;
}

.voucher-pending-item-amount {
	color: #363636;
	font-weight: 700;
	white-space: nowrap;
	text-align: right;
}

.voucher-pending-item-amount.is-positive {
	color: #19b37d;
}

.voucher-pending-item-amount.is-pending {
	color: #f08a24;
}

.voucher-pending-item-amount.is-negative {
	color: #d11f3a;
}

.voucher-pending-empty {
	color: #5b657a;
	font-size: 14px;
}

@media (max-width: 767px) {
	body.pending-panel-open {
		overflow: hidden;
	}

	.voucher-pending-panel {
		left: 0;
		right: 0;
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		height: 100dvh;
		box-shadow: none;
		transform: translateX(100vw);
	}

	body.pending-panel-open .voucher-pending-panel {
		transform: translateX(0);
	}

	.voucher-pending-panel-head {
		padding: 16px 18px 12px;
	}

	.voucher-pending-panel-body {
		padding: 14px 16px 18px;
	}

	.voucher-pending-panel-member-info {
		padding: 14px 16px;
	}

	.voucher-member-hero {
		flex-direction: column;
		gap: 12px;
	}

	.voucher-member-hero-balance-label,
	.voucher-member-hero-balance-value {
		text-align: left;
	}

	.voucher-pending-item {
		flex-direction: column;
		gap: 10px;
		padding: 14px 16px;
	}

	.voucher-pending-item-top {
		display: block;
	}

	.voucher-pending-item-side,
	.voucher-pending-item-tools {
		align-items: flex-start;
		min-width: 0;
	}

	.voucher-pending-item-order,
	.voucher-pending-item-meta,
	.voucher-pending-item-status {
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.voucher-pending-item-amount {
		text-align: left;
		white-space: normal;
	}
}
