/* WooCommerce surfaces — keep chrome quiet so the product stays first. */

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: 14px;
}

.einfalt-shop-page .wc-block-components-product-button .wp-block-button__link,
.einfalt-shop-page .woocommerce ul.products li.product .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3rem;
	padding: 0.85rem 1.1rem;
	border: 1px solid #142019;
	border-radius: 999px;
	background: #142019;
	color: #fff;
	white-space: nowrap;
}

.einfalt-shop-page .wc-block-components-product-button .wp-block-button__link:hover,
.einfalt-shop-page .woocommerce ul.products li.product .button:hover {
	background: var(--wp--preset--color--accent-1);
	border-color: var(--wp--preset--color--accent-1);
	color: #fff;
}

.woocommerce-product-gallery__image img {
	border-radius: 0;
}

.woocommerce div.product .product_title {
	font-weight: 300;
	letter-spacing: -0.03em;
}

.woocommerce div.product p.price,
.wp-block-woocommerce-product-price {
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	font-weight: 400;
}

.woocommerce-tabs {
	margin-top: 3rem;
}

.woocommerce-Tabs-panel,
.wp-block-woocommerce-product-details {
	font-size: 1.02rem;
}

.wc-block-cart-items {
	border-radius: 18px;
}

/* One totals card — Woo paints a wrapper per row, so a background on
   .totals-wrapper becomes stacked beige pills with white gaps. */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
	background: var(--wp--preset--color--accent-5);
	border-radius: 18px;
	padding: 1.15rem 1.35rem 1.35rem;
}

.wc-block-cart__sidebar .wc-block-components-order-summary,
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar .wc-block-components-order-summary,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	background: transparent;
	border-radius: 0;
	padding-right: 0;
	padding-left: 0;
}

.wc-block-cart__sidebar .wc-block-components-totals-wrapper:first-child,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:first-child {
	padding-top: 0;
}

/* Faroe Islands have no county — hide Státur / Amt. */
.wc-block-components-address-form__state {
	display: none !important;
}

/* Checkout heading only — drop the leftover shipping/VAT line. */
.woocommerce-checkout .einfalt-page-head .einfalt-lede {
	display: none;
}

/* Cart / checkout line items: name, qty, line total only. */
.wc-block-cart-item__prices,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-product-backorder-badge,
.wc-block-components-product-metadata {
	display: none !important;
}

.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	min-height: 3.15rem;
}
