/* Quick Buy Packs — adapted from Shopify Dawn */

.npd-card .quick-buy-packs,
.npd-card .quick-buy-packs * {
	font-family: 'Outfit', sans-serif;
}

.quick-buy-packs {
	--npd-pack-fg: #121212;
	--npd-pack-bg: #ffffff;
	--npd-pack-accent: #459bff;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.65rem 0 0.75rem;
	position: relative;
	flex: 1 1 100%;
	width: 100%;
	margin-top: 0;
	border-top: 1px solid rgba(18, 18, 18, 0.08);
	box-sizing: border-box;
	z-index: 1;
}

.quick-buy-packs__variants {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem;
	justify-content: flex-start;
	align-items: center;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 1px;
	overflow: auto;
}

.quick-buy-packs__variants::-webkit-scrollbar {
	display: none;
}

.quick-buy-packs__variant-pill {
	appearance: none;
	background: #f3f5f8;
	border: 1px solid rgba(18, 18, 18, 0.1);
	border-radius: 10px;
	color: var(--npd-pack-fg);
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.3rem 1rem;
	transition: all 0.15s ease;
	white-space: nowrap;
	line-height: 1.3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.quick-buy-packs__variant-pill:hover:not(:disabled) {
	border-color: var(--npd-pack-fg);
	background: rgba(18, 18, 18, 0.05);
}

.quick-buy-packs__variant-pill--selected:not(:disabled) {
	background: var(--npd-pack-accent);
	border-color: #ffffff;
	color: #ffffff;
	box-shadow: 0 0 0 1px var(--npd-pack-accent);
}

.quick-buy-packs__variant-pill--selected:hover:not(:disabled) {
	background: #459bff;
	color: #ffffff;
	border-color: #ffffff;
}

.quick-buy-packs__variant-pill--unavailable {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.quick-buy-packs__variant-pill:focus-visible {
	outline: 2px solid var(--npd-pack-fg);
	outline-offset: 2px;
}

.quick-buy-packs__pack-options {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	flex-wrap: wrap;
}

.quick-buy-packs__pack-btn {
	appearance: none;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 8px;
	color: #4d4d4d;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row;
	gap: 0.15rem;
	min-width: 58px;
	height: auto;
	padding: 0.3rem 0.3rem;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 0 0 1px #ececec;
	flex-wrap: nowrap;
	width: calc(50% - 4px);
	box-sizing: border-box;
}

.quick-buy-packs__pack-btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
	pointer-events: none;
}

.quick-buy-packs__pack-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 4px -2px rgba(0, 106, 230, 0.4), 0 0 0 1px #459bff;
}

.quick-buy-packs__pack-btn:active:not(:disabled) {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 106, 230, 0.3);
}

.quick-buy-packs__pack-btn--disabled {
	cursor: not-allowed;
	opacity: 0.5;
	box-shadow: 0 0 0 1px #ececec;
	background-color: #dddddd;
	border-color: #ececec;
}

.quick-buy-packs__pack-btn--disabled:hover {
	transform: none;
	box-shadow: 0 0 0 1px #ececec;
}

.quick-buy-packs__pack-btn:focus-visible {
	outline: 2px solid var(--npd-pack-fg);
	outline-offset: 2px;
}

.quick-buy-packs__pack-qty {
	font-size: 0.7rem;
	font-weight: 700;
	background: #f4f4f4;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.quick-buy-packs__pack-price {
	font-size: 0.75rem;
	font-weight: 700;
	background-color: var(--npd-pack-accent);
	color: #fff;
	padding: 2px 8px;
	border-radius: 40px;
	line-height: 1.3;
	white-space: nowrap;
}

.quick-buy-packs__pack-price .amount,
.quick-buy-packs__pack-price .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
	font-size: inherit;
}

.quick-buy-packs__loading {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	border-radius: inherit;
}

.quick-buy-packs__loading[hidden] {
	display: none;
}

.quick-buy-packs__spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(18, 18, 18, 0.15);
	border-top-color: var(--npd-pack-accent);
	border-radius: 50%;
	animation: npdPackSpin 0.7s linear infinite;
}

