/* =============================================================================
   EasyFirma – WooCommerce Warenkorb (Elementor Pro Cart Widget)
   Design-System: EF Elementor Widgets
   ============================================================================= */

/* Seitenabstand: globale Regel setzt margin-top: 150px auf .page-header (Sticky-Header-Offset).
   Für die Warenkorb-Seite auf einen kompakten Wert reduzieren. */
.woocommerce-cart .page-header {
	margin-top: 24px !important;
}

/* --- Elementor Pro Cart Section Borders entfernen --------------------------- */

.elementor-widget-woocommerce-cart .e-cart-section {
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin-bottom: 20px !important;
	background: transparent !important;
}

.elementor-widget-woocommerce-cart .e-cart-section:last-child,
.elementor-widget-woocommerce-cart .e-cart-section--no-coupon {
	margin-bottom: 0 !important;
}

/* --- Cart-Tabelle (EF Card-Style) ------------------------------------------ */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart {
	border: none !important;
	border-radius: 10px;
	overflow: hidden;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	background: #ffffff;
	box-shadow: 32px 24px 100px rgba(24, 24, 24, 0.1);
	width: 100%;
	font-family: Arial, sans-serif;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart thead tr th {
	background: #ebf8fe !important;
	color: #688bb1 !important;
	font-family: Arial, sans-serif;
	font-size: 15px !important;
	font-weight: 700 !important;
	padding: 16px 20px !important;
	border-bottom: 1px solid #ececec !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	text-align: left;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart tbody tr td {
	padding: 16px 20px !important;
	vertical-align: middle;
	border-top: none !important;
	border-bottom: 1px solid #f0f0f0 !important;
	border-left: none !important;
	border-right: none !important;
	color: #454545;
	font-size: 16px;
	background: transparent !important;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-child td,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart tbody tr:last-of-type td {
	border-bottom: none !important;
}

/* Hover-Effekt aus Elementor Pro neutralisieren */
.elementor-widget-woocommerce-cart table tbody tr:hover > td,
.elementor-widget-woocommerce-cart table tbody tr:hover > th {
	background-color: transparent !important;
}

/* --- Produktbild-Spalte ausblenden ----------------------------------------- */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart th.product-thumbnail,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail {
	display: none !important;
}

/* --- Remove-Button (×) ----------------------------------------------------- */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-remove a.remove {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	line-height: 28px !important;
	border-radius: 50% !important;
	background: #f1f1f1 !important;
	color: #a6a6a6 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	border: none !important;
	transition: background 0.2s, color 0.2s;
	box-shadow: none !important;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-remove a.remove:hover {
	background: #fde8e8 !important;
	color: #e33a3a !important;
}

/* --- Produktbild ------------------------------------------------------------ */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail img {
	width: 64px !important;
	height: 64px !important;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #ececec !important;
	background: #f8f8f8;
	padding: 4px;
	box-sizing: border-box;
	box-shadow: none !important;
}

/* --- Produktname ------------------------------------------------------------ */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-name a {
	color: #263548 !important;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none !important;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-name a:hover {
	color: #688bb1 !important;
}

/* --- Preis / Zwischensumme (inkl. €-Symbol einheitlich) -------------------- */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-price,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-subtotal {
	color: #688bb1 !important;
	font-weight: 700;
	font-size: 16px;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-price *,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-subtotal * {
	color: #688bb1 !important;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-price .woocommerce-Price-amount,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-price .woocommerce-Price-currencySymbol,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-subtotal .woocommerce-Price-amount,
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-subtotal .woocommerce-Price-currencySymbol {
	color: #688bb1 !important;
	font-weight: 700 !important;
}

/* --- Mengen-Input ----------------------------------------------------------- */

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-quantity .quantity input.qty {
	width: 70px !important;
	height: 44px !important;
	border: 1px solid #ececec !important;
	border-radius: 10px !important;
	text-align: center;
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #454545;
	background: #fff;
	box-shadow: 0 2px 8px rgba(24, 24, 24, 0.06) !important;
	padding: 0 10px;
}

.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.product-quantity .quantity input.qty:focus {
	outline: none;
	border-color: #688bb1 !important;
	box-shadow: 0 0 0 3px rgba(104, 139, 177, 0.15) !important;
}

/* --- Coupon-Sektion: Input + Button verbunden (Pill-Group) ------------------ */
/*
 * Elementor Pro HTML-Struktur:
 *   .coupon > .form-row.coupon-col > .coupon-col-start (input) + .coupon-col-end (button)
 * Elementor Pro setzt auf .coupon-col-start { padding-right: 30px } → das erzeugt den Gap.
 */

.elementor-widget-woocommerce-cart .woocommerce .coupon {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .coupon-col,
.elementor-widget-woocommerce-cart .woocommerce .coupon .form-row {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	gap: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* .coupon-col-start: Input-Wrapper – padding-right:30px von Elementor entfernen */
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-start {
	flex: 1 1 auto !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: stretch;
	min-width: 0;
}

/* .coupon-col-end: Button-Wrapper */
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-end {
	flex: 0 0 auto !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: stretch;
}

/* Input innerhalb .coupon-col-start */
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-start .input-text,
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-start #coupon_code {
	flex: 1 1 auto !important;
	width: 100% !important;
	height: 50px !important;
	border-radius: 25px 0 0 25px !important;
	border: 1px solid #d0dae5 !important;
	border-right: none !important;
	padding: 0 20px !important;
	margin: 0 !important;
	font-family: Arial, sans-serif;
	font-size: 15px;
	color: #454545;
	background: #fff !important;
	transition: border-color 0.2s;
	box-shadow: none !important;
	box-sizing: border-box;
}

.elementor-widget-woocommerce-cart .woocommerce .coupon-col-start .input-text:focus,
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-start #coupon_code:focus {
	outline: none;
	border-color: #688bb1 !important;
	box-shadow: none !important;
}

/* Button innerhalb .coupon-col-end */
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-end .button,
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-end .e-apply-coupon {
	flex: 0 0 auto !important;
	height: 50px !important;
	padding: 0 24px !important;
	margin: 0 !important;
	border-radius: 0 25px 25px 0 !important;
	background: #688bb1 !important;
	border: 1px solid #688bb1 !important;
	color: #ffffff !important;
	font-family: Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	box-shadow: none !important;
	float: none !important;
	width: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	line-height: 1;
}

.elementor-widget-woocommerce-cart .woocommerce .coupon-col-end .button:hover,
.elementor-widget-woocommerce-cart .woocommerce .coupon-col-end .e-apply-coupon:hover {
	background: #5a7da0 !important;
	border-color: #5a7da0 !important;
	color: #ffffff !important;
}

/* Coupon-Row im Table (falls vorhanden) */
.elementor-widget-woocommerce-cart .woocommerce table.shop_table.cart td.actions {
	background: #fafbfc !important;
	border-top: 1px solid #ececec !important;
	padding: 16px 20px !important;
}

/* --- Warenkorb-Aktualisieren Button ---------------------------------------- */

.elementor-widget-woocommerce-cart .woocommerce button[name="update_cart"],
.elementor-widget-woocommerce-cart .woocommerce .cart .actions .button[name="update_cart"] {
	height: 48px !important;
	padding: 0 22px !important;
	border-radius: 20px !important;
	background: #f6f8fb !important;
	border: 1px solid #d0dae5 !important;
	border-width: 1px !important;
	color: #688bb1 !important;
	font-family: Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	box-shadow: none !important;
	min-height: auto !important;
}

.elementor-widget-woocommerce-cart .woocommerce button[name="update_cart"]:hover {
	background: #e9eef5 !important;
	border-color: #b8c6d8 !important;
}

/* --- Warenkorbsummen (Card-Style) ------------------------------------------ */

.elementor-widget-woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
	background: #ffffff !important;
	border-radius: 30px !important;
	border: 1px solid #ececec !important;
	border-width: 1px !important;
	border-style: solid !important;
	box-shadow: 32px 24px 100px rgba(24, 24, 24, 0.1) !important;
	padding: 32px !important;
	box-sizing: border-box;
	float: none !important;
	width: 100% !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals h2 {
	color: #263548 !important;
	font-family: Arial, sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table {
	box-shadow: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent;
	margin-bottom: 20px;
	width: 100%;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr th,
.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr td {
	padding: 10px 0 !important;
	border-top: none !important;
	border-bottom: 1px solid #f0f0f0 !important;
	border-left: none !important;
	border-right: none !important;
	background: transparent !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr th {
	color: #454545 !important;
	font-size: 15px;
	font-weight: 600 !important;
	text-align: left;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr td {
	color: #688bb1 !important;
	font-size: 15px;
	font-weight: 700 !important;
	text-align: right !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr td .woocommerce-Price-amount,
.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr td:before {
	color: #688bb1 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th,
.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td {
	border-bottom: none !important;
	padding-top: 16px !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total th {
	color: #263548 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td {
	font-size: 22px !important;
	font-weight: 700 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total td .woocommerce-Price-amount {
	color: #688bb1 !important;
	font-size: 22px !important;
	font-weight: 700 !important;
}

/* --- Checkout-Button -------------------------------------------------------- */

.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout {
	padding-bottom: 0 !important;
}

.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button,
.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px;
	width: 100% !important;
	min-height: 60px !important;
	height: auto !important;
	padding: 14px 24px !important;
	border-radius: 5px !important;
	background-color: #e98c24 !important;
	color: #ffffff !important;
	font-family: Arial, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	text-align: center !important;
	text-decoration: none !important;
	box-shadow: 0 8px 16px rgba(233, 140, 36, 0.25) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
	border: none !important;
	border-width: 0 !important;
	cursor: pointer;
	line-height: 1.3;
	box-sizing: border-box;
	white-space: nowrap;
}

.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.elementor-widget-woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background-color: #dc7f1d !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 10px 20px rgba(233, 140, 36, 0.3) !important;
	color: #ffffff !important;
}

/* --- WooCommerce Hinweise --------------------------------------------------- */

.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error {
	font-family: Arial, sans-serif;
	border-radius: 10px;
}

.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message {
	border-top-color: #688bb1 !important;
	background: #f6f8fb;
}

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 768px) {
	.elementor-widget-woocommerce-cart .woocommerce .coupon {
		max-width: 100%;
		flex-wrap: nowrap !important;
	}
	.elementor-widget-woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
		padding: 24px 20px !important;
		border-radius: 20px !important;
	}
}
