/* ==========================================================================
   Kondido — Cart & Checkout (WooCommerce Blocks)
   ==========================================================================
   Presentation only. The Cart and Checkout blocks, the Store API, totals,
   shipping, coupons, payment gateways and order creation are untouched.
   Every rule is scoped to body.kondido-commerce so nothing leaks to other
   pages, and uses the theme's design tokens (style.css :root) — warm ivory,
   espresso text, Cormorant Garamond headings, Jost interface type, the gold
   primary button of .btn-solid, 2px corners, subtle borders.
   ========================================================================== */

body.kondido-commerce {
	background: var(--cream);
}

/* ---- Page frame ---- */
.commerce-intro {
	padding-bottom: 8px;
}
.commerce-section {
	padding: 24px clamp(20px, 5vw, 64px) clamp(64px, 8vw, 112px);
	background: var(--cream);
}
.commerce-inner {
	max-width: var(--max-w);
	margin: 0 auto;
}
.kondido-commerce .wp-block-woocommerce-cart,
.kondido-commerce .wp-block-woocommerce-checkout {
	max-width: none;
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--text-md);
	color: var(--ink);
}
.kondido-commerce .wp-block-woocommerce-cart *,
.kondido-commerce .wp-block-woocommerce-checkout * {
	font-family: inherit;
}

/* ---- Two-column layout (main + summary) ---- */
.kondido-commerce .wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
	margin: 0;
}
.kondido-commerce .wc-block-components-sidebar-layout .wc-block-components-main,
.kondido-commerce .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	width: auto;
	margin: 0;
}
.kondido-commerce .wc-block-components-sidebar-layout .wc-block-components-main {
	padding: 0;
}
@media (max-width: 900px) {
	.kondido-commerce .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- Headings inside the blocks ---- */
.kondido-commerce .wc-block-cart__totals-title,
.kondido-commerce .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text,
.kondido-commerce .wc-block-components-checkout-order-summary__title-text,
.kondido-commerce .wc-block-components-order-summary__button-text {
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-deep);
	text-align: start;
	padding: 0;
}
.kondido-commerce .wc-block-components-title,
.kondido-commerce .wc-block-components-checkout-step__title {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	letter-spacing: 0;
	text-transform: none;
}

/* ---- Primary buttons: the theme's gold .btn-solid ---- */
.kondido-commerce .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 16px 34px;
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--accent-deep);
	color: var(--white);
	border: 1px solid transparent;
	border-radius: var(--r);
	box-shadow: none;
	transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.kondido-commerce .wc-block-components-button:not(.is-link):hover:not(:disabled),
.kondido-commerce .wc-block-components-button:not(.is-link):focus-visible {
	background: var(--ink);
	color: var(--white);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}
.kondido-commerce .wc-block-components-button:not(.is-link):disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.kondido-commerce .wc-block-components-button .wc-block-components-button__text {
	color: inherit;
}
.kondido-commerce .wc-block-cart__submit-container,
.kondido-commerce .wc-block-cart__submit-button,
.kondido-commerce .wc-block-components-checkout-place-order-button {
	width: 100%;
}
.kondido-commerce .wc-block-components-button.is-link,
.kondido-commerce .wc-block-components-checkout-return-to-cart-button {
	color: var(--accent-deep);
	font-size: var(--text-base);
	letter-spacing: 0.02em;
	text-decoration-color: var(--border-soft);
}

/* ==========================================================================
   CART
   ========================================================================== */

