.wc-gm-gift-section {
	border: 1px solid #e2e2e2;
	background: #fff;
	border-radius: 10px;
	padding: 16px;
	margin: 16px 0;
	position: relative;
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.wc-gm-gift-section.is-loading::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(1px);
	z-index: 5;
}

.wc-gm-gift-section.is-loading::after {
	content: "Dang cap nhat qua tang...";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #2271b1;
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	z-index: 6;
}

.wc-gm-gift-section.is-loading .wc-gm-gift-card {
	pointer-events: none;
}

.wc-gm-gift-section.is-active {
	border-color: #f0b429;
	box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
	animation: wc-gm-pulse 1.2s ease-in-out 1;
}

@keyframes wc-gm-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.01); }
	100% { transform: scale(1); }
}

.wc-gm-gift-header h3 {
	margin: 0 0 8px;
	font-size: 20px;
}

.wc-gm-gift-header p {
	margin: 0 0 14px;
	color: #666;
}

.wc-gm-gift-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.wc-gm-radio-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-right: 4px;
}

.wc-gm-radio-input {
	margin: 0 !important;
	cursor: pointer;
	width: 18px !important;
	height: 18px !important;
}

.wc-gm-gift-card {
	border: 1px solid #dfdfdf;
	background: #fff;
	border-radius: 8px;
	padding: 8px 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	text-align: left;
	min-height: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wc-gm-gift-card:hover {
	border-color: #2271b1;
}

.wc-gm-gift-card.is-selected {
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.wc-gm-image-wrap {
	display: block;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 6px;
	background: #f8f8f8;
	flex: 0 0 56px;
}

.wc-gm-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wc-gm-image-placeholder {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.wc-gm-name {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.wc-gm-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wc-gm-prices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: #666;
}

.wc-gm-price-gift {
	color: #1f7a1f;
	font-weight: 600;
}

.wc-gm-context-checkout .wc-gm-gift-card {
	padding: 6px 8px;
	gap: 8px;
}

.wc-gm-context-checkout .wc-gm-image-wrap {
	width: 44px;
	height: 44px;
	flex-basis: 44px;
}

.wc-gm-context-checkout .wc-gm-name {
	font-size: 12px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.wc-gm-context-checkout .wc-gm-prices {
	font-size: 11px;
}

.wc-gm-context-checkout .wc-gm-price-original {
	display: none;
}

.wc-gm-gift-feedback {
	margin-top: 10px;
	font-size: 14px;
	color: #2c7a2c;
	min-height: 20px;
}

.wc-gm-gift-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff3cd;
	color: #7a4f01;
	font-size: 12px;
	margin-left: 6px;
	vertical-align: middle;
}

@media (max-width: 767px) {
	.wc-gm-gift-card {
		padding: 8px;
	}

	.wc-gm-image-wrap {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
	}
}
