/**
 * Cart & Checkout (WooCommerce blocks): theme buttons and links.
 * Loaded only on the Cart and Checkout pages (inc/assets.php).
 */

/* Product names and other links in the cart / order summary: no underline */
.wc-block-components-product-name,
.wc-block-cart-item__product a,
.wc-block-components-order-summary-item a {
	text-decoration: none !important;
	transition: opacity var(--t);
}
.wc-block-components-product-name:hover,
.wc-block-cart-item__product a:hover { opacity: .65; }

/* Buttons: Proceed to Checkout, Place Order, coupon Apply — like the theme's black buttons */
body .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 52px;
	padding: 15px 31px;
	background: var(--c-black);
	border: 1px solid var(--c-black);
	border-radius: var(--radius);
	box-shadow: none;
	color: var(--c-white);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color var(--t), color var(--t), border-color var(--t);
}
body .wc-block-components-button:not(.is-link):hover,
body .wc-block-components-button:not(.is-link):focus-visible {
	background: var(--c-white);
	border-color: var(--c-black);
	color: var(--c-black);
	text-decoration: none !important;
}
body .wc-block-components-button:not(.is-link):focus-visible { outline: 2px solid var(--c-black); outline-offset: 2px; }
body .wc-block-components-button:not(.is-link) .wc-block-components-button__text { text-decoration: none; }

/* Arrow after the label (as on the other theme buttons) */
.wc-block-cart__submit-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}
.wc-block-cart__submit-button .wc-block-components-button__text::after,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text::after {
	content: "";
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23000' stroke-width='1.894' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12.253 4.5 3.703 3.66a2.75 2.75 0 0 1 0 4.04l-3.703 3.66M2 10.18h13.633'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23000' stroke-width='1.894' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12.253 4.5 3.703 3.66a2.75 2.75 0 0 1 0 4.04l-3.703 3.66M2 10.18h13.633'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--t);
}
.wc-block-cart__submit-button:hover .wc-block-components-button__text::after,
.wc-block-components-checkout-place-order-button:hover .wc-block-components-button__text::after { transform: translateX(3px); }

/* Disabled (e.g. "Apply" with an empty code, order being placed) */
body .wc-block-components-button:not(.is-link):disabled,
body .wc-block-components-button:not(.is-link)[aria-disabled="true"] {
	background: #cecece;
	border-color: #cecece;
	color: var(--c-white);
	opacity: 1;
	cursor: default;
}

/* Coupon "Apply": as high as the code field */
body .wc-block-components-totals-coupon__button.wc-block-components-button:not(.is-link) {
	align-self: stretch;
	min-height: 0;
	padding: 0 24px;
}

/* Full-width buttons keep their width */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button { width: 100%; }

/* Empty cart: centered message + "Start shopping" button */
.bts-empty-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	padding-block: 40px 20px;
	text-align: center;
}
.bts-empty-cart .bts-empty-cart__title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; text-align: center; }
.bts-empty-cart .with-empty-cart-icon::before { margin-inline: auto; margin-bottom: 24px; }
.bts-empty-cart__btn { text-decoration: none; }
.bts-empty-cart a.bts-empty-cart__btn, .bts-empty-cart a.bts-empty-cart__btn:hover { text-decoration: none; }
