/**
 * Ebike Hause - empty-cart presentation. 2026-09-10.
 *
 * Every rule is scoped to body.ebh-cart-empty, a class that only exists when
 * the cart page is rendered with a genuinely empty cart. A cart WITH items
 * never matches these selectors, so the normal cart table is untouched.
 *
 * Mobile-first; the desktop step just widens the card and centres it.
 */

body.ebh-cart-empty .wd-page-title,
body.ebh-cart-empty .woocommerce-breadcrumb {
	display: none;
}

/* WooCommerce still prints its notice element (kept for markup/a11y parity);
   its text is filtered to empty, so collapse the now-blank box.

   .wd-empty-page-text is WoodMart's OWN empty-cart sentence ("Bevor Sie zur
   Kasse gehen konnen ..."). The theme hard-codes it and never runs it through
   wc_empty_cart_message, so the PHP filter cannot reach it - it has to be
   hidden here. Our headline replaces it, so nothing is lost. */
body.ebh-cart-empty .woocommerce-info,
body.ebh-cart-empty .cart-empty,
body.ebh-cart-empty .wd-empty-page-text,
body.ebh-cart-empty .woocommerce-notices-wrapper .woocommerce-info {
	display: none !important;
}

body.ebh-cart-empty .woocommerce {
	max-width: 520px;
	margin: 0 auto;
	padding: 26px 16px 40px;
	text-align: center;
	box-sizing: border-box;
}

.ebh-ec {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 30px 18px 24px;
	background: #fff;
	border: 1px solid #e4e8eb;
	border-radius: 16px;
	box-shadow: 0 3px 16px rgba(16, 24, 32, .06);
}

.ebh-ec__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: #f2f4f5;
	color: #16181a;
	margin-bottom: 2px;
}

.ebh-ec__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	color: #16181a;
	letter-spacing: -.2px;
}

.ebh-ec__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #6b7379;
	max-width: 34ch;
}

/* WooCommerce's own return button, restyled as the primary CTA.
   Its href is untouched - it still points wherever WooCommerce sends it. */
body.ebh-cart-empty .return-to-shop {
	margin: 0;
	padding: 0 18px 30px;
}

body.ebh-cart-empty a.button.wc-backward {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 420px;
	margin: 16px auto 0;
	min-height: 60px;
	padding: 0 22px;
	border: 0;
	border-radius: 11px;
	background: #e01f26;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .4px;
	text-transform: none;
	text-decoration: none;
	position: relative;
	z-index: 1;
}

body.ebh-cart-empty a.button.wc-backward:hover,
body.ebh-cart-empty a.button.wc-backward:focus {
	background: #c8161d;
	color: #fff;
}

/* Very narrow phones */
@media (max-width: 374px) {
	body.ebh-cart-empty .woocommerce { padding: 20px 10px 32px; }
	.ebh-ec { padding: 24px 14px 20px; border-radius: 14px; }
	.ebh-ec__title { font-size: 20px; }
	.ebh-ec__text { font-size: 14px; }
	body.ebh-cart-empty a.button.wc-backward { min-height: 56px; font-size: 15px; }
	body.ebh-cart-empty .return-to-shop { padding: 0 10px 26px; }
}

/* Desktop: same card, a little more breathing room */
@media (min-width: 1024px) {
	body.ebh-cart-empty .woocommerce { max-width: 560px; padding: 48px 16px 64px; }
	.ebh-ec { padding: 40px 30px 30px; }
	.ebh-ec__icon { width: 74px; height: 74px; }
	.ebh-ec__title { font-size: 26px; }
	.ebh-ec__text { font-size: 16px; }
}