/* Items table */
.kondido-commerce .wc-block-cart-items {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.kondido-commerce .wc-block-cart-items::after {
	display: none;
}
.kondido-commerce .wc-block-cart-items th {
	padding: 0 0 14px;
	font-size: var(--text-sm);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
	border-bottom: 1px solid var(--border-soft);
	text-align: start;
}
.kondido-commerce .wc-block-cart-items__header-total {
	text-align: end;
}
.kondido-commerce .wc-block-cart-items__row {
	border-bottom: 1px solid var(--border-soft);
}
.kondido-commerce .wc-block-cart-items__row::after {
	display: none;
}
.kondido-commerce .wc-block-cart-items .wc-block-cart-items__row td {
	padding: 28px 0;
	vertical-align: top;
	border: 0;
}
.kondido-commerce .wc-block-cart-item__image {
	width: 136px;
	padding-inline-end: 28px;
}
/* Compact layouts (WooCommerce adds is-medium / is-small / is-mobile from the
   container width): the rows become a fixed grid, so the image takes its
   track instead of the table-cell width above. */
.kondido-commerce .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row,
.kondido-commerce .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row,
.kondido-commerce .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 104px 132px;
	padding: 24px 0;
}
.kondido-commerce .wc-block-cart.is-medium .wc-block-cart-item__image,
.kondido-commerce .wc-block-cart.is-small .wc-block-cart-item__image,
.kondido-commerce .wc-block-cart.is-mobile .wc-block-cart-item__image {
	width: auto;
	padding-inline-end: 16px;
}
/* Phones: image and product share the top row; the line total gets its own
   right-aligned line underneath, so the product cell (name, details, quantity)
   keeps all the remaining width instead of sharing it with the price column. */
@media (max-width: 560px) {
	/* .kondido-cart adds the specificity needed to win over the
	   is-medium/is-small/is-mobile rule above whichever class WooCommerce set. */
	.kondido-commerce.kondido-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 76px minmax(0, 1fr);
		column-gap: 16px;
		padding: 22px 0;
	}
	.kondido-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		padding: 0;
	}
	.kondido-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
	}
	.kondido-commerce .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: flex-end;
		margin-top: 14px;
		padding-top: 12px;
		border-top: 1px dotted var(--border-soft);
	}
}
.kondido-commerce .wc-block-cart-item__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--r);
	background: var(--cream-deep);
}
.kondido-commerce .wc-block-cart-item__product {
	padding-inline-end: 20px;
}
.kondido-commerce .wc-block-cart-items .wc-block-cart-item__product .wc-block-components-product-name,
.kondido-commerce .wc-block-components-product-name {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-display);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
}
.kondido-commerce a.wc-block-components-product-name:hover {
	color: var(--accent-deep);
}
.kondido-commerce .wc-block-components-product-price,
.kondido-commerce .wc-block-cart-item__prices {
	font-size: var(--text-md);
	color: var(--text-muted);
}
.kondido-commerce .wc-block-cart-item__total,
.kondido-commerce .wc-block-cart-item__total .wc-block-components-product-price {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
}
.kondido-commerce .wc-block-cart-item__total {
	text-align: end;
	white-space: nowrap;
}

/* Customization details (Kondido configurator and any other line-item data):
   quiet, readable label/value pairs instead of cramped fine print. */
.kondido-commerce .wc-block-components-product-metadata {
	margin-top: 10px;
	font-size: var(--text-base);
	line-height: 1.55;
	color: var(--text-muted);
}
.kondido-commerce .wc-block-components-product-metadata__description,
.kondido-commerce .wc-block-components-product-metadata__description p {
	margin: 0 0 8px;
	font-size: var(--text-base);
}
.kondido-commerce .wc-block-components-product-details {
	display: grid;
	gap: 3px 0;
	margin: 0;
	padding: 10px 0 0;
	list-style: none;
	border-top: 1px dashed var(--border-soft);
}
.kondido-commerce .wc-block-components-product-details > span,
.kondido-commerce .wc-block-components-product-details > li {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.45em;
	margin: 0;
	font-size: var(--text-base);
	color: var(--text-muted);
}
/* The " / " between items is decorative (aria-hidden); the rows replace it. */
.kondido-commerce .wc-block-components-product-details > span > span[aria-hidden="true"],
.kondido-commerce .wc-block-components-product-details > li::after {
	display: none;
	content: none;
}
.kondido-commerce .wc-block-components-product-details__name {
	font-weight: 600;
	color: var(--ink);
}

