/* Cart page (/warenkorb/) – loaded only there (inc/cart.php). Light style matching the checkout; overrides commerce-pages.css. */

/* Page frame */
body.fumot-cart-page { background:#f4f7fa; }
body.fumot-cart-page .content-area { padding-block:0; }
body.fumot-cart-page .page-container { padding-block:18px 28px; }
body.fumot-cart-page .page-shell { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body.fumot-cart-page .woocommerce-notices-wrapper:empty { display:none; }

/* Notices: plain boxes without the blue bar and icon */
body.fumot-cart-page .woocommerce-info, body.fumot-cart-page .woocommerce-message, body.fumot-cart-page .woocommerce-error { margin:0 0 14px; padding:12px 14px; border:0; border-radius:10px; background:#eef2f6; color:#40566b; font-size:14px; line-height:1.5; }
body.fumot-cart-page .woocommerce-info::before, body.fumot-cart-page .woocommerce-message::before, body.fumot-cart-page .woocommerce-error::before { display:none; }
body.fumot-cart-page .woocommerce-message { background:#edf8f1; color:#1c5a37; }
body.fumot-cart-page .woocommerce-error { background:#fdeeee; color:#8a1f1f; }
body.fumot-cart-page .woocommerce-message .button, body.fumot-cart-page .woocommerce-info .button { float:none; margin-left:8px; padding:0; border:0; background:none; color:#0869c2; font-weight:700; }

/* Success messages ("Warenkorb aktualisiert.") float above the page from the moment they appear,
   so they never push the content down (no jump). assets/js/cart.js fades them out. */
body.fumot-cart-page .woocommerce-notices-wrapper .woocommerce-message { position:fixed; z-index:10050; top:88px; left:50%; display:flex; align-items:center; gap:9px; width:max-content; max-width:calc(100% - 32px); margin:0; padding:12px 18px; border:1px solid #bfe3cd; border-radius:12px; background:#fff; box-shadow:0 14px 34px rgba(6,39,68,.16); color:#14532d; font-size:15px; font-weight:700; transform:translateX(-50%); transition:opacity .3s, transform .3s; }
body.fumot-cart-page .woocommerce-notices-wrapper .woocommerce-message::before { position:static; display:grid !important; flex:0 0 22px; width:22px; height:22px; margin:0; place-items:center; border-radius:50%; background:#16a85c; color:#fff; font-family:inherit; font-size:13px; content:"✓"; }
body.fumot-cart-page .woocommerce-notices-wrapper .woocommerce-message.is-hiding { opacity:0; transform:translate(-50%,-8px); }
body.fumot-cart-page .woocommerce-notices-wrapper .woocommerce-message a { color:#0869c2; }
body.fumot-cart-page .woocommerce-notices-wrapper:not(:has(> :not(.woocommerce-message))) { margin:0; }

/* Layout */
body.fumot-cart-page .fumot-cart { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr); align-items:start; gap:0 32px; }
body.fumot-cart-page .fumot-cart__main { padding:20px; border:1px solid #dbe5ef; border-radius:14px; background:#fff; }
body.fumot-cart-page .fumot-cart__head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 6px; }
body.fumot-cart-page .fumot-cart__head h1 { margin:0; color:#062744; font-size:22px; line-height:1.2; }
body.fumot-cart-page .fumot-cart__head span { color:#6a7b8c; font-size:14px; }

/* Items */
body.fumot-cart-page .fumot-cart__list { margin:0; padding:0; list-style:none; }
body.fumot-cart-page .fumot-cart__item { display:grid; grid-template-columns:84px minmax(0,1fr) auto 96px 32px; align-items:center; gap:14px; padding:16px 0; border-bottom:1px solid #e6edf2; }
body.fumot-cart-page .fumot-cart__thumb { width:84px; height:84px; overflow:hidden; border:1px solid #e1e9f0; border-radius:10px; background:#f7fafc; }
body.fumot-cart-page .fumot-cart__thumb a { display:block; height:100%; }
body.fumot-cart-page .fumot-cart__thumb img { display:block; width:100%; height:100%; padding:5px; object-fit:contain; }
body.fumot-cart-page .fumot-cart__info { min-width:0; color:#17344f; font-size:15px; font-weight:700; line-height:1.35; }
body.fumot-cart-page .fumot-cart__info > a { color:#17344f; text-decoration:none; }
body.fumot-cart-page .fumot-cart__info > a:hover { color:#0869c2; text-decoration:underline; }
body.fumot-cart-page .fumot-cart__info dl.variation { margin:3px 0 0; font-size:13px; font-weight:500; }
body.fumot-cart-page .fumot-cart__unit { display:block; margin-top:3px; color:#6a7b8c; font-size:13px; font-weight:500; }
body.fumot-cart-page .wcbd-hint { display:inline-block; margin-top:6px; padding:3px 9px; border-radius:99px; background:#edf8f1; color:#168348; font-size:12px; font-weight:650; }
body.fumot-cart-page .fumot-cart__line { color:#17344f; font-size:15px; font-weight:750; text-align:right; white-space:nowrap; }
body.fumot-cart-page .product-remove a.remove { display:grid; width:32px; height:32px; place-items:center; border-radius:8px; background:transparent; color:#8a99a8 !important; font-size:22px; font-weight:400; line-height:1; text-decoration:none; }
body.fumot-cart-page .product-remove a.remove:hover { background:#fdeeee; color:#b32d2e !important; }

/* Quantity with − / + */
body.fumot-cart-page .fumot-cart__qty .quantity { display:inline-flex; align-items:stretch; overflow:hidden; border:1px solid #cfdce8; border-radius:9px; background:#fff; }
body.fumot-cart-page .fumot-cart__qty .quantity input.qty { flex:0 0 46px; width:46px; height:40px; min-height:40px; padding:0; border:0; border-radius:0; color:#17344f; font-size:15px; font-weight:700; text-align:center; -moz-appearance:textfield; }
body.fumot-cart-page .fumot-cart__qty .quantity input.qty::-webkit-inner-spin-button, body.fumot-cart-page .fumot-cart__qty .quantity input.qty::-webkit-outer-spin-button { margin:0; -webkit-appearance:none; }
body.fumot-cart-page .fumot-cart__qty .fumot-step { box-sizing:border-box; display:flex; flex:0 0 36px; align-items:center; justify-content:center; width:36px; min-width:36px; height:40px; min-height:40px; margin:0; padding:0; border:0; border-radius:0; background:#f4f8fc; color:#0869c2; font-size:18px; font-weight:600; line-height:1; text-align:center; text-indent:0; letter-spacing:0; cursor:pointer; }
body.fumot-cart-page .fumot-cart__qty .fumot-step:hover, body.fumot-cart-page .fumot-cart__qty .fumot-step:focus-visible { background:#e8f1fa; color:#0869c2; }

/* Actions below the list */
body.fumot-cart-page .fumot-cart__actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; }
body.fumot-cart-page .fumot-cart__continue { color:#0869c2; font-size:14px; font-weight:700; text-decoration:none; }
body.fumot-cart-page .fumot-cart__continue:hover { text-decoration:underline; }
body.fumot-cart-page .fumot-cart__update { min-height:40px; padding:8px 16px; border:1px solid #cfdce8; background:#fff; color:#17344f; font-size:14px; }
body.fumot-cart-page form.is-auto-update .fumot-cart__update { display:none; }

/* Summary (same look as the checkout) */
body.fumot-cart-page .fumot-cart__side { display:block; margin:0; }
body.fumot-cart-page .cart-collaterals .cart_totals { float:none; width:auto; margin:0; padding:20px 20px 18px; border:1px solid #dbe5ef; border-bottom:0; border-radius:14px 14px 0 0; background:#fff; }
body.fumot-cart-page .cart_totals h2 { margin:0 0 14px; color:#062744; font-size:18px; }
body.fumot-cart-page .fumot-summary__totals { display:grid; gap:9px; margin:0; }
body.fumot-cart-page .fumot-summary__totals > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
body.fumot-cart-page .fumot-summary__totals dt { color:#40566b; font-size:14px; font-weight:500; }
body.fumot-cart-page .fumot-summary__totals dd { margin:0; color:#17344f; font-size:14px; font-weight:650; text-align:right; }
body.fumot-cart-page .fumot-summary__totals .is-discount dd { color:#168348; }
body.fumot-cart-page .fumot-summary__totals .woocommerce-remove-coupon { margin-left:4px; font-size:12px; }
body.fumot-cart-page .fumot-summary__rates { margin:0; padding:0; list-style:none; text-align:right; }
body.fumot-cart-page .fumot-summary__note { color:#6a7b8c; font-size:13px; font-weight:500; }
body.fumot-cart-page .fumot-summary__total { margin-top:6px; padding-top:13px; border-top:1px solid #e6edf2; }
body.fumot-cart-page .fumot-summary__totals .fumot-summary__total dt { color:#062744; font-size:17px; font-weight:800; }
body.fumot-cart-page .fumot-summary__totals .fumot-summary__total dd { color:#062744; font-size:20px; font-weight:850; }
body.fumot-cart-page .fumot-summary__tax { margin:3px 0 0; color:#6a7b8c; font-size:12px; text-align:right; }
body.fumot-cart-page .fumot-summary__hint { margin:12px 0 0; padding:9px 12px; border-radius:9px; background:#edf8f1; color:#1c5a37; font-size:13px; }
body.fumot-cart-page .wc-proceed-to-checkout { margin:16px 0 0; padding:0; }
body.fumot-cart-page .wc-proceed-to-checkout .checkout-button { display:block; width:100%; min-height:54px; margin:0; padding:16px; border-radius:10px; background:#16a85c; color:#fff; font-size:17px; text-align:center; }
body.fumot-cart-page .wc-proceed-to-checkout .checkout-button:hover { background:#128a4b; }

/* Coupon below the totals */
body.fumot-cart-page .fumot-coupon { padding:0 20px 18px; border:1px solid #dbe5ef; border-top:0; border-radius:0 0 14px 14px; background:#fff; }
body.fumot-cart-page .fumot-coupon > summary { padding-top:14px; border-top:1px solid #e6edf2; color:#0869c2; font-size:14px; font-weight:700; cursor:pointer; list-style:none; }
body.fumot-cart-page .fumot-coupon > summary::-webkit-details-marker { display:none; }
body.fumot-cart-page .fumot-coupon > summary::before { content:"+ "; }
body.fumot-cart-page .fumot-coupon[open] > summary::before { content:"− "; }
body.fumot-cart-page .fumot-coupon__row { display:flex; gap:8px; margin-top:10px; }
body.fumot-cart-page .fumot-coupon__row input { flex:1; min-width:0; min-height:42px; padding:8px 12px; border:1px solid #cfdce8; border-radius:9px; font-size:16px; }
body.fumot-cart-page .fumot-coupon__row .button { min-height:42px; padding:8px 16px; }
body.fumot-cart-page .fumot-coupon.is-loading { opacity:.6; pointer-events:none; }
body.fumot-cart-page .fumot-coupon__message:not(:empty) { margin-top:10px; font-size:13px; }
body.fumot-cart-page .fumot-coupon__message .woocommerce-error, body.fumot-cart-page .fumot-coupon__message .woocommerce-message { margin:0; padding:8px 12px; font-size:13px; }

/* Cross-sells and empty cart */
body.fumot-cart-page .cross-sells { margin-top:28px; }
body.fumot-cart-page .cart-empty.woocommerce-info { padding:22px; font-size:16px; }
body.fumot-cart-page .return-to-shop .button { border-radius:10px; background:#16a85c; color:#fff; }

@media (max-width:900px) {
	body.fumot-cart-page .fumot-cart { grid-template-columns:1fr; gap:14px; }
}
@media (max-width:600px) {
	body.fumot-cart-page .page-container { width:calc(100% - 24px); padding:12px 0 24px; }
	body.fumot-cart-page .fumot-cart__main { padding:14px; }
	body.fumot-cart-page .fumot-cart__item { grid-template-columns:72px minmax(0,1fr) 32px; grid-template-areas:"thumb info remove" "thumb qty line"; gap:8px 12px; }
	body.fumot-cart-page .fumot-cart__thumb { grid-area:thumb; width:72px; height:72px; align-self:start; }
	body.fumot-cart-page .fumot-cart__info { grid-area:info; font-size:14px; }
	body.fumot-cart-page .fumot-cart__qty { grid-area:qty; }
	body.fumot-cart-page .fumot-cart__line { grid-area:line; align-self:center; }
	body.fumot-cart-page .product-remove { grid-area:remove; align-self:start; }
	body.fumot-cart-page .cart-collaterals .cart_totals, body.fumot-cart-page .fumot-coupon { padding-inline:14px; }
}
