/**
 * EUX Ricci Quote - quote presentation for Woodmart.
 *
 * Kept to a minimum: the mini-cart, checkout and quote summary otherwise use
 * Woodmart's default layout and typography.
 */

/*
 * A quote needs no payment choice: the gateway is selected behind the scenes
 * (see includes/quote-checkout.php), so the methods list and its description
 * are hidden. The terms checkbox and Submit Quote button stay visible.
 */
.woocommerce-checkout #payment .wc_payment_methods,
.woocommerce-checkout #payment .payment_box {
	display: none !important;
}

/*
 * Checkout: the quote summary stays in view on desktop while the contact form
 * scrolls. assets/js/checkout.js adds eux-rq-sticky only when it fits the window.
 * !important is needed: Woodmart sets position: relative on this box inside an
 * :is() that also lists "#order_review", which gives its rule ID specificity.
 */
@media (min-width: 1025px) {
	.woocommerce-checkout > .checkout-order-review.eux-rq-sticky {
		position: sticky !important;
		top: calc(var(--wd-header-sticky-h, 0px) + var(--wp-admin--admin-bar--height, 0px) + 30px);
	}
}

/* Cart table: more room for the product name and its selected options. */
@media (min-width: 1025px) {
	.woocommerce-cart-form__contents th.product-name {
		width: 40%;
	}
}

/*
 * "Login to see prices" button (includes/quote-labels.php): Woodmart fades its
 * link version on hover and sizes it 80% inside the product summary price
 * (.summary-inner > .price .login-to-prices-msg), so the price selector is repeated.
 */
a.login-to-prices-msg.eux-rq-login-btn,
.price a.login-to-prices-msg.eux-rq-login-btn {
	font-size: 14px;
}

a.login-to-prices-msg.eux-rq-login-btn:hover {
	opacity: 1;
}

/*
 * Guests (body.eux-rq-no-prices, see includes/guest-pricing.php): the amounts
 * are already removed server-side; these rules hide the labels and columns
 * that would otherwise be left empty.
 */
.eux-rq-no-prices .woocommerce-mini-cart__total,
.eux-rq-no-prices .wd-cart-subtotal,
.eux-rq-no-prices .wapf-product-totals,
.eux-rq-no-prices .woocommerce-cart-form__contents .product-price,
.eux-rq-no-prices .woocommerce-cart-form__contents .product-subtotal,
.eux-rq-no-prices .cart_totals > h2,
.eux-rq-no-prices .cart_totals > table.shop_table,
.eux-rq-no-prices .woocommerce-checkout-review-order-table .product-total,
.eux-rq-no-prices .woocommerce-checkout-review-order-table tfoot tr:not(.woocommerce-shipping-totals),
.eux-rq-no-prices .woocommerce-order-overview__total,
.eux-rq-no-prices .woocommerce-table--order-details .product-total {
	display: none !important;
}

/* Guests: product options stay visible; quantity and Add to Quote do not. */
.eux-rq-no-prices form.cart .quantity,
.eux-rq-no-prices form.cart .single_add_to_cart_button,
.eux-rq-no-prices .wd-sticky-btn .quantity,
.eux-rq-no-prices .wd-sticky-btn .single_add_to_cart_button {
	display: none !important;
}