/* Cart rows only (the checkout summary keeps the rules above): the
   customization details become a compact two-column spec sheet - label on
   the left, value on the right, a hairline under every row - instead of a
   long single-column list. One column on small screens. Extras (the longest
   value) always take the full width. */
/* Cart only: slightly larger product name and more readable summary notes. */
.kondido-commerce .wc-block-cart-items .wc-block-cart-item__product .wc-block-components-product-name {
	margin-bottom: 8px;
	font-size: clamp(22px, 2.1vw, 27px);
}
.kondido-commerce .wc-block-cart__sidebar .wc-block-components-totals-item__description,
.kondido-commerce .wc-block-cart__sidebar .wc-block-components-totals-shipping__change-address__link {
	font-size: var(--text-base);
}
/* The row's wrapper is a column flexbox that lets every child shrink to its
   content; the details panel must use the full width of the product cell. */
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-metadata {
	display: block;
	align-self: stretch;
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-metadata__description {
	max-width: 62ch;
	margin: 0 0 18px;
	line-height: 1.6;
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-metadata__description p {
	margin: 0;
	font-size: var(--text-base);
	line-height: 1.6;
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(20px, 3vw, 40px);
	padding: 4px 18px;
	background: var(--cream-soft);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > span,
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > li {
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px dotted var(--border-soft);
	font-size: var(--text-md);
	line-height: 1.4;
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details__name {
	flex: 0 0 auto;
	font-size: var(--text-base);
	font-weight: 400;
	color: var(--text-muted);
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details__value {
	min-width: 0;
	font-weight: 500;
	color: var(--ink);
	text-align: end;
	overflow-wrap: anywhere;
}
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details__extras,
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > span:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}
/* no hairline under the last row(s) */
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > span:last-child,
.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > span:nth-last-child(2):nth-child(odd):not(:last-child) {
	border-bottom: 0;
}
@media (max-width: 700px) {
	.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details {
		grid-template-columns: minmax(0, 1fr);
		padding: 2px 14px;
	}
	/* a long value drops under its label rather than breaking mid-word */
	.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > span,
	.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > li {
		flex-wrap: wrap;
		gap: 2px 14px;
	}
	.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details__value {
		margin-inline-start: auto;
		overflow-wrap: break-word;
	}
	.kondido-commerce .wc-block-cart-item__product .wc-block-components-product-details > span:nth-last-child(2):nth-child(odd):not(:last-child) {
		border-bottom: 1px dotted var(--border-soft);
	}
}

/* Quantity: a refined bordered stepper */
.kondido-commerce .wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}
.kondido-commerce .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: stretch;
	width: auto;
	min-width: 112px;
	margin: 0;
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
}
.kondido-commerce .wc-block-components-quantity-selector::after {
	display: none;
}
.kondido-commerce .wc-block-components-quantity-selector__input {
	width: 44px;
	min-height: 40px;
	padding: 0;
	font-size: var(--text-md);
	font-weight: 500;
	text-align: center;
	color: var(--ink);
	background: transparent;
	border: 0;
	box-shadow: none;
}
.kondido-commerce .wc-block-components-quantity-selector__button {
	width: 36px;
	min-width: 36px;
	color: var(--ink);
	opacity: 1;
	background: transparent;
	border: 0;
	border-radius: 0;
	transition: background var(--dur-fast), color var(--dur-fast);
}
.kondido-commerce .wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: var(--cream-deep);
	color: var(--accent-deep);
}
.kondido-commerce .wc-block-components-quantity-selector__button:disabled {
	opacity: 0.35;
}
.kondido-commerce .wc-block-cart-item__remove-link {
	font-size: var(--text-base);
	color: var(--text-muted);
	text-decoration: underline;
	text-decoration-color: var(--border-soft);
	text-underline-offset: 3px;
}
.kondido-commerce .wc-block-cart-item__remove-link:hover {
	color: var(--rose-deep);
}

/* Order summary card (cart sidebar and checkout sidebar) */
.kondido-commerce .wc-block-components-sidebar-layout .wc-block-cart__sidebar,
.kondido-commerce .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
	padding: clamp(22px, 2.4vw, 34px);
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
	box-shadow: var(--shadow-sm);
}
/* Cart summary: a calmer rhythm - heading with a hairline, then the coupon
   row, the total and the button, with no stacked 16px+16px gaps. */
