/* Creative Lab quantity pack pricing — scoped to .cl-qty-* only.
 * Do NOT restyle Rey's native .quantity / .rey-qtyField / .qty controls.
 * Pack products use the same +/- pill as every other PDP (theme-global.css). */

.cl-qty-pricing {
	margin: 0 0 0.35rem;
	max-width: none;
	width: 100%;
}

/* Rey wraps qty + button in a flex row. Keep the price list on its own row above them. */
body.postid-20862 form.cart .rey-cartBtnQty > .cl-qty-pricing,
form.cart .rey-cartBtnQty > .cl-qty-pricing {
	flex: 1 0 100%;
	width: 100%;
	max-width: none;
}

.cl-qty-pricing[hidden] {
	display: none !important;
}

.cl-qty-pricing__title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	margin: 0 0 0.45rem;
	color: #1a1614;
}

/* Compact live price list (not cards). */
.cl-qty-pricing__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0 0 0.35rem;
	padding: 0.15rem 0;
	border-top: 1px solid #e8e2da;
	border-bottom: 1px solid #e8e2da;
}

.cl-qty-pricing__row {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 0.35rem 0.75rem;
	align-items: baseline;
	width: 100%;
	margin: 0;
	padding: 0.28rem 0.15rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1a1614;
	text-align: left;
	cursor: pointer;
	font: inherit;
	line-height: 1.25;
	transition: background 0.12s ease;
}

.cl-qty-pricing__row:hover {
	background: #f7f4f0;
}

.cl-qty-pricing__row.is-selected {
	background: #f3eee8;
}

.cl-qty-pricing__row:focus-visible {
	outline: 2px solid #2a211c;
	outline-offset: 1px;
}

.cl-qty-pricing__row-qty {
	font-weight: 650;
	font-size: 0.92rem;
}

.cl-qty-pricing__row-meta {
	min-width: 0;
}

.cl-qty-pricing__hint {
	font-size: 0.72rem;
	color: #6b625a;
}

.cl-qty-pricing__row-price {
	justify-self: end;
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cl-qty-pricing__row-price del {
	margin-right: 0.35rem;
	font-size: 0.78rem;
	color: #8a827a;
	text-decoration: line-through;
}

.cl-qty-pricing__row-price ins,
.cl-qty-pricing__row-price .cl-qty-pricing__sale {
	text-decoration: none;
	font-weight: 700;
	font-size: 0.92rem;
	color: #1a1614;
}

.cl-qty-pricing__row-price .cl-qty-pricing__regular {
	font-weight: 650;
	font-size: 0.92rem;
}

/* One line under the 1–5 list — not a second price box. */
.cl-qty-pricing__extra {
	margin: 0.2rem 0 0.85rem;
	padding: 0.35rem 0 0;
	font-size: 0.84rem;
	line-height: 1.4;
	color: #6b625a;
	background: transparent;
	border: 0;
	border-top: 0;
}

.cl-qty-pricing__extra[hidden] {
	display: none !important;
}

.cl-qty-pricing__msg {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	color: #8a4b2a;
}

.cl-qty-pricing__msg[hidden] {
	display: none !important;
}

/* Hide leftover savings / static table / old radio / custom step markup if cached. */
.cl-qty-pricing__savings,
.cl-qty-pricing__options,
.cl-qty-price-table,
.cl-qty-pricing__pack-qty,
.cl-qty-pricing__step {
	display: none !important;
}

/* Hide only the «Antal juleophæng» attribute row and its <select>.
   Never hide .price, .woocommerce-Price-amount, .woocommerce-variation-price,
   .single_variation, or the summary price. The package total is .cl-qty-total. */
body.postid-20862.cl-qty-pricing-active form.variations_form table.variations,
body.postid-20862.cl-qty-pricing-active form.variations_form .variations,
body.postid-20862.cl-qty-pricing-active form.variations_form .reset_variations,
body.postid-20862.cl-qty-pricing-active form.variations_form .variations select,
body.postid-20862.cl-qty-pricing-active form.variations_form .variations .__s-wrapper {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* PEWC's calculator line is not the package total. It stays collapsed so it
   cannot flash 0,00 kr. The visible total is .cl-qty-total. */
body.postid-20862.cl-qty-pricing-active form.cart .pewc-total-only {
	display: none !important;
}

/* Own package total, immediately above the qty pill. Always visible. */
body.postid-20862 .cl-qty-total {
	display: block !important;
	visibility: visible !important;
	height: auto !important;
	min-height: 1.1em;
	overflow: visible !important;
	pointer-events: auto !important;
	flex: 1 0 100%;
	width: 100%;
	max-width: none;
	margin: 0.15rem 0 0.85rem;
	padding: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 2.15rem;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: #1a1614;
	background: transparent;
	border: 0;
}

body.postid-20862 form.cart .rey-cartBtnQty > .cl-qty-total {
	flex: 1 0 100%;
	width: 100%;
}

body.postid-20862 .cl-qty-total .woocommerce-Price-amount,
body.postid-20862 .cl-qty-total .amount,
body.postid-20862 .cl-qty-total bdi {
	font-size: inherit !important;
	font-weight: inherit;
	line-height: inherit;
	color: inherit !important;
}

body.postid-20862 .cl-upload-hint {
	margin: 0 0 0.55rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0;
	text-transform: none;
	color: #3c342e;
}

.cl-qty-pieces {
	display: inline-block;
	min-width: 3rem;
	font-weight: 650;
}

@media (max-width: 720px) {
	.cl-qty-pricing__row {
		grid-template-columns: 4.5rem 1fr;
		gap: 0.2rem 0.5rem;
		padding: 0.3rem 0.1rem;
	}

	.cl-qty-pricing__hint {
		font-size: 0.68rem;
	}

	.cl-qty-pricing__extra {
		font-size: 0.8rem;
	}
}
