.cbsp-gift-label {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: #f4c542;
	color: #1f1f1f;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
}

.cbsp-gift-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
}

.cbsp-gift-picker {
	margin: 28px 0;
	padding: 22px;
	border: 1px solid #e0e4e8;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cbsp-gift-picker h2 {
	margin: 0 0 8px;
	color: #2f3a45;
	font-size: 24px;
	line-height: 1.25;
}

.cbsp-gift-picker > p {
	margin: 0 0 18px;
	color: #5c6975;
	font-size: 16px;
	line-height: 1.45;
}

.cbsp-option-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.cbsp-option-button {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	min-height: 76px;
	padding: 14px 16px;
	border: 1px solid #d6dde4;
	border-radius: 8px;
	background: #f8fafb;
	color: #25313b;
	cursor: pointer;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cbsp-option-button span {
	color: #65717c;
	font-size: 13px;
	font-weight: 600;
}

.cbsp-option-button.is-active {
	border-color: #38a9d2;
	background: #eef9fd;
	box-shadow: inset 0 0 0 1px #38a9d2;
}

.cbsp-gift-panel {
	display: none;
}

.cbsp-gift-panel.is-active {
	display: block;
}

.cbsp-panel-heading {
	margin: 0 0 14px;
}

.cbsp-panel-heading h3 {
	margin: 0;
	color: #2f3a45;
	font-size: 18px;
	line-height: 1.3;
}

.cbsp-panel-heading p,
.cbsp-empty-group {
	margin: 4px 0 0;
	color: #6a7681;
	font-size: 14px;
	line-height: 1.4;
}

.cbsp-gift-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 220px));
	gap: 14px;
	justify-content: start;
}

.cbsp-gift-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	max-width: 220px;
	min-height: 100%;
	padding: 12px;
	border: 1px solid #e0e4e8;
	border-radius: 8px;
	background: #fff;
}

.cbsp-gift-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	background: #f7f8f9;
	overflow: hidden;
}

.cbsp-gift-image img,
.cbsp-gift-card img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 150px;
	object-fit: contain;
}

.cbsp-gift-card h4 {
	margin: 0;
	min-height: 42px;
	color: #26313b;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.cbsp-gift-card .button {
	width: 100%;
	margin-top: auto;
	padding: 9px 12px;
	border-radius: 6px;
	white-space: normal;
}

.cbsp-checkout-gift-notice {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 22px;
	padding: 16px 18px;
	border: 2px solid #e2ad25;
	border-left-width: 7px;
	border-radius: 8px;
	background: #fff8e5;
	color: #2f2a1d;
	box-shadow: 0 2px 8px rgba(151, 111, 22, 0.12);
}

.cbsp-checkout-gift-notice strong {
	font-size: 18px;
	line-height: 1.3;
}

.cbsp-checkout-gift-notice span {
	font-size: 15px;
	line-height: 1.45;
}

.cbsp-checkout-gift-notice a {
	color: #0677a6;
	font-weight: 800;
	text-decoration: underline;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
}

.cbsp-product-promo-badge {
	position: absolute;
	z-index: 8;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #f4c542;
	color: #1f1f1f;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	pointer-events: none;
	white-space: nowrap;
}

@media (max-width: 680px) {
	.cbsp-gift-picker {
		padding: 16px;
	}

	.cbsp-option-buttons {
		grid-template-columns: 1fr;
	}

	.cbsp-gift-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cbsp-gift-card {
		max-width: none;
	}
}

@media (max-width: 420px) {
	.cbsp-gift-grid {
		grid-template-columns: 1fr;
	}
}