.kondido-commerce .wc-block-cart__sidebar {
	font-size: var(--text-md);
}
.kondido-commerce .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
	margin-bottom: 18px;
}
.kondido-commerce .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-heading-block {
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-soft);
}
.kondido-commerce .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-coupon-form-block {
	padding: 14px 0;
}
.kondido-commerce .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	padding: 14px 0 0;
}
.kondido-commerce .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
	padding-top: 0;
}
.kondido-commerce .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 21px;
	line-height: 1.25;
}
.kondido-commerce .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 28px;
}
@media (min-width: 901px) {
	.kondido-commerce .wc-block-cart__sidebar,
	.kondido-commerce .wc-block-checkout__sidebar {
		position: sticky;
		top: calc(var(--nav-h-solid) + 28px);
	}
}
.kondido-commerce .wc-block-components-totals-wrapper {
	padding: 16px 0;
	border-color: var(--border-soft);
}
.kondido-commerce .wc-block-components-totals-wrapper:first-child {
	border-top: 0;
}
.kondido-commerce .wc-block-components-totals-item {
	font-size: var(--text-md);
	color: var(--text-muted);
}
.kondido-commerce .wc-block-components-totals-item__value {
	color: var(--ink);
	font-weight: 500;
}
.kondido-commerce .wc-block-components-totals-footer-item {
	padding-top: 6px;
}
.kondido-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	color: var(--ink);
}
.kondido-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 600;
	color: var(--ink);
}
.kondido-commerce .wc-block-components-totals-item__description,
.kondido-commerce .wc-block-components-totals-shipping__change-address__link {
	font-size: var(--text-sm);
	color: var(--text-muted);
}
.kondido-commerce .wc-block-cart__submit {
	margin: 0;
}
/* The cart's "Weiter zur Kasse" button is a link (<a aria-disabled>), so the
   generic :disabled rule never applied to it. Its states are made explicit
   here: it keeps its solid gold fill and a minimum size while WooCommerce
   recalculates (aria-disabled / loading) - only the label dims, and the
   spinner is white on gold - so it can never read as an empty or missing box. */
.kondido-commerce .wc-block-cart__submit-button {
	min-height: 56px;
	background: var(--accent-deep);
	color: var(--white);
	opacity: 1;
}
.kondido-commerce .wc-block-cart__submit-button[aria-disabled="true"] {
	cursor: progress;
}
.kondido-commerce .wc-block-cart__submit-button[aria-disabled="true"] .wc-block-components-button__text {
	opacity: 0.75;
}
.kondido-commerce .wc-block-cart__submit-button .wc-block-components-spinner {
	color: var(--white);
}
/* Mobile: WooCommerce docks the button to the bottom edge once the in-page
   one scrolls out of view - keep it above the home indicator. */
@media (max-width: 782px) {
	.kondido-commerce .wc-block-cart .wc-block-cart__submit-container--sticky {
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--border-soft);
	}
}

/* Coupon */
.kondido-commerce .wc-block-components-totals-coupon .wc-block-components-panel__button {
	padding: 0;
	font-size: var(--text-md);
	font-weight: 500;
	color: var(--accent-deep);
}
.kondido-commerce .wc-block-components-totals-coupon__form {
	gap: 10px;
}
.kondido-commerce .wc-block-components-totals-coupon__button {
	min-height: 52px;
	padding: 12px 22px;
}

