/* Homepage "Quick add" products (parts/homepage-quick-add.php).
   Card look comes from product-cards.css; this file adds the section,
   the picker and the add-to-basket button. */

.fqa-section {
	padding: 56px 0 64px;
}

.fqa-section.fqa-bg-grey {
	background-color: #f8f8f8;
}

.fqa-section.fqa-bg-white {
	background-color: #ffffff;
}

.fqa-section.fqa-bg-white .fqa-products > .product {
	--pc-bg: #f8f8f8;
}

.fqa-header {
	max-width: 640px;
	margin: 0 auto 32px;
}

.fqa-header .small-title {
	margin-bottom: 8px;
}

.fqa-intro {
	margin: 0;
	font-family: "lato", sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: #000;
}

.fqa-section ul.fqa-products {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Fewer than 4 products: keep the cards a sensible width, centred. */
.fqa-section ul.fqa-products.columns-1,
.fqa-section ul.fqa-products.columns-2,
.fqa-section ul.fqa-products.columns-3 {
	justify-content: center;
	grid-template-columns: repeat(var(--pc-columns), minmax(0, 280px));
}

/* Action area under the price */
.fqa-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
}

.fqa-select {
	width: 100%;
	height: auto;
	margin: 0;
	padding: 8px 32px 8px 10px;
	border: 1px solid #d6d8dc;
	border-radius: 0;
	background-color: #fff;
	font-family: "lato", sans-serif;
	font-size: 14px;
	color: #000;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fqa-select:focus {
	border-color: #026653;
	box-shadow: 0 0 0 1px #026653;
	outline: none;
}

.fqa-select.fqa-attention {
	border-color: #b3261e;
	box-shadow: 0 0 0 1px #b3261e;
}

.fqa-section .fqa-button.button {
	display: block;
	width: 100%;
	margin: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fqa-section .fqa-button.button:hover,
.fqa-section .fqa-button.button:focus-visible {
	background-color: #026653;
	border-color: #026653;
	color: #fff;
}

.fqa-section .fqa-button.fqa-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.fqa-section .fqa-button.fqa-disabled:hover {
	background-color: rgb(227, 241, 238);
	border-color: rgb(227, 241, 238);
	color: #000;
}

/* While WooCommerce is adding */
.fqa-section .fqa-button.loading {
	opacity: 0.6;
	pointer-events: none;
}

.fqa-section .fqa-button.added {
	background-color: #026653;
	border-color: #026653;
	color: #fff;
}

/* WooCommerce appends "View basket" after adding; the mini basket opens
   anyway, so keep the card tidy. */
.fqa-section .added_to_cart {
	display: none !important;
}

.fqa-footer {
	margin-top: 40px;
}

@media screen and (max-width: 768px) {
	.fqa-section {
		padding: 40px 0 48px;
	}

	.fqa-header {
		margin-bottom: 24px;
	}

	.fqa-section ul.fqa-products.columns-1 {
		grid-template-columns: minmax(0, 280px);
	}

	.fqa-section ul.fqa-products.columns-2,
	.fqa-section ul.fqa-products.columns-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
