/* Activity rule grant popup ?? aligned with zalo GrantBenefitCard */
.yk-activity-grant-layer.layui-layer {
	width: 88% !important;
	max-width: 400px !important;
	left: 50% !important;
	margin-left: 0 !important;
	transform: translateX(-50%) !important;
	border-radius: 12px;
	overflow: hidden;
}
.yk-activity-grant-layer .layui-layer-title {
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	padding: 16px 40px 10px;
	border-bottom: none;
	background: #fff;
	line-height: 1.4;
}
.yk-activity-grant-layer .layui-layer-content {
	padding: 0;
	max-height: 58vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
}
.yk-activity-grant-layer .layui-layer-btn {
	padding: 10px 16px 16px;
	border-top: 1px solid #f0f0f0;
	text-align: center;
}
.yk-activity-grant-layer .layui-layer-btn a {
	float: none;
	display: block;
	width: 100%;
	margin: 0;
	text-align: center;
	box-sizing: border-box;
}
.yk-activity-grant-layer .layui-layer-btn0 {
	height: 44px;
	line-height: 44px;
	padding: 0;
	border-radius: 8px;
	background: linear-gradient(90deg, #ff8a4c 0%, #f53b25 100%) !important;
	border: none !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
}

.activity-rule-grant-popup {
	padding: 0 16px 12px;
}
.activity-rule-grant-popup .popup-counter {
	font-size: 12px;
	color: #999;
	text-align: center;
	margin-bottom: 8px;
}
.activity-rule-grant-popup .popup-desc {
	font-size: 13px;
	color: #666;
	white-space: pre-wrap;
	word-break: break-word;
	margin-bottom: 12px;
	line-height: 1.5;
}
.activity-rule-grant-popup .grant-benefit-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.grant-benefit-card.package-card {
	display: flex;
	align-items: flex-start;
	min-height: 72px;
	padding: 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fff8e6 0%, #ffe9b8 100%);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
	position: relative;
}
.grant-benefit-card.package-card .package-badge {
	position: absolute;
	left: 0;
	top: 0;
	padding: 2px 8px;
	font-size: 11px;
	color: #fff;
	background: linear-gradient(90deg, #ff8a4c 0%, #ff4d4f 100%);
	border-radius: 12px 0 8px 0;
}
.grant-benefit-card.package-card .package-info {
	width: 100%;
	padding-top: 8px;
}
.grant-benefit-card.package-card .package-title {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	word-break: break-word;
}
.grant-benefit-card.package-card .package-validity {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: #666;
}

.grant-benefit-card.coupon-item-wrapper {
	display: flex;
	min-height: 110px;
	position: relative;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
	border-radius: 12px;
	overflow: hidden;
}
.grant-benefit-card .coupon-type-badge {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	padding: 2px 8px;
	font-size: 11px;
	line-height: 1.4;
	color: #fff;
	background: linear-gradient(90deg, #ff8a4c 0%, #ff4d4f 100%);
	border-radius: 12px 0 8px 0;
	white-space: nowrap;
	pointer-events: none;
}
.grant-benefit-card .coupon-left {
	width: 88px;
	min-width: 88px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: linear-gradient(180deg, #ffeeb6 0%, #fadd7d 100%);
	color: #cc8e35;
	padding: 8px 4px;
	box-sizing: border-box;
}
.grant-benefit-card.type-discount .coupon-left .value-wrapper {
	display: flex;
	align-items: baseline;
	font-weight: 800;
	line-height: 1;
}
.grant-benefit-card.type-discount .coupon-left .value {
	font-size: 32px;
}
.grant-benefit-card.type-discount .coupon-left .unit {
	font-size: 14px;
	margin-left: 1px;
}
.grant-benefit-card.type-money .coupon-left .money-label {
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	line-height: 1.4;
	word-break: break-word;
}
.grant-benefit-card .coupon-right {
	flex: 1;
	background: #fff;
	padding: 0 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
	min-width: 0;
}
.grant-benefit-card .coupon-right .dashed-line {
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	border-left: 1px dashed #e0e0e0;
}
.grant-benefit-card .discount-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 0;
	text-align: center;
	height: 100%;
}
.grant-benefit-card .discount-layout .title {
	font-size: 15px;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
	line-height: 1.3;
	word-break: break-word;
}
.grant-benefit-card .money-layout {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 0;
	height: 100%;
	text-align: center;
}
.grant-benefit-card .money-layout .big-money {
	font-size: 24px;
	font-weight: 800;
	color: #d35400;
	line-height: 1.2;
	margin-bottom: 4px;
}
.grant-benefit-card .money-layout .big-money .unit {
	font-size: 14px;
	margin-left: 2px;
	font-weight: 500;
}
.grant-benefit-card .condition-text {
	font-size: 12px;
	font-weight: 700;
	color: #000;
	margin-bottom: 6px;
	word-break: break-word;
	max-width: 100%;
}
.grant-benefit-card .date-row {
	font-size: 11px;
	color: #999;
}