/* Empty cart */
.kondido-commerce .wp-block-woocommerce-empty-cart-block {
	max-width: 880px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) 0 0;
	text-align: center;
}
.kondido-commerce .wp-block-woocommerce-empty-cart-block h2.with-empty-cart-icon {
	font-family: var(--font-display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 500;
	color: var(--ink);
}
.kondido-commerce .wp-block-woocommerce-empty-cart-block h2.with-empty-cart-icon::before {
	width: 52px;
	height: 52px;
	margin: 0 auto 18px;
	background-color: var(--accent-deep);
	opacity: 0.55;
	mask-size: contain;
	-webkit-mask-size: contain;
}
.kondido-commerce .kondido-empty-cart p {
	max-width: 520px;
	margin: 0 auto 24px;
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--text-muted);
}
.kondido-commerce .kondido-empty-cart-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: 8px;
}
.kondido-commerce .wp-block-woocommerce-empty-cart-block .wp-block-separator {
	max-width: 80px;
	margin: 40px auto;
	border-color: var(--border-soft);
}
.kondido-commerce .wp-block-woocommerce-empty-cart-block h2:not(.with-empty-cart-icon) {
	font-family: var(--font-display);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 500;
	color: var(--ink);
}
.kondido-commerce .wc-block-grid__product-title {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--ink);
}
.kondido-commerce .wc-block-grid__product-price {
	color: var(--text-muted);
}
.kondido-commerce .wc-block-grid__product-image img {
	border-radius: var(--r);
}

/* ==========================================================================
   CHECKOUT
   ========================================================================== */

/* Steps */
.kondido-commerce .wc-block-components-checkout-step {
	margin: 0 0 clamp(28px, 3vw, 40px);
	padding: 0 0 clamp(28px, 3vw, 40px);
	border-bottom: 1px solid var(--border-soft);
}
.kondido-commerce .wc-block-components-checkout-step:last-of-type {
	border-bottom: 0;
}
.kondido-commerce .wc-block-components-checkout-step__heading {
	margin: 0 0 8px;
}
.kondido-commerce .wc-block-components-checkout-step__description {
	margin: 0 0 20px;
	font-size: var(--text-base);
	color: var(--text-muted);
}

/* Inputs: comfortable, white, 1px borders, gold focus ring */
.kondido-commerce .wc-block-components-text-input input,
.kondido-commerce .wc-block-components-text-input textarea,
.kondido-commerce .wc-blocks-components-select__select,
.kondido-commerce .wc-block-components-combobox .components-combobox-control__suggestions-container input,
.kondido-commerce .wc-block-components-form .wc-block-components-text-input input[type] {
	min-height: 56px;
	padding: 24px 16px 8px;
	font-size: var(--text-md);
	color: var(--ink);
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
	box-shadow: none;
	transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.kondido-commerce .wc-block-components-text-input label,
.kondido-commerce .wc-blocks-components-select__label,
.kondido-commerce .wc-block-components-combobox .components-form-field label {
	font-size: var(--text-base);
	color: var(--text-muted);
	letter-spacing: 0.01em;
}
.kondido-commerce .wc-block-components-text-input input:focus,
.kondido-commerce .wc-block-components-text-input textarea:focus,
.kondido-commerce .wc-blocks-components-select__select:focus,
.kondido-commerce .wc-block-components-combobox .components-combobox-control__suggestions-container input:focus {
	border-color: var(--accent-deep);
	outline: none;
	box-shadow: 0 0 0 3px rgba(138, 95, 34, 0.16);
}
.kondido-commerce .wc-block-components-form .wc-block-components-text-input.has-error input[type],
.kondido-commerce .wc-block-components-text-input.has-error input,
.kondido-commerce .wc-blocks-components-select.has-error .wc-blocks-components-select__select {
	border-color: var(--rose-deep);
	box-shadow: 0 0 0 3px rgba(124, 47, 42, 0.12);
}
.kondido-commerce .wc-block-components-form .wc-block-components-text-input.has-error label,
.kondido-commerce .wc-block-components-text-input.has-error label,
.kondido-commerce .wc-blocks-components-select.has-error .wc-blocks-components-select__label,
.kondido-commerce .wc-block-components-validation-error,
.kondido-commerce .wc-block-components-validation-error p {
	color: var(--rose-deep);
	font-size: var(--text-sm);
}
.kondido-commerce .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border-color: var(--border-soft);
	border-radius: var(--r);
}
.kondido-commerce .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--accent-deep);
	border-color: var(--accent-deep);
}
.kondido-commerce .wc-block-components-checkbox .wc-block-components-checkbox__label,
.kondido-commerce .wc-block-components-checkbox__label {
	font-size: var(--text-base);
	color: var(--ink);
}

