/* NEK Buy Box — quantity row, then Add To Cart + Buy Now. Colours are overridable variables. */
.nek-buy-box {
	--nek-atc-bg: #ffe100;
	--nek-atc-fg: #111111;
	--nek-buy-bg: #1b2a4a;
	--nek-buy-fg: #ffffff;
	--nek-btn-h: 48px;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	margin: 12px 0 1em;
}

/* Row 1: quantity on its own line. */
.nek-buy-box .quantity {
	flex: 0 0 100%;
	float: none !important;
	margin: 0 !important;
	text-align: left !important; /* theme centres the summary on phones */
}
.nek-buy-box .quantity .qty {
	width: 64px !important; /* themes (Astra) size .qty themselves */
	height: var(--nek-btn-h) !important;
	margin: 0;
	padding: 0 8px;
	text-align: center;
	font-size: 16px;
	border: 1px solid #c9ced6;
	border-radius: 2px;
	background: #fff;
}
.nek-buy-box .quantity .qty:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

/* Row 2: the two actions. */
.nek-buy-box .single_add_to_cart_button,
.nek-buy-box .nek-buy-now {
	flex: 0 0 auto !important; /* the theme stretches the button to full width on phones */
	width: auto !important;
	float: none !important;
	min-width: 150px;
	height: var(--nek-btn-h);
	margin: 0 !important;
	padding: 0 24px !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px !important; /* theme enlarges buttons on phones */
	font-weight: 600;
	line-height: 1 !important;
	white-space: nowrap;
	text-transform: capitalize;
	border: 0 !important;
	border-radius: 2px !important;
	cursor: pointer;
	transition: filter 0.15s;
}
.nek-buy-box .single_add_to_cart_button,
.nek-buy-box .single_add_to_cart_button:hover,
.nek-buy-box .single_add_to_cart_button:focus {
	background: var(--nek-atc-bg) !important;
	color: var(--nek-atc-fg) !important;
}
.nek-buy-box .nek-buy-now,
.nek-buy-box .nek-buy-now:hover,
.nek-buy-box .nek-buy-now:focus {
	background: var(--nek-buy-bg) !important;
	color: var(--nek-buy-fg) !important;
}
.nek-buy-box .single_add_to_cart_button:hover,
.nek-buy-box .nek-buy-now:hover {
	filter: brightness(0.94);
}
.nek-buy-box .nek-buy-now:hover {
	filter: brightness(1.25);
}
.nek-buy-box .single_add_to_cart_button:focus-visible,
.nek-buy-box .nek-buy-now:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}
/* Until a size is chosen WooCommerce marks Add To Cart disabled; Buy Now mirrors it. */
.nek-buy-box .single_add_to_cart_button.disabled,
.nek-buy-box .nek-buy-now.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Phones: both actions share the row equally. */
@media (max-width: 544px) {
	.nek-buy-box .single_add_to_cart_button,
	.nek-buy-box .nek-buy-now {
		flex: 1 1 0 !important;
		min-width: 0;
		padding: 0 12px !important;
	}
}
