/* HD Package SKU Selector - package selector + cart polish. */
.hd-pss {
	box-sizing: border-box;
	display: flow-root;
	width: 100%;
	max-width: 760px;
	margin: 20px 0 24px;
	padding: 22px 28px 28px;
	border: 1px solid #dde3ec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 44px rgba(17, 24, 39, .05);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #202124;
}

.hd-pss *,
.hd-pss *::before,
.hd-pss *::after {
	box-sizing: border-box;
}

body.hd-pss-active form.cart > .quantity,
body.hd-pss-active form.cart > button.single_add_to_cart_button {
	display: none !important;
}

body.hd-pss-active form.variations_form .woocommerce-variation-add-to-cart {
	display: none !important;
}

body.hd-pss-active .stock.out-of-stock,
body.hd-pss-active .woocommerce-variation-availability {
	display: none !important;
}

.hd-pss__title {
	display: none;
}

.hd-pss__availability {
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid #f3c4c8;
	border-radius: 12px;
	background: #fff7f7;
	color: #4f4f4f;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.hd-pss__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}

.hd-pss__color {
	min-height: 42px;
	padding: 9px 18px;
	border: 1px solid #dbe2ec;
	border-radius: 999px;
	background: #fff;
	color: #202124;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.hd-pss__color:hover,
.hd-pss__color:focus {
	border-color: #ed0014;
	outline: none;
}

.hd-pss__color.is-active {
	border-color: #ed0014;
	background: #fff3f3;
	color: #ed0014;
	box-shadow: 0 10px 24px rgba(237, 0, 20, .08);
}

.hd-pss__tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 38px;
	margin: 4px 0 0;
}

.hd-pss__tab {
	display: flex;
	min-width: 0;
	min-height: 134px;
	padding: 24px 18px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 28px;
	cursor: pointer;
	background: #fff;
	border: 1px solid #dfe5ee;
	border-radius: 15px;
	color: #282828 !important;
	line-height: 1.1;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: 0 12px 24px rgba(17, 24, 39, .03);
	transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.hd-pss__tab:hover,
.hd-pss__tab:focus {
	border-color: rgba(229, 9, 20, .45);
	color: #282828 !important;
	outline: none;
}

.hd-pss__tab.is-active {
	border-color: #ff202a;
	background: #fff6f6;
	color: #282828 !important;
	box-shadow: 0 18px 34px rgba(229, 9, 20, .08);
}

.hd-pss__tab-label,
.hd-pss__tab-sub,
.hd-pss__tab-price {
	display: block;
	width: 100%;
	color: inherit !important;
	letter-spacing: 0;
	text-align: center;
}

.hd-pss__tab-label {
	font-size: 18px;
	font-weight: 900;
	text-transform: uppercase;
}

.hd-pss__tab-sub {
	font-size: 18px;
	font-weight: 800;
	color: #666 !important;
	text-transform: uppercase;
}

.hd-pss__tab.is-active .hd-pss__tab-sub {
	color: #e50914 !important;
}

.hd-pss__tab-price {
	display: none;
}

.hd-pss__buy {
	display: grid;
	grid-template-columns: 150px minmax(170px, 1fr) minmax(220px, auto);
	gap: 28px;
	align-items: center;
	margin: 38px 0 0;
	padding-top: 28px;
	border-top: 1px solid #e0e0e0;
}

.hd-pss__qty {
	display: grid;
	grid-template-columns: 48px minmax(54px, 1fr) 48px;
	width: 150px;
	height: 46px;
	align-items: stretch;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
}

.hd-pss__qty-btn {
	width: 48px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #222;
	cursor: pointer;
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
}

.hd-pss__qty-btn:hover,
.hd-pss__qty-btn:focus {
	background: #f6f6f6;
	color: #222;
	outline: none;
}

.hd-pss__qty-input {
	width: 100%;
	min-width: 54px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid #e6e6e6;
	border-right: 1px solid #e6e6e6;
	background: #fff;
	color: #111;
	text-align: center;
	font: 500 20px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	appearance: textfield;
	-moz-appearance: textfield;
}

.hd-pss__qty-input::-webkit-inner-spin-button,
.hd-pss__qty-input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.hd-pss__price {
	display: flex;
	min-width: 0;
	flex-direction: column;
	line-height: 1.16;
}

.hd-pss__price-total {
	color: #e50914;
	font-size: 28px;
	font-weight: 900;
	letter-spacing: 0;
	white-space: nowrap;
}

.hd-pss__price-note {
	margin-top: 3px;
	color: #222;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0;
}

.hd-pss__cta {
	min-width: 220px;
	min-height: 64px;
	padding: 0 36px;
	background: #e50914;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: 900 20px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.hd-pss__cta:hover,
.hd-pss__cta:focus {
	background: #c90811;
	color: #fff;
	outline: none;
}

.hd-pss__cta:disabled {
	background: #9a9a9a;
	cursor: default;
}

.hd-pss--notify-preview .hd-pss__cta,
.hd-pss--notify-preview .hd-pss__cta:visited {
	background: #c72035;
	color: #fff;
	cursor: pointer;
}

.hd-pss--notify-preview .hd-pss__cta:hover,
.hd-pss--notify-preview .hd-pss__cta:focus {
	background: #ad1b2e;
	color: #fff;
	outline: none;
}

.hd-pss__notice {
	min-height: 52px;
	margin-top: 30px;
	padding: 14px 18px;
	border: 1px solid #dfe5ee;
	border-radius: 12px;
	background: #fff;
	color: #6c6f75;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0;
}

.hd-pss__notice-switch {
	margin-left: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #e50914;
	cursor: pointer;
	font: inherit;
	font-weight: 900;
	letter-spacing: 0;
}

.hd-pss__notice-switch:hover,
.hd-pss__notice-switch:focus {
	color: #c90811;
	text-decoration: underline;
	outline: none;
}

.hd-pss__table {
	display: block;
	width: 100%;
	max-width: 760px;
	margin: 22px 0 24px;
	overflow: hidden;
	border: 1px solid #e1e5eb;
	border-radius: 14px;
	background: #fff;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #202124;
}

.hd-pss__table-head,
.hd-pss__table-row {
	display: grid;
	grid-template-columns: minmax(220px, 1.35fr) minmax(150px, .85fr) minmax(130px, .75fr);
	align-items: center;
	gap: 24px;
	padding: 18px 18px;
}

.hd-pss__table-head {
	background: #f8f8f8;
	color: #6f6f6f;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.hd-pss__table-row {
	min-height: 64px;
	border-top: 1px solid #eeeeee;
	color: #202124;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
}

.hd-pss__table-row span:nth-child(2) {
	color: #e50914;
	font-weight: 900;
}

.hd-pss__table-row.is-active {
	background: #fff4f4;
	box-shadow: inset 4px 0 0 #e50914;
	color: #202124;
	font-weight: 500;
}

.hd-pss__table-row.is-active span:first-child,
.hd-pss__table-row.is-active span:nth-child(2) {
	color: #e50914;
	font-weight: 900;
}

.widget_shopping_cart_content .hd-package-total-pieces {
	display: none !important;
}

.woocommerce-cart-form .hd-package-total-pieces,
.woocommerce-checkout-review-order .hd-package-total-pieces {
	display: block;
	margin-top: 4px;
	color: #666;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

.woocommerce-cart-form .hd-package-total-pieces strong,
.woocommerce-checkout-review-order .hd-package-total-pieces strong {
	color: #333;
	font-weight: 700;
}

.widget_shopping_cart_content .hd-pss-cart-thumb {
	object-fit: contain;
}

@media (max-width: 48em) {
	.hd-pss {
		max-width: none;
		padding: 18px 16px 22px;
		border-radius: 12px;
	}

	.hd-pss__tabs {
		gap: 10px;
	}

	.hd-pss__tab {
		min-height: 98px;
		padding: 16px 8px;
		gap: 18px;
		border-radius: 12px;
	}

	.hd-pss__tab-label {
		font-size: 13px;
	}

	.hd-pss__tab-sub {
		font-size: 14px;
	}

	.hd-pss__buy {
		grid-template-columns: 150px 1fr;
		grid-template-areas: "qty price" "cta cta";
		gap: 14px;
		margin-top: 26px;
		padding-top: 24px;
	}

	.hd-pss__qty {
		grid-area: qty;
	}

	.hd-pss__price {
		grid-area: price;
		align-items: flex-start;
		text-align: left;
	}

	.hd-pss__price-total {
		font-size: 24px;
	}

	.hd-pss__price-note {
		font-size: 14px;
	}

	.hd-pss__cta {
		grid-area: cta;
		width: 100%;
		min-height: 56px;
		font-size: 18px;
	}

	.hd-pss__notice {
		margin-top: 18px;
		font-size: 15px;
	}

	.hd-pss__table {
		max-width: none;
		border-radius: 12px;
	}

	.hd-pss__table-head,
	.hd-pss__table-row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 14px 16px;
	}

	.hd-pss__table-head {
		display: none;
	}

	.hd-pss__table-row {
		font-size: 15px;
	}
}


/* Cart/checkout package metadata: keep Woo's line-item facts readable. */
.woocommerce-cart .cart_item dl.variation dt.variation-Totalpieces,
.woocommerce-cart .cart_item dl.variation dt.variation-Priceperunit,
.woocommerce-checkout-review-order .cart_item dl.variation dt.variation-Totalpieces,
.woocommerce-checkout-review-order .cart_item dl.variation dt.variation-Priceperunit,
.widget_shopping_cart_content dl.variation dt.variation-Totalpieces,
.widget_shopping_cart_content dl.variation dt.variation-Priceperunit {
display: inline !important;
float: none !important;
clear: none !important;
margin: 0 4px 0 0 !important;
padding: 0 !important;
color: #333 !important;
font-weight: 700 !important;
line-height: 1.45 !important;
}

.woocommerce-cart .cart_item dl.variation dd.variation-Totalpieces,
.woocommerce-cart .cart_item dl.variation dd.variation-Priceperunit,
.woocommerce-checkout-review-order .cart_item dl.variation dd.variation-Totalpieces,
.woocommerce-checkout-review-order .cart_item dl.variation dd.variation-Priceperunit,
.widget_shopping_cart_content dl.variation dd.variation-Totalpieces,
.widget_shopping_cart_content dl.variation dd.variation-Priceperunit {
display: inline !important;
float: none !important;
clear: none !important;
margin: 0 14px 0 0 !important;
padding: 0 !important;
color: #666 !important;
line-height: 1.45 !important;
}

.woocommerce-cart .cart_item dl.variation dd.variation-Totalpieces p,
.woocommerce-cart .cart_item dl.variation dd.variation-Priceperunit p,
.woocommerce-checkout-review-order .cart_item dl.variation dd.variation-Totalpieces p,
.woocommerce-checkout-review-order .cart_item dl.variation dd.variation-Priceperunit p,
.widget_shopping_cart_content dl.variation dd.variation-Totalpieces p,
.widget_shopping_cart_content dl.variation dd.variation-Priceperunit p {
display: inline !important;
margin: 0 !important;
padding: 0 !important;
color: inherit !important;
line-height: inherit !important;
}

.woocommerce-cart .cart_item dl.variation dd.variation-Priceperunit::after,
.woocommerce-checkout-review-order .cart_item dl.variation dd.variation-Priceperunit::after,
.widget_shopping_cart_content dl.variation dd.variation-Priceperunit::after {
content: "";
display: block;
height: 0;
}

/* Gold-standard compact selector density for plugin-handled product pages. */
body.hd-pss-selector-surface .hd-pss {
  max-width: 700px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}
body.hd-pss-selector-surface .hd-pss__availability {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.35;
}
body.hd-pss-selector-surface .hd-pss__tabs {
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}
body.hd-pss-selector-surface .hd-pss__tab {
  min-height: 66px;
  padding: 9px 8px;
  border-radius: 10px;
  gap: 5px;
}
body.hd-pss-selector-surface .hd-pss__tab-label {
  font-size: 13px;
  line-height: 1.1;
  margin-bottom: 0;
}
body.hd-pss-selector-surface .hd-pss__tab-sub {
  font-size: 12px;
  line-height: 1.15;
}
body.hd-pss-selector-surface .hd-pss__buy {
  grid-template-columns: auto minmax(100px, 1fr) 170px;
  gap: 12px;
  margin-top: 0;
  padding-top: 10px;
}
body.hd-pss-selector-surface .hd-pss__qty {
  width: 112px;
  height: 36px;
  grid-template-columns: 34px minmax(44px, 1fr) 34px;
}
body.hd-pss-selector-surface .hd-pss__qty-btn,
body.hd-pss-selector-surface .hd-pss__qty-input {
  height: 36px;
}
body.hd-pss-selector-surface .hd-pss__qty-btn {
  width: 34px;
  font-size: 18px;
}
body.hd-pss-selector-surface .hd-pss__qty-input {
  min-width: 44px;
  font-size: 15px;
  font-weight: 700;
}
body.hd-pss-selector-surface .hd-pss__price-total {
  font-size: 21px;
  line-height: 1;
}
body.hd-pss-selector-surface .hd-pss__price-note {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}
body.hd-pss-selector-surface .hd-pss__cta {
  min-width: 0;
  min-height: 40px;
  width: 100%;
  max-width: 170px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
}
body.hd-pss-selector-surface .hd-pss__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 0;
  margin: 9px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.3;
}
body.hd-pss-selector-surface .hd-pss__notice-switch {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
}
body.hd-pss-selector-surface .hd-pss__table {
  max-width: 700px;
  margin-top: 9px;
  border-radius: 10px;
  box-shadow: none;
}
body.hd-pss-selector-surface .hd-pss__table::before {
  content: "Bulk Pricing";
  display: block;
  padding: 11px 14px 7px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
body.hd-pss-selector-surface .hd-pss__table-head,
body.hd-pss-selector-surface .hd-pss__table-row {
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  padding: 8px 14px;
}
body.hd-pss-selector-surface .hd-pss__table-head {
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
body.hd-pss-selector-surface .hd-pss__table-head span:nth-child(3),
body.hd-pss-selector-surface .hd-pss__table-row span:nth-child(3) {
  display: none;
}
body.hd-pss-selector-surface .hd-pss__table-row span {
  font-size: 13px;
  line-height: 1.25;
}
@media only screen and (max-width: 48em) {
  body.hd-pss-selector-surface .hd-pss {
    padding: 14px;
  }
  body.hd-pss-selector-surface .hd-pss__tabs {
    gap: 8px;
  }
  body.hd-pss-selector-surface .hd-pss__tab {
    min-height: 72px;
    padding: 10px 6px;
  }
  body.hd-pss-selector-surface .hd-pss__buy {
    grid-template-columns: 1fr;
  }
  body.hd-pss-selector-surface .hd-pss__notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  body.hd-pss-selector-surface .hd-pss__notice-switch {
    margin-left: 0;
  }
  body.hd-pss-selector-surface .hd-pss__table-head,
  body.hd-pss-selector-surface .hd-pss__table-row {
    grid-template-columns: 1.2fr .8fr;
    padding: 9px 12px;
  }
}

/* Hide duplicate native Woo price on plugin selector surfaces; plugin pricing remains visible. */
body.hd-pss-active .product-page-price,
body.hd-pss-notify-preview .product-page-price {
  display: none !important;
}

/* Match Notify Me CTA red to Add to Cart on preview surfaces. */
body.hd-pss-notify-preview .hd-pss--notify-preview .hd-pss__cta,
body.hd-pss-notify-preview .hd-pss--notify-preview .hd-pss__cta:visited {
  background: #e50914;
}
body.hd-pss-notify-preview .hd-pss--notify-preview .hd-pss__cta:hover,
body.hd-pss-notify-preview .hd-pss--notify-preview .hd-pss__cta:focus {
  background: #c90811;
}

/* SEO-safe duplicate legacy bulk table hide for existing package selector surfaces. */
body.hd-pss-active.single-product .product-main .tablenamte,
body.hd-pss-active.single-product .product-main table.pricing,
body.hd-pss-notify-preview.single-product .product-main .tablenamte,
body.hd-pss-notify-preview.single-product .product-main table.pricing,
body.hd-pss-active.single-product .tablenamte,
body.hd-pss-active.single-product table.pricing,
body.hd-pss-notify-preview.single-product .tablenamte,
body.hd-pss-notify-preview.single-product table.pricing {
  display: none !important;
}
