.kev-coffee-product-purchase {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
	margin-block: 0.875rem 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

/* Keep the purchase controls grouped without drawing a second card inside the summary. */
.single-product .kev-coffee-product-purchase__form,
.single-product .kev-coffee-product-purchase form.cart,
.single-product .kev-coffee-product-purchase form.variations_form,
.single-product .kev-coffee-product-purchase .single_variation_wrap,
.single-product .kev-coffee-product-purchase .woocommerce-variation {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.kev-coffee-product-purchase__notices:empty {
	display: none;
}

.single-product .woocommerce-notices-wrapper,
.kev-coffee-product-purchase__notices {
	color: #c0b8b0;
}

.kev-coffee-product-purchase form.cart,
.kev-coffee-product-purchase .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	margin: 0;
}

.kev-coffee-product-purchase form.cart:not(.variations_form),
.kev-coffee-product-purchase .woocommerce-variation-add-to-cart {
	direction: rtl;
}

.kev-coffee-product-purchase .woocommerce-variation-availability,
.kev-coffee-product-purchase .woocommerce-variation-availability .stock {
	display: none !important;
}

.kev-coffee-product-purchase form.variations_form {
	display: grid;
	gap: 0.625rem;
}

.kev-coffee-product-purchase .quantity {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	border: 1px solid #34393b;
	border-radius: 0.25rem;
	background: #090b0c;
}

.kev-coffee-product-purchase .kev-coffee-quantity-step {
	width: 2.75rem;
	min-height: 3rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #f1e8de;
	font: inherit;
	font-size: 1.25rem;
	cursor: pointer;
}

.kev-coffee-product-purchase .quantity .qty {
	width: 4.5rem;
	min-height: 3rem;
	margin: 0;
	border: 0;
	background: transparent;
	color: #f1e8de;
	text-align: center;
}

.kev-coffee-product-purchase .single_add_to_cart_button {
	flex: 1 1 12rem;
	min-height: 3rem;
	border: 0;
	border-radius: 0.25rem;
	background: #d99b58;
	color: #17100b;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.kev-coffee-product-purchase .single_add_to_cart_button:disabled,
.kev-coffee-product-purchase .single_add_to_cart_button.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.kev-coffee-product-purchase .variations {
	flex: 1 0 100%;
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	margin: 0 !important;
	border: 0;
}

.kev-coffee-product-purchase .variations tbody,
.kev-coffee-product-purchase .variations tr {
	display: grid;
	gap: 0.375rem;
}

.kev-coffee-product-purchase .variations tr + tr {
	margin-block-start: 0.75rem;
}

.kev-coffee-product-purchase .variations th,
.kev-coffee-product-purchase .variations td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	text-align: start;
}

.kev-coffee-product-purchase .variations label {
	color: #c7beb5;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.5;
}

.kev-coffee-product-purchase .variations select {
	width: 100%;
	max-width: 100%;
	min-height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid #34393b;
	border-radius: 0.25rem;
	background: #090b0c;
	color: #f1e8de;
}

.kev-coffee-product-purchase .variations select.kev-coffee-choice-select--enhanced {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.kev-coffee-variation-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.kev-coffee-variation-choice {
	max-width: 100%;
	min-height: 2.25rem;
	padding: 0.4rem 0.9rem;
	border: 1px solid #3a3f41;
	border-radius: 0.2rem;
	background: transparent;
	color: #e9dfd5;
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
	cursor: pointer;
}

.kev-coffee-variation-choice[aria-pressed="true"] {
	border-color: #d99b58;
	background: #d99b58;
	color: #17100b;
	font-weight: 700;
}

.kev-coffee-variation-choice:disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.kev-coffee-product-purchase .reset_variations {
	display: none !important;
}

.kev-coffee-product-purchase .single_variation_wrap,
.kev-coffee-product-purchase .woocommerce-variation {
	display: grid;
	gap: 0.75rem;
}

.kev-coffee-product-purchase .woocommerce-variation-price .price {
	margin: 0;
	color: #e0a15d;
	font-size: clamp(1.375rem, 2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.45;
}

.kev-coffee-product-purchase .woocommerce-variation-price .price del {
	display: none;
}

.kev-coffee-product-purchase .woocommerce-variation-price .price ins {
	text-decoration: none;
}

.kev-coffee-product-purchase-bar {
	display: none;
}

@media (max-width: 767px) {
	.single-product .kev-coffee-mobile-bottom-nav__spacer {
		height: calc(10rem + env(safe-area-inset-bottom));
	}

	.kev-coffee-product-purchase-bar {
		position: fixed;
		z-index: 90;
		inset-inline: 0;
		bottom: calc(4.75rem + env(safe-area-inset-bottom));
		display: grid;
		gap: 0.4rem;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0.55rem max(1rem, env(safe-area-inset-left)) 0.65rem max(1rem, env(safe-area-inset-right));
		border: 1px solid #2a2e30;
		border-inline: 0;
		border-radius: 0;
		background: rgba(9, 11, 12, 0.97);
		box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.35);
		box-sizing: border-box;
		contain: layout paint;
	}

	.kev-coffee-product-purchase-bar__price {
		min-height: 1.65rem;
		color: #e0a15d;
		font-size: 1.05rem;
		font-weight: 800;
		line-height: 1.5;
		text-align: right;
	}

	.kev-coffee-product-purchase-bar__price .price,
	.kev-coffee-product-purchase-bar__price ins {
		color: inherit;
		text-decoration: none;
	}

	.kev-coffee-product-purchase-bar__price del {
		display: none;
	}

	.kev-coffee-product-purchase-bar__controls {
		display: flex;
		align-items: stretch;
		gap: 0.5rem;
		width: 100%;
	}

	.single-product:not(:has(#kev-coffee-product-purchase form.cart)) .kev-coffee-product-purchase-bar {
		display: none;
	}

	.kev-coffee-product-purchase-bar__quantity {
		display: grid;
		grid-template-columns: 2rem 2.25rem 2rem;
		align-items: center;
		min-height: 2.5rem;
		border: 1px solid #34393b;
		border-radius: 0.25rem;
		background: #111415;
	}

	.kev-coffee-product-purchase-bar__step {
		min-height: 2.5rem;
		padding: 0;
		border: 0;
		background: transparent;
		color: #f1e8de;
		font: inherit;
		font-size: 1.25rem;
	}

	.kev-coffee-product-purchase-bar__value {
		color: #f1e8de;
		font-weight: 700;
		text-align: center;
	}

	.kev-coffee-product-purchase-bar__action {
		flex: 1;
		min-height: 2.5rem;
		padding: 0.5rem 0.75rem;
		border: 0;
		border-radius: 0.25rem;
		background: #d99b58;
		color: #17100b;
		font-weight: 700;
		text-decoration: none;
	}

	.kev-coffee-product-information__price,
	.kev-coffee-product-purchase .woocommerce-variation-price,
	.kev-coffee-product-purchase form.cart:not(.variations_form) > .quantity,
	.kev-coffee-product-purchase form.cart:not(.variations_form) > .single_add_to_cart_button,
	.kev-coffee-product-purchase .woocommerce-variation-add-to-cart > .quantity,
	.kev-coffee-product-purchase .woocommerce-variation-add-to-cart > .single_add_to_cart_button {
		display: none !important;
	}

	.kev-coffee-product-purchase {
		gap: 0.625rem;
		margin-block: 0.625rem;
		padding: 0;
	}

	.kev-coffee-product-purchase form.cart,
	.kev-coffee-product-purchase .woocommerce-variation-add-to-cart {
		gap: 0.5rem;
	}

	.kev-coffee-product-purchase form.variations_form {
		gap: 0.625rem;
	}

	.kev-coffee-product-purchase .quantity,
	.kev-coffee-product-purchase .kev-coffee-quantity-step,
	.kev-coffee-product-purchase .quantity .qty,
	.kev-coffee-product-purchase .single_add_to_cart_button {
		min-height: 2.5rem;
	}

	.kev-coffee-product-purchase .kev-coffee-quantity-step {
		width: 2.25rem;
	}

	.kev-coffee-product-purchase .quantity .qty {
		width: 3rem;
	}
}

/* Simple-product controls are rendered in the mobile purchase bar. */
@media (max-width: 767px) {
	.single-product .product-type-simple .summary .kev-coffee-product-purchase {
		margin-block: 0;
		padding: 0;
		gap: 0;
	}
	.single-product .product-type-simple .kev-coffee-product-purchase form.cart { margin: 0; }
}