/* Shipping and payment choices: bordered option cards */
.kondido-commerce .wc-block-components-radio-control__option {
	margin: 0 0 10px;
	padding: 16px 18px 16px 52px;
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
	box-shadow: none;
	transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.kondido-commerce .wc-block-components-radio-control__option-checked {
	border-color: var(--accent-deep);
	box-shadow: 0 0 0 1px var(--accent-deep);
}
/* Payment methods: the accordion wrapper is the card, so its inner option adds no second frame */
.kondido-commerce .wc-block-components-radio-control-accordion-option {
	margin: 0 0 10px;
	padding: 0;
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
	box-shadow: none;
}
.kondido-commerce .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.kondido-commerce .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--accent-deep);
	box-shadow: 0 0 0 1px var(--accent-deep);
}
.kondido-commerce .wc-block-components-radio-control-accordion-option::after,
.kondido-commerce .wc-block-components-radio-control__option::after {
	display: none;
}
.kondido-commerce .wc-block-components-radio-control__input {
	border-color: var(--border-soft);
}
.kondido-commerce .wc-block-components-radio-control__input:checked {
	border-color: var(--accent-deep);
}
.kondido-commerce .wc-block-components-radio-control__input:checked::before {
	background: var(--accent-deep);
}
.kondido-commerce .wc-block-components-radio-control__label,
.kondido-commerce .wc-block-components-radio-control__description {
	font-size: var(--text-md);
	color: var(--ink);
}
.kondido-commerce .wc-block-components-radio-control__secondary-label,
.kondido-commerce .wc-block-components-radio-control__description {
	color: var(--text-muted);
}
.kondido-commerce .wc-block-components-radio-control-accordion-content {
	padding: 0 18px 18px 52px;
	font-size: var(--text-base);
	color: var(--text-muted);
}

/* Order summary (checkout): the sidebar card is the frame, so no second box inside it */
.kondido-commerce .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
	border-radius: 0;
}
.kondido-commerce .wp-block-woocommerce-checkout-order-summary-totals-block {
	border-top-color: var(--border-soft);
}
.kondido-commerce .wc-block-components-order-summary .wc-block-components-order-summary-item {
	padding: 16px 0;
}
.kondido-commerce .wc-block-components-order-summary-item__image img {
	border-radius: var(--r);
}
.kondido-commerce .wc-block-components-order-summary-item__quantity {
	background: var(--ink);
	color: var(--white);
	border: 2px solid var(--white);
	box-shadow: none;
}
.kondido-commerce .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-size: 19px;
}
.kondido-commerce .wc-block-components-order-summary-item__total-price {
	font-weight: 600;
	color: var(--ink);
}
.kondido-commerce .wc-block-components-order-summary-item .wc-block-components-product-metadata {
	margin-top: 4px;
	font-size: var(--text-sm);
}
.kondido-commerce .wc-block-components-order-summary-item .wc-block-components-product-details {
	padding-top: 6px;
}

/* Collapsed summary on narrow screens: one clean header row, no stacked rules */
.kondido-commerce .wc-block-components-checkout-order-summary__title {
	padding: 4px 0;
	border: 0;
}
.kondido-commerce .wc-block-components-checkout-order-summary__title-price {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	color: var(--ink);
}

