.annb-bundle {
	display: grid;
	gap: 18px;
	margin-top: 0;
	padding-top: 0;
}

.annb-bundle__groups {
	display: grid;
	gap: 14px;
	padding: 0;
}

.annb-bundle__group {
	border: 0;
	margin: 0;
	padding: 0;
}

.annb-bundle__group-title {
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	margin-bottom: 8px;
	padding: 0;
}

.annb-bundle__group-notice,
.annb-bundle__notice,
.annb-bundle__error {
	color: #b42318;
	font-size: 13px;
	line-height: 1.45;
}

.annb-bundle__options {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow: visible;
	width: 100%;
}

.annb-bundle__option {
	align-items: center;
	background: #fff;
	border: 1px solid #ded8d2;
	cursor: pointer;
	display: grid;
	flex: 1 1 0;
	gap: 6px;
	grid-template-columns: 1fr;
	min-width: 0;
	padding: 0;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.annb-bundle__option:hover {
	border-color: #9f9188;
	transform: translateY(-1px);
}

.annb-bundle__option--selected,
.annb-bundle__option:has(input:checked) {
	border-color: #282828;
	box-shadow: inset 0 0 0 1px #282828, 0 2px 8px rgba(0, 0, 0, 0.06);
}

.annb-bundle__option--disabled {
	cursor: not-allowed;
	opacity: 0.42;
	transform: none;
}

.annb-bundle__choice-input {
	clip-path: inset(50%);
	height: 1px !important;
	margin: -1px;
	opacity: 0 !important;
	overflow: hidden;
	pointer-events: none;
	position: absolute !important;
	white-space: nowrap;
	width: 1px !important;
}

.annb-bundle__option-image {
	aspect-ratio: 1;
	background: #fff;
	border: 0;
	display: block;
	max-width: 100%;
	overflow: hidden;
}

.annb-bundle__option-image img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.annb-bundle__option-body {
	display: none;
}

.annb-bundle__group-notice {
	margin: 0 0 8px;
}

.annb-bundle__summary {
	display: block;
	width: 100%;
}

.annb-bundle__purchase {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-left: 0;
	max-width: none;
	width: 100%;
}

.annb-bundle__purchase .quantity {
	margin: 0;
	width: 100%;
}

.annb-bundle__purchase .nm-quantity-wrap {
	width: 100%;
}

.annb-bundle__purchase .nm-quantity-wrap .quantity {
	align-items: center !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: center !important;
	min-height: 42px;
	white-space: nowrap;
}

.annb-bundle__purchase .nm-quantity-wrap .qty {
	display: inline-block !important;
	flex: 0 0 auto;
	float: none !important;
	min-width: 26px;
	text-align: center;
	width: 26px !important;
}

.annb-bundle__purchase .nm-quantity-wrap .nm-qty-minus,
.annb-bundle__purchase .nm-quantity-wrap .nm-qty-plus {
	display: inline-block !important;
	flex: 0 0 auto;
	float: none !important;
	line-height: 42px;
}

.annb-bundle__purchase .single_add_to_cart_button,
.annb-bundle__purchase .annb-bundle__button {
	margin: 0;
	width: 100%;
}

.annb-bundle__button[disabled] {
	cursor: not-allowed;
	opacity: 0.5;
}

.annb-bundle .woocommerce-product-details__short-description--wrapper {
	margin: 0;
	padding: 0;
}

.annb-bundle .woocommerce-product-details__short-description {
	margin: 0;
}

/* Mini-cart panel alignment for buildable bundle items (Savoy cart panel). */
#nm-cart-panel .product_list_widget .annb-bundle-mini-cart-item .remove,
#nm-cart-panel .product_list_widget .annb-bundle-mini-cart-item:first-child .remove {
	top: 0;
}

#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-item-details {
	display: flex;
	flex-direction: column;
	min-height: 88px;
}

#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-product-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	line-height: 1.3;
	max-height: 2.6em;
	overflow: hidden;
	padding-right: 28px;
	word-break: break-word;
}

