/* Cart and checkout additions. */
.woocommerce-cart .vcodes { margin-bottom: 1.5em; }
.vcart-also { margin: 3em 0 1em; }
.vcart-also h2 { text-align: center; }

.vpay { margin: 1.2em 0; padding: 1em; border: 1px solid #e0f5ee; border-radius: 10px; background: #fff; text-align: center; }
.vpay p { margin: .3em 0; }
.vpay-title { font-weight: 700; font-size: 14px; }
.vpay-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: .4em; }
.vpay-marks span { padding: .3em .7em; border: 1px solid #d3dcd8; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: #fafafa; }
.vpay-marks .vpay-pp { background: #f5f7fa; color: #003087; }
.vpay-marks .vpay-pp b { color: #009cde; }
.vpay-notes { font-size: 12px; opacity: .75; }

.vcodelist { margin: .8em 0; font-size: 14px; }
.vcodelist summary { cursor: pointer; color: #194d3c; text-decoration: underline; }
.vcodelist ul { margin: .5em 0 0 1.2em; }

.vsum-img { display: inline-block; vertical-align: middle; margin-right: .6em; }
.vsum-img img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #e0f5ee; }

/* ===== Cart page (vintage-cart-ux/cart-ux-page.php) ===== */
/* Goals box: free shipping + "Mehr kaufen, mehr sparen" steps */
.vgoals { display: grid; gap: 14px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #d5f0e4; border-radius: 12px; background: #f0faf6; }
.vgoals p { margin: 0; font-size: 14px; line-height: 1.4; }
.vgoal-bar { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: #d9efe6; overflow: hidden; }
.vgoal-bar span { display: block; height: 100%; border-radius: 4px; background: #22c38e; }
.vgoal-title { font-weight: 700; margin-bottom: 7px !important; }
.vgoal-steps { display: flex; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.vgoal-steps li { flex: 1; margin: 0; padding: 6px 4px; border: 1px dashed #a9d7c3; border-radius: 8px; background: #fff; text-align: center; font-size: 12px; line-height: 1.25; color: #4d5f59; }
.vgoal-steps b { display: block; font-size: 15px; color: #194d3c; }
.vgoal-steps li.is-done { border: 1px solid #22c38e; background: #22c38e; color: #fff; }
.vgoal-steps li.is-done b { color: #fff; }
.vgoal-apply { margin: 6px 0 0; padding: 7px 14px; border: 0; border-radius: 6px; background: #194d3c; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.vgoal-apply:hover { background: #22c38e; }

/* Item lines as calm cards: no table header, the options on one line */
.woocommerce-cart .woocommerce-cart-form__contents thead { display: none; }
.woocommerce-cart .woocommerce-cart-form__contents .product-name > a { font-weight: 600; line-height: 1.35; }
.woocommerce-cart .product-name dl.variation { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 4px 0 0; font-size: 13px; color: #5b6b66; }
.woocommerce-cart .product-name dl.variation dt { display: none; }
.woocommerce-cart .product-name dl.variation dd { margin: 0; }
.woocommerce-cart .product-name dl.variation dd p { margin: 0; display: inline; }
.woocommerce-cart .product-name dl.variation dd + dt + dd::before { content: "· "; }
.woocommerce-cart .woocommerce-cart-form__contents .product-subtotal { font-weight: 700; }
/* The line total at the right is the price; the unit price under the name only repeated it */
.woocommerce-cart .woocommerce-cart-form__contents .product-name > p.price { display: none; }
.woocommerce-cart .woocommerce-cart-form__contents .product-thumbnail img { border-radius: 8px; }

/* Coupon field folded behind "Rabattcode eingeben?"; the cart updates by itself (no update button) */
.woocommerce-cart .ct-cart-form-actions button[name="update_cart"] { display: none !important; }
.woocommerce-cart .coupon { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.woocommerce-cart .coupon:not(.is-open):not(:has(.coupon-error-notice)) > :is(input, button[name="apply_coupon"], .vcodelist) { display: none; }
.vcoupon-toggle { order: -1; flex-basis: 100%; padding: 0; border: 0; background: none; color: #194d3c; font-size: 14px; text-decoration: underline; text-align: left; cursor: pointer; }
.coupon.is-open .vcoupon-toggle, .coupon:has(.coupon-error-notice) .vcoupon-toggle { display: none; }

/* "Dieses Motiv auch als …" */
.vcart-styles { margin: 24px 0 8px; }
.vcart-styles h2 { margin: 0 0 4px; font-size: 18px; }
.vcart-styles-tip { margin: 0 0 10px; font-size: 13.5px; color: #4d5f59; }
.vcart-styles-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vcart-style { display: block; padding: 6px; border: 1px solid #e3ebe8; border-radius: 10px; color: inherit; text-align: center; text-decoration: none; transition: border-color .15s; }
.vcart-style:hover { border-color: #22c38e; }
.vcart-style img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #f6f6f6; }
.vcart-style-name { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.vcart-style-price { display: block; font-size: 14px; font-weight: 700; }

/* Order summary */
.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals .woocommerce-shipping-calculator { display: none; }
.woocommerce-cart .cart_totals .fee td, .woocommerce-cart .cart_totals .cart-discount td,
.woocommerce-cart .cart_totals .vsaved td { color: #1a7f55; }
.woocommerce-cart .cart_totals .vsaved th, .woocommerce-cart .cart_totals .vsaved td { font-weight: 700; }
.woocommerce-cart .cart_totals .order-total td .amount { font-size: 22px; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; font-size: 17px; font-weight: 700; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button::before { content: ""; display: block !important; flex: none; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V11a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 8V6a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V11a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 8V6a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vcart-trust { margin-top: 14px; text-align: center; font-size: 13px; }
.vcart-trust p { margin: 8px 0 0; }
.vcart-trust .vdeliv { margin: 0; padding: 8px 10px; list-style: none; border-radius: 8px; background: #f0faf6; }
.vcart-trust .vdeliv li { margin: 0; }
.vcart-trust .vsafe-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vcart-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; color: #5b6b66; }
.vcart-continue a { color: #194d3c; }

/* Phone bar with the total and the checkout button */
.vcart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); }
.vcart-bar[hidden] { display: none; }
.vcart-bar > span { display: flex; flex-direction: column; line-height: 1.2; }
.vcart-bar small { font-size: 12px; color: #5b6b66; }
.vcart-bar b { font-size: 18px; }
.vcart-bar-go { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: #194d3c; color: #fff !important; font-weight: 700; text-decoration: none; }
html.vcart-bar-on body { padding-bottom: 76px; }

@media (max-width: 689px) {
	.vgoals { padding: 12px; }
	.vgoal-steps b { font-size: 14px; }
	/* A small sideways row, so the order summary stays close */
	.vcart-styles-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -4px; padding: 0 4px 4px; }
	.vcart-style { flex: 0 0 112px; scroll-snap-align: start; padding: 4px; }
	.vcart-style-name { font-size: 12px; }
	.vcart-style-price { font-size: 13px; }
	.vcart-styles h2 { font-size: 16px; }
	.vcart-styles-tip { font-size: 12.5px; }
	.woocommerce-cart .ct-cart-form-actions { padding-inline: 0; }
}