/* Actions row and terms */
.kondido-commerce .wc-block-checkout__actions {
	margin-top: 8px;
	padding: 0;
}
.kondido-commerce .wc-block-checkout__actions_row {
	align-items: center;
	gap: 18px;
}
.kondido-commerce .wc-block-checkout__terms,
.kondido-commerce .wc-block-checkout__terms--with-separator {
	margin: 0 0 20px;
	padding: 0;
	font-size: var(--text-sm);
	line-height: 1.6;
	color: var(--text-muted);
	border: 0;
}
.kondido-commerce .wc-block-checkout__terms a {
	color: var(--accent-deep);
	text-decoration: underline;
	text-decoration-color: var(--border-soft);
	text-underline-offset: 3px;
}
.kondido-commerce .wc-block-checkout__terms a:hover {
	color: var(--ink);
}
.kondido-commerce .wc-block-components-address-form__address_2-toggle,
.kondido-commerce .wc-block-components-address-form__address_2-toggle:hover {
	font-size: var(--text-base);
	color: var(--accent-deep);
}

/* Notices and errors */
.kondido-commerce .wc-block-components-notice-banner {
	margin: 0 0 24px;
	padding: 16px 20px;
	font-size: var(--text-md);
	color: var(--ink);
	background: var(--cream-soft);
	border: 1px solid var(--border-soft);
	border-inline-start: 3px solid var(--accent-deep);
	border-radius: var(--r);
}
.kondido-commerce .wc-block-components-notice-banner.is-error {
	border-inline-start-color: var(--rose-deep);
	background: #fbf3f0;
}
.kondido-commerce .wc-block-components-notice-banner.is-success {
	border-inline-start-color: #4d6b3a;
}
.kondido-commerce .wc-block-components-notice-banner > svg {
	fill: currentColor;
	background: transparent;
}
.kondido-commerce .wc-block-components-notice-banner.is-error > svg {
	color: var(--rose-deep);
}
.kondido-commerce .wc-block-components-notice-banner .wc-block-components-button {
	min-height: 0;
	padding: 0;
	color: var(--accent-deep);
	background: transparent;
	text-transform: none;
}

/* Small screens */
@media (max-width: 700px) {
	.commerce-section {
		padding-top: 12px;
	}
	.kondido-commerce .wc-block-components-sidebar-layout .wc-block-cart__sidebar,
	.kondido-commerce .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
		padding: 18px;
	}
	.kondido-commerce .wc-block-cart-items__header-image,
	.kondido-commerce .wc-block-cart-items__header-product {
		display: none;
	}
	.kondido-commerce .wc-block-cart-item__image {
		width: 84px;
		padding-inline-end: 16px;
	}
	.kondido-commerce .wc-block-components-checkout-step__title {
		font-size: 24px;
	}
	.kondido-commerce .wc-block-checkout__actions_row {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.kondido-commerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		font-size: 26px;
	}
}

/* ==========================================================================
   ORDER RECEIVED / ORDER PAY (classic WooCommerce templates in the same flow)
   ========================================================================== */