#nm-cart-panel .annb-bundle-mini-cart-item .variation {
	display: block;
	font-size: 13px;
	line-height: 1.25;
	margin-bottom: 6px;
}

#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-quantity-pricing {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: auto;
	overflow: visible;
	padding-top: 2px;
}

#nm-cart-panel .annb-bundle-mini-cart-item .product-quantity,
#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-item-price {
	float: none;
}

#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-item-price {
	min-width: 72px;
	text-align: right;
}

#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-item-price .amount {
	white-space: nowrap;
}

#nm-cart-panel .product_list_widget > .annb-bundle-mini-cart-item:first-child {
	padding-top: 8px;
}

.annb-bundle-cart-discount td,
.annb-bundle-cart-discount th {
	color: #777;
}

.annb-bundle-mini-cart-discount {
	border-top: 1px solid rgba(255, 255, 255, .12);
	margin: 0 0 16px;
	padding-top: 12px;
}

.annb-bundle-mini-cart-discount__row {
	align-items: center;
	display: flex;
	font-size: 14px;
	justify-content: space-between;
	line-height: 1.4;
	margin: 0 0 6px;
}

.annb-bundle-mini-cart-discount__row--total {
	font-size: 16px;
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.annb-bundle__groups {
		gap: 12px;
		padding: 0;
	}

	.annb-bundle__group-title {
		font-size: 16px;
	}

	.annb-bundle__options {
		gap: 6px;
	}

	.annb-bundle__option {
		padding: 0;
	}

	.annb-bundle__summary,
	.annb-bundle__purchase {
		align-items: stretch;
		flex-direction: column;
	}

	.annb-bundle__button {
		width: 100%;
	}

	#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-item-details {
		min-height: 0;
	}

	#nm-cart-panel .annb-bundle-mini-cart-item .nm-cart-panel-quantity-pricing {
		gap: 8px;
	}
}

/* Gift hint popup hardening: prevent theme form styles from breaking AWGN grid layout. */
.blockMsgAWGN .awgn__popup__content {
	align-items: start;
	column-gap: 24px;
	row-gap: 12px;
}

.blockMsgAWGN .awgn__form__fields {
	column-gap: 24px;
	display: grid !important;
	grid-template-areas:
		"who-to-hint email-recipients"
		"name email"
		"notes notes"
		"terms terms";
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	row-gap: 14px;
}

.blockMsgAWGN .awgn__form__fields > * {
	float: none !important;
	margin: 0 !important;
	min-width: 0;
	width: 100%;
}

.blockMsgAWGN .awgn__form__fields label {
	display: block;
	line-height: 1.4;
	margin-bottom: 6px;
}

.blockMsgAWGN .awgn__form__fields .awgn-input-wrapper {
	display: block;
	width: 100%;
}

.blockMsgAWGN .awgn__form__fields input.input-text,
.blockMsgAWGN .awgn__form__fields input[type="email"],
.blockMsgAWGN .awgn__form__fields input[type="text"],
.blockMsgAWGN .awgn__form__fields textarea {
	display: block;
	float: none !important;
	max-width: none;
	width: 100%;
}

.blockMsgAWGN .awgn__form__fields textarea {
	min-height: 120px;
	resize: vertical;
}

.blockMsgAWGN .awgn__form #terms_field label.checkbox {
	align-items: flex-start;
	display: flex;
	gap: 8px;
}

.blockMsgAWGN .awgn__form #terms_field .input-checkbox {
	margin-top: 4px;
}

.blockMsgAWGN .awgn__form .awgn__form__button {
	margin-top: 14px;
	width: 100%;
}

@media (max-width: 768px) {
	.blockMsgAWGN .awgn__popup__content {
		grid-template-areas:
			"title"
			"image"
			"description"
			"form";
	}

	.blockMsgAWGN .awgn__form__fields {
		grid-template-areas:
			"who-to-hint"
			"email-recipients"
			"name"
			"email"
			"notes"
			"terms";
		grid-template-columns: minmax(0, 1fr);
	}
}
