/**
 * WooCommerce refinements.
 *
 * Loaded only when WooCommerce is active, so shop-free sites never download it.
 * Layout and colour still come from theme.json; this file only smooths the
 * parts of the shop that global styles cannot reach.
 *
 * @package Nimbsy
 */

/* Price. */
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	font-weight: 700;
}

.wc-block-components-product-price del,
.woocommerce div.product p.price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
	opacity: 0.8;
}

/* Sale badge. */
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--secondary);
	border-radius: 999px;
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	padding: 0.2rem 0.6rem;
}

/* Store notices. */
.wc-block-components-notice-banner {
	border-radius: 8px;
}

/* Quantity and add to cart. */
.woocommerce div.product form.cart .quantity input,
.wc-block-components-quantity-selector input {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: 6px;
}

.woocommerce div.product form.cart .button,
.wc-block-components-product-button .wp-block-button__link {
	border-radius: var(--wp--custom--button-radius, 6px);
	font-weight: 700;
}

/* Product cards in a collection. */
.wp-block-woocommerce-product-template li {
	display: flex;
	flex-direction: column;
}

.wp-block-woocommerce-product-template li .wp-block-woocommerce-product-button {
	margin-top: auto;
}

/* Tabs and product details. */
.woocommerce-tabs ul.tabs li.active a,
.wp-block-woocommerce-product-details .wc-tabs li.active a {
	color: var(--wp--preset--color--primary);
}

/* Breadcrumbs. */
.wc-block-breadcrumbs {
	color: var(--wp--preset--color--muted);
}

.wc-block-breadcrumbs a {
	color: inherit;
}

/* Cart and checkout spacing on small screens. */
@media (max-width: 781px) {
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout {
		padding-inline: 0;
	}
}