.kondido-commerce .woocommerce-order,
.kondido-commerce form#order_review {
	font-family: var(--font-sans);
	font-size: var(--text-md);
	color: var(--ink);
}
.kondido-commerce .woocommerce-order-details__title,
.kondido-commerce .woocommerce-column__title,
.kondido-commerce .woocommerce-order h2 {
	font-family: var(--font-display);
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 500;
	color: var(--ink);
}
.kondido-commerce table.shop_table {
	border: 0;
	border-collapse: collapse;
	background: var(--white);
	border-radius: var(--r);
	box-shadow: var(--shadow-sm);
}
.kondido-commerce table.shop_table th,
.kondido-commerce table.shop_table td {
	padding: 16px 20px;
	border: 0;
	border-bottom: 1px solid var(--border-soft);
	vertical-align: top;
}
.kondido-commerce table.shop_table thead th {
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.kondido-commerce table.shop_table tfoot th {
	font-weight: 600;
}
.kondido-commerce table.shop_table tr:last-child th,
.kondido-commerce table.shop_table tr:last-child td {
	border-bottom: 0;
}
.kondido-commerce ul.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 36px;
	margin: 0 0 32px;
	padding: 20px 24px;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
}
.kondido-commerce ul.woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.kondido-commerce ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 4px;
	font-size: var(--text-md);
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
}
.kondido-commerce .woocommerce-table--order-details .wc-item-meta,
.kondido-commerce .woocommerce-table--order-details .wc-item-meta li {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-base);
	color: var(--text-muted);
}
.kondido-commerce .woocommerce-table--order-details .wc-item-meta strong {
	color: var(--ink);
	font-weight: 600;
}
.kondido-commerce #payment {
	background: var(--white);
	border: 1px solid var(--border-soft);
	border-radius: var(--r);
}
.kondido-commerce #payment ul.payment_methods {
	padding: 8px 20px;
	border-bottom: 1px solid var(--border-soft);
}
.kondido-commerce #payment div.form-row {
	padding: 20px;
}
.kondido-commerce #payment #place_order {
	width: 100%;
}
@media (max-width: 700px) {
	.kondido-commerce table.shop_table th,
	.kondido-commerce table.shop_table td {
		padding: 12px 14px;
	}
}

/* ==========================================================================
   CART PAGE COMPOSITION (header, rhythm, continue shopping)
   Cart only (body.kondido-cart); Checkout keeps its own header.
   Vertical rhythm: nav clearance -> breadcrumb 18px -> title 10px ->
   description -> header bottom padding -> hairline -> cart content -> footer.
   ========================================================================== */
.kondido-cart .commerce-intro {
	padding: clamp(104px, 10vw, 124px) clamp(20px, 5vw, 64px) clamp(26px, 3vw, 36px);
	background: var(--cream-soft);
	border-bottom: 1px solid var(--border-soft);
}
.kondido-cart .commerce-intro .breadcrumb {
	margin-bottom: 18px;
	font-size: var(--text-sm);
}
.kondido-cart .commerce-intro .page-intro-title {
	margin: 0 0 10px;
}
.kondido-cart .commerce-intro .page-intro-sub {
	font-size: var(--text-lg);
}
.kondido-cart .commerce-section {
	padding-top: clamp(28px, 3.4vw, 44px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

/* "← Weiter einkaufen": printed outside the Cart block, shown only while the
   filled cart (its items table) is on screen, so the empty cart never has it. */
.kondido-cart-continue {
	display: none;
	margin: 28px 0 0;
}
.kondido-cart .commerce-inner:has(.wc-block-cart-items) .kondido-cart-continue {
	display: block;
}
.kondido-cart-continue a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--text-md);
	font-weight: 500;
	color: var(--accent-deep);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.kondido-cart-continue a::before {
	content: "\2190";
}
[dir="rtl"] .kondido-cart-continue a::before {
	content: "\2192";
}
.kondido-cart-continue a:hover,
.kondido-cart-continue a:focus-visible {
	color: var(--ink);
	border-bottom-color: var(--gold);
}

/* Checkout button reachability (desktop, sticky summary).
   The summary card sticks below the header while the list scrolls. When it is
   taller than the visible area (short window, shipping rows, express payment,
   an open coupon form, error notices) its top stays pinned and the button at
   its bottom sat below the fold for most of the scroll. The card is now
   capped to the visible height and scrolls inside itself, and its button area
   stays pinned to the card's bottom edge, so "Weiter zur Kasse" is always on
   screen. When the card fits (the normal case) nothing changes. */
@media (min-width: 901px) {
	.kondido-commerce .wc-block-cart__sidebar {
		max-height: calc(100vh - var(--nav-h-solid) - 56px);
		max-height: calc(100dvh - var(--nav-h-solid) - 56px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.kondido-commerce .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
		margin-bottom: 6px;
	}
	.kondido-commerce .wc-block-cart__sidebar .wc-block-cart__submit {
		position: sticky;
		bottom: 0;
		z-index: 1;
		padding: 12px 0 0;
		background: var(--white);
	}
}
