.hdsu-buy-more,
.hdsu-product-upsells,
.hdsu-popup-modal {
	box-sizing: border-box;
	color: var(--hdsu-text, #2b2f36);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 0;
}

.hdsu-buy-more *,
.hdsu-product-upsells *,
.hdsu-popup-modal * {
	box-sizing: border-box;
}

.hdsu-buy-more {
	width: 100%;
	margin: 24px 0;
	padding: 16px 18px 18px;
	border: 2px var(--hdsu-buy-border-style, dashed) var(--hdsu-buy-border, #1e9bff);
	border-radius: 6px;
	background: #fff;
	color: var(--hdsu-buy-text, #2b2f36);
}

.hdsu-buy-more__header h3 {
	margin: 0 0 8px;
	color: #ee0d0d;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
}

.hdsu-buy-more__header p {
	margin: 0 0 16px;
	color: #6f6f73;
	font-size: 19px;
	line-height: 1.35;
}

.hdsu-buy-more .hdsu-discount-progress {
	margin: 0 0 14px;
	padding: 10px 12px;
	border: 1px solid #c7ead0;
	border-radius: 6px;
	background: #f2fff5;
}

.hdsu-discount-progress p {
	margin: 0;
}

.hdsu-discount-progress p + p {
	margin-top: 4px;
}

.hdsu-discount-progress__unlocked {
	color: #188400;
	font-weight: 700;
}

.hdsu-discount-progress__next {
	color: #6c5a00;
}

.hdsu-buy-more__tiers {
	display: grid;
	gap: 9px;
}

.hdsu-buy-more__tier {
	display: grid;
	grid-template-columns: 120px 1fr 110px;
	gap: 12px;
	align-items: center;
	min-height: 39px;
	padding: 0;
	border: 0;
	background: transparent;
}

.hdsu-buy-more__tier.is-active {
	border-radius: 6px;
	background: #f3fff0;
}

.hdsu-buy-more__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 85px;
	min-height: 31px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--hdsu-buy-badge-bg, #3b3b3d);
	color: var(--hdsu-buy-badge-text, #fff);
	font-size: 17px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.hdsu-buy-more__tier p {
	min-width: 0;
	margin: 0;
	color: #2b2f36;
	font-size: 18px;
	line-height: 1.35;
}

.hdsu-buy-more__tier p strong {
	font-weight: 800;
}

.hdsu-tier-button,
.hdsu-product-card .hdsu-add-upsell,
.hdsu-primary-button,
.hdsu-secondary-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 39px;
	padding: 8px 18px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: var(--hdsu-button-bg, #2dbd16) !important;
	color: var(--hdsu-button-text, #fff) !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none !important;
}

.hdsu-tier-button {
	min-width: 78px;
	background: var(--hdsu-buy-button-bg, #2dbd16) !important;
	color: var(--hdsu-buy-button-text, #fff) !important;
	text-transform: none;
}

.hdsu-tier-button:hover,
.hdsu-product-card .hdsu-add-upsell:hover,
.hdsu-primary-button:hover {
	filter: brightness(0.95);
}

.hdsu-product-upsells {
	clear: both;
	width: 100%;
	margin: 34px 0;
}

.hdsu-section-title,
.hdsu-popup-title {
	margin: 0 0 20px;
	color: var(--hdsu-heading, #272a2f);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
}

.hdsu-section-description {
	margin: 0;
	color: #5f6670;
	font-size: 16px;
}

.hdsu-products-grid {
	display: grid;
	grid-template-columns: repeat(var(--hdsu-columns-desktop, 4), minmax(0, 1fr));
	gap: 22px;
	width: 100%;
}

.hdsu-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--hdsu-card-border, #e7e8ea);
	border-radius: 8px;
	background: var(--hdsu-card-bg, #fff);
	box-shadow: 0 2px 9px rgba(17, 24, 39, 0.06);
}

.hdsu-product-card__image {
	display: block;
	margin: 16px 16px 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 7px;
	background: #f2f3f5;
}

.hdsu-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hdsu-image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f4f4f5, #dedfe3);
}

.hdsu-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
}

.hdsu-product-card__title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 44px;
	color: var(--hdsu-title, #303238);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.22;
	text-decoration: none !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.hdsu-product-card__title:hover {
	color: var(--hdsu-primary, #2dbd16);
}

.hdsu-variation-fields {
	display: grid;
	gap: 12px;
}

.hdsu-variation-fields label {
	display: block;
	margin: 0;
}

.hdsu-variation-fields label > span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hdsu-variation-fields select,
.hdsu-product-card .hdsu-quantity {
	width: 100%;
	min-height: 39px;
	margin: 0;
	border: 1px solid #d9dce1;
	border-radius: 6px;
	background: #fff;
	color: #303238;
	font-size: 16px;
	line-height: 1.2;
	box-shadow: none;
}

.hdsu-product-card .hdsu-quantity {
	max-width: 56px;
	padding: 6px 10px;
	text-align: left;
}

.hdsu-product-card__price {
	margin-top: auto;
	color: var(--hdsu-price, #303238);
	font-size: 16px;
	font-weight: 500;
}

.hdsu-product-card__price del {
	margin-right: 7px;
	color: #5d6670;
	font-size: 14px;
	font-weight: 800;
	opacity: 1;
}

.hdsu-product-card__price ins {
	color: var(--hdsu-sale-price, #2d2f35);
	font-size: 24px;
	font-weight: 900;
	text-decoration: none;
}

.hdsu-product-card__price .amount {
	font-weight: 900;
}

.hdsu-product-card__price > .amount,
.hdsu-product-card__price > .woocommerce-Price-amount {
	font-size: 24px;
}

.hdsu-product-card__actions {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 20px;
}

.hdsu-product-card .hdsu-add-upsell {
	width: 100%;
	min-width: 0;
	min-height: 40px;
	white-space: normal;
}

.hdsu-card-message {
	color: #168500;
	font-size: 13px;
	font-weight: 700;
}

.hdsu-card-message.is-error {
	color: #d31f1f;
}

.hdsu-card-message.is-success {
	color: #168500;
}

.hdsu-popup-is-open {
	overflow: hidden;
}

.hdsu-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: var(--hdsu-overlay, rgba(0, 0, 0, 0.62));
}

.hdsu-popup-modal {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, var(--hdsu-popup-width, 880px));
	max-height: calc(100vh - 44px);
	overflow: hidden;
	padding: 0;
	border-radius: 10px;
	background: var(--hdsu-modal-bg, #fff);
	box-shadow: 0 22px 68px rgba(0, 0, 0, 0.28);
}

.hdsu-popup-close {
	position: absolute;
	top: 11px;
	right: 13px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	border: 0 !important;
	border-radius: 999px;
	background: #8f9295 !important;
	color: #fff !important;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}

.hdsu-popup-close--text {
	width: auto;
	min-width: 86px;
	padding: 0 13px;
	font-size: 14px;
	text-transform: none;
}

.hdsu-popup-added {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	min-height: 154px;
	padding: 12px 78px 12px 12px;
	background: #efefef;
}

.hdsu-popup-added__image {
	overflow: hidden;
	width: 132px;
	height: 132px;
	border-radius: 8px;
	background: #e5e7eb;
}

.hdsu-popup-added__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hdsu-popup-added__content span {
	display: block;
	margin-bottom: 4px;
	color: #21b70d;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

.hdsu-popup-added__content strong {
	display: block;
	overflow-wrap: anywhere;
	color: #272a2f;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
}

.hdsu-popup-added__content small {
	display: block;
	margin-top: 7px;
	color: #5f6267;
	font-size: 17px;
	line-height: 1.2;
}

.hdsu-popup-discount {
	margin: 14px 20px 0;
	padding: 10px 12px;
	border: 1px solid #c7ead0;
	border-radius: 7px;
	background: #f2fff5;
}

.hdsu-popup-title {
	margin: 16px 20px 8px;
	font-size: 18px;
}

.hdsu-popup-offers {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	padding: 0 20px;
}

.hdsu-products-grid--popup {
	display: block;
	max-height: min(56vh, 590px);
	overflow: auto;
	padding-right: 6px;
}

.hdsu-products-grid--popup .hdsu-product-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 18px;
	min-height: 176px;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid #ebedf0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
}

.hdsu-products-grid--popup .hdsu-product-card__image {
	width: 132px;
	height: 132px;
	margin: 0;
	aspect-ratio: auto;
	border-radius: 6px;
}

.hdsu-products-grid--popup .hdsu-product-card__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	padding: 0;
}

.hdsu-products-grid--popup .hdsu-product-card__title {
	min-height: 0;
	font-size: 18px;
	font-weight: 500;
	-webkit-line-clamp: 2;
}

.hdsu-products-grid--popup .hdsu-variation-fields {
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 10px;
	max-width: 500px;
}

.hdsu-products-grid--popup .hdsu-product-card__price {
	margin-top: 0;
	text-align: left;
}

.hdsu-products-grid--popup .hdsu-product-card__price ins {
	font-size: 25px;
}

.hdsu-products-grid--popup .hdsu-product-card__actions {
	grid-template-columns: 58px minmax(180px, 220px);
	gap: 12px;
	justify-content: start;
	margin-top: 0;
}

.hdsu-products-grid--popup .hdsu-add-upsell,
.hdsu-primary-button {
	background: var(--hdsu-popup-button-bg, #2dbd16) !important;
	color: var(--hdsu-popup-button-text, #fff) !important;
}

.hdsu-popup-footer {
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-top: 1px solid #e7e8ea;
	background: #fff;
}

.hdsu-popup-cart-subtotal {
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 160px;
	color: #292c31;
	font-weight: 900;
}

.hdsu-popup-cart-subtotal::before {
	content: "\1F6D2";
	font-size: 17px;
	font-weight: 400;
}

.hdsu-popup-cart-subtotal span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.hdsu-popup-cart-subtotal strong {
	color: #292c31;
	font-size: 20px;
	font-weight: 900;
}

.hdsu-popup-footer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

.hdsu-secondary-button {
	border: 1px solid #7a7d82 !important;
	background: #fff !important;
	color: #1f2227 !important;
	font-weight: 500;
	text-transform: uppercase;
}

.hdsu-secondary-button:hover {
	color: #1f2227 !important;
}

.hdsu-product-upsells--thank-you {
	padding: 24px;
	border: 1px solid #dfe7df;
	border-radius: 12px;
	background: #fbfdf9;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.hdsu-thank-you-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin-bottom: 22px;
	padding: 22px;
	border-radius: 10px;
	background: linear-gradient(135deg, #17201a, #31532c);
	color: #fff;
}

.hdsu-thank-you-eyebrow {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.13);
	color: #bff7b0;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hdsu-thank-you-hero .hdsu-section-title {
	margin: 0 0 8px;
	color: #fff;
}

.hdsu-thank-you-hero .hdsu-section-description {
	max-width: 680px;
	color: #e6f3e4;
}

.hdsu-thank-you-discount-message {
	display: inline-block;
	margin: 14px 0 0;
	padding: 8px 11px;
	border-radius: 6px;
	background: #fff;
	color: #188400;
	font-weight: 800;
}

.hdsu-thank-you-badge {
	display: grid;
	place-items: center;
	min-width: 136px;
	min-height: 104px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 12px;
	background: #fff;
	color: #17201a;
	text-align: center;
}

.hdsu-thank-you-badge strong {
	display: block;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.05;
}

.hdsu-thank-you-badge span {
	display: block;
	margin-top: 6px;
	color: #5a626b;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.hdsu-products-grid--thank_you {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hdsu-product-card--thank_you {
	border-color: #dbe8d8;
}

@media (max-width: 900px) {
	.hdsu-products-grid {
		grid-template-columns: repeat(var(--hdsu-columns-tablet, 2), minmax(0, 1fr));
	}

	.hdsu-products-grid--popup .hdsu-variation-fields {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.hdsu-buy-more {
		padding: 14px;
	}

	.hdsu-buy-more__header h3 {
		font-size: 20px;
	}

	.hdsu-buy-more__header p,
	.hdsu-buy-more__tier p {
		font-size: 16px;
	}

	.hdsu-buy-more__tier {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.hdsu-tier-button {
		grid-column: 1 / -1;
		width: 100%;
	}

	.hdsu-popup-overlay {
		align-items: flex-end;
		padding: 10px;
	}

	.hdsu-popup-modal {
		width: 100%;
		max-height: calc(100vh - 20px);
		border-radius: 10px 10px 0 0;
	}

	.hdsu-popup-added {
		grid-template-columns: 76px minmax(0, 1fr);
		min-height: 104px;
		gap: 12px;
		padding: 12px 58px 12px 12px;
	}

	.hdsu-popup-added__image {
		width: 76px;
		height: 76px;
	}

	.hdsu-popup-added__content strong {
		font-size: 17px;
	}

	.hdsu-popup-added__content small,
	.hdsu-popup-added__content span {
		font-size: 14px;
	}

	.hdsu-popup-title,
	.hdsu-popup-discount {
		margin-left: 14px;
		margin-right: 14px;
	}

	.hdsu-popup-offers {
		padding-left: 14px;
		padding-right: 14px;
	}

	.hdsu-products-grid,
	.hdsu-products-grid--thank_you {
		grid-template-columns: repeat(var(--hdsu-columns-mobile, 1), minmax(0, 1fr));
	}

	.hdsu-products-grid--popup .hdsu-product-card {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		min-height: 0;
	}

	.hdsu-products-grid--popup .hdsu-product-card__image {
		width: 96px;
		height: 96px;
	}

	.hdsu-products-grid--popup .hdsu-product-card__title {
		font-size: 15px;
	}

	.hdsu-products-grid--popup .hdsu-product-card__actions {
		grid-template-columns: 54px minmax(0, 1fr);
	}

	.hdsu-popup-footer {
		align-items: stretch;
		flex-direction: column;
		padding: 14px;
	}

	.hdsu-popup-footer__actions,
	.hdsu-popup-footer__actions .button {
		width: 100%;
	}

	.hdsu-thank-you-hero {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.hdsu-thank-you-badge {
		width: 100%;
		min-height: 84px;
	}
}