@keyframes npdPackSpin {
	to {
		transform: rotate(360deg);
	}
}

.quick-buy-packs__pack-btn--adding {
	animation: npdPackBtnPulse 0.3s ease;
}

@keyframes npdPackBtnPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(0.95);
	}
	100% {
		transform: scale(1);
	}
}

.quick-buy-packs__pack-btn--success {
	background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
	box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
}

.quick-buy-packs .variant-title {
	font-weight: 700;
}

.quick-buy-packs .format-label {
	font-size: 0.65rem;
	font-weight: 500;
	opacity: 0.9;
}

@media (max-width: 749px) {
	.quick-buy-packs__variant-pill {
		font-size: 0.9rem;
	}

	.quick-buy-packs__pack-qty {
		font-size: 0.7rem;
		width: 24px;
		height: 24px;
	}

	.quick-buy-packs__pack-price {
		font-size: 0.75rem;
	}
}

.tag-99p-deal .quick-buy-packs__pack-btn {
	width: 100%;
	padding: 3px 4px;
}

.tag-99p-deal .quick-buy-packs__pack-price {
	padding: 5px 10px;
}

.promo-offer-box {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	gap: 14px;
	padding: 14px 16px;
	margin: 0;
	box-sizing: border-box;
	background: linear-gradient(110deg, #fff1f4 0%, #fff7f8 50%, #fff2f4 100%);
	border: 1px solid #ffd9e0;
	border-radius: 14px;
}

.promo-offer-box__price {
	flex: 0 0 38%;
	width: 38%;
	min-width: 90px;
}

.promo-offer-box__eyebrow {
	display: block;
	margin-bottom: 3px;
	color: #ee1749;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.promo-offer-box__amount,
.promo-offer-box__amount .woocommerce-Price-amount,
.promo-offer-box__amount .woocommerce-Price-currencySymbol,
.promo-offer-box__amount bdi {
	display: block;
	color: #f20843;
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.promo-offer-box__amount .woocommerce-Price-amount,
.promo-offer-box__amount .woocommerce-Price-currencySymbol,
.promo-offer-box__amount bdi {
	display: inline;
}

.promo-offer-box__divider {
	flex: 0 0 1px;
	width: 1px;
	min-width: 1px;
	height: 52px;
	background: #e5d4d8;
}

.promo-offer-box__message {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	max-width: none;
	gap: 9px;
	box-sizing: border-box;
}

.promo-offer-box__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #ffe0e7;
	color: #f20843;
}

.promo-offer-box__icon svg {
	width: 16px;
	height: 16px;
	margin-left: 4px;
}

.promo-offer-box__copy {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	max-width: none;
	box-sizing: border-box;
}

.promo-offer-box__headline {
	display: block;
	width: 100%;
	color: #111827;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: normal;
}

.npd-99p-notice {
	flex: 1 1 100%;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 5px 10px;
    box-sizing: border-box;
    border: 1px solid #ffd0d8;
    border-radius: 10px;
    background: #fff1f4;
    color: #9f1239;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.promo-offer-box__subtext {
	display: block;
	width: 100%;
	margin-top: 3px;
	color: #8b8b8b;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.3;
	white-space: normal;
}

.tag-99p-deal .npd-card__badge {
    display: none;
}

.product_tag-20off:before {
    content: '20% Off';
    background: red;
    color: #fff;
    font-weight: bold;
    font-size: .8rem;
    padding: 0px 10px 10px 10px;
    right: 0;
    top: -20px;
    position: absolute;
    border-top-right-radius: 16px;
    border-top-left-radius: 10px;
}

.product_tag-20off,
.product_tag-10for25 {
    position: relative;
}

.product_tag-10for25:before {
    content: '10 for £25';
    background: red;
    color: #fff;
    font-weight: bold;
    font-size: .8rem;
    padding: 0px 10px 10px 10px;
    right: 0;
    top: -20px;
    position: absolute;
    border-top-right-radius: 16px;
    border-top-left-radius: 10px;
}