/* Won't Walk – Warenkorb, Kasse, Bestätigung (WooCommerce-Blöcke, nur CSS) */

.ww-main > * {
	margin-block: 0;
}

/* ---------------------------------------------------------------
   Kopf mit Bestellschritten
   --------------------------------------------------------------- */
.ww-checkout-head {
	padding: 56px 0 40px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ww-checkout-head__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.ww-checkout-head__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--page-title);
	line-height: .9;
}

.ww-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ww-steps__item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wp--preset--color--text-4);
}

.ww-steps__item + .ww-steps__item::before {
	content: "";
	width: 32px;
	height: 1px;
	margin-right: 4px;
	background: var(--wp--preset--color--line-strong);
}

.ww-steps__item a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.ww-steps__nr {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	box-sizing: border-box;
	border: 1px solid #3A4A47;
	border-radius: 50%;
	font-size: 13px;
	letter-spacing: 0;
}

.ww-steps__item.is-current {
	color: var(--wp--preset--color--accent);
}

.ww-steps__item.is-current .ww-steps__nr {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--black);
}

.ww-steps__item.is-done {
	color: var(--wp--preset--color--text-2);
}

.ww-steps__item.is-done .ww-steps__nr {
	border-color: var(--wp--preset--color--text-2);
}

/* Inhalt */
.ww-checkout-content {
	padding: 48px var(--ww-gutter) 80px !important;
}

.ww-checkout .wc-block-components-notices {
	margin-top: 24px;
}

/* ---------------------------------------------------------------
   Warenkorb
   --------------------------------------------------------------- */
.wp-block-woocommerce-cart.alignwide {
	margin: 0 auto;
}

.wc-block-cart {
	gap: 48px;
}

.ww-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
	padding-right: 0;
}

.ww-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
.ww-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	width: auto;
}

.ww-checkout .wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	align-items: start;
	gap: 48px;
	margin: 0;
}

.wc-block-cart-items {
	border-collapse: collapse;
}

.wc-block-cart-items th,
.wc-block-cart-items__header {
	color: var(--wp--preset--color--text-4);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.wc-block-cart-items__header th {
	padding: 0 0 16px !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wc-block-cart-items .wc-block-cart-items__row {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.wc-block-cart-items .wc-block-cart-items__row td {
	padding-block: 28px !important;
	border: 0 !important;
}

.wc-block-cart-item__image {
	width: 120px;
	padding-right: 24px !important;
}

.wc-block-cart-item__image a,
.wc-block-cart-item__image img {
	display: block;
	width: 120px;
	aspect-ratio: 4 / 5;
	border-radius: 8px;
	object-fit: cover;
	background: var(--wp--preset--color--surface-2);
}

.wc-block-cart-items .wc-block-components-product-name,
.wc-block-components-product-name {
	color: var(--wp--preset--color--white) !important;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
}

.wc-block-components-product-name:hover {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 5px;
}

.wc-block-cart-item__prices,
.wc-block-components-product-metadata {
	color: var(--wp--preset--color--text-3);
	font-size: 14px;
}

.wc-block-cart-item__prices .wc-block-components-product-price {
	color: var(--wp--preset--color--text-3);
}

.wc-block-cart-item__quantity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 6px;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	min-height: 44px;
	margin: 0;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector__button {
	width: 44px;
	min-width: 44px;
	height: 44px;
	font-size: 20px;
}

.wc-block-cart-item__remove-link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--wp--preset--color--text-3) !important;
}

.wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--white) !important;
}

.wc-block-cart-item__total {
	color: var(--wp--preset--color--white);
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

/* Übersicht / Seitenspalte */
.ww-checkout .wc-block-components-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px !important;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--surface-1);
}

.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title-text {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--wp--preset--color--white) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
}

.wc-block-components-totals-wrapper {
	padding-inline: 0 !important;
	border-color: var(--wp--preset--color--line) !important;
}

.wc-block-components-totals-item {
	color: var(--wp--preset--color--text-2);
	font-size: 16px;
}

.wc-block-components-totals-item__value {
	color: var(--wp--preset--color--white);
}

.wc-block-components-totals-footer-item {
	padding-top: 18px;
	border-top: 1px solid var(--wp--preset--color--line-strong);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--wp--preset--color--white);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 28px;
	font-weight: 700;
}

.wc-block-components-totals-item__description,
.wc-gzd-small-business-notice,
.wc-gzd-additional-info,
.wc-block-components-totals-footer-item-tax {
	color: var(--wp--preset--color--text-4) !important;
	font-size: 12px !important;
}

.wc-block-cart__submit-container {
	padding: 0 !important;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 56px !important;
	font-size: 17px !important;
}

/* Vorteile in der Seitenspalte (per JS eingesetzt) */
.ww-cart-trust {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--text-2);
	font-size: 14px;
	list-style: none;
}

.ww-cart-trust li {
	display: flex;
	gap: 10px;
}

.ww-cart-trust svg {
	flex-shrink: 0;
	color: var(--wp--preset--color--accent);
}

.ww-cart-trust__back {
	align-self: flex-start;
}

/* Leerer Warenkorb */
.ww-cart-empty {
	gap: 18px;
	padding: 56px 0;
}

.ww-cart-empty__title {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: 22px;
	font-weight: 700;
}

/* Komplettier den Look */
.ww-cart-cross {
	padding: 0 0 96px;
}

.ww-cart-cross__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ww-cart-cross__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 48px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ww-cart-cross__head p,
.ww-cart-cross__head h2 {
	margin: 0;
}

.ww-cart-cross__head h2 {
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1;
}

/* ---------------------------------------------------------------
   Kasse
   --------------------------------------------------------------- */
.wc-block-components-checkout-step__title {
	color: var(--wp--preset--color--white) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
}

.wc-block-components-checkout-step__description {
	color: var(--wp--preset--color--text-3);
}

.wc-block-checkout__form .wc-block-components-checkout-step__container::after,
.wc-block-components-checkout-step::after {
	display: none !important;
}

.wc-block-components-checkout-step {
	margin-bottom: 40px !important;
	padding: 0 !important;
}

.wc-block-components-checkout-step__heading {
	margin: 0 0 16px !important;
}

/* Formularfelder */
.ww-checkout .wc-block-components-text-input input,
.ww-checkout .wc-block-components-textarea,
.ww-checkout .wc-blocks-components-select__select,
.ww-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
.ww-checkout .wc-block-components-totals-coupon__input input {
	min-height: 52px;
	border: 1px solid var(--wp--preset--color--line-strong) !important;
	border-radius: 8px !important;
	background: var(--wp--preset--color--black) !important;
	color: var(--wp--preset--color--white) !important;
	font-family: inherit;
	box-shadow: none !important;
}

.ww-checkout .wc-block-components-text-input input:focus,
.ww-checkout .wc-blocks-components-select__select:focus,
.ww-checkout .wc-block-components-textarea:focus {
	border-color: var(--wp--preset--color--white) !important;
}

.ww-checkout .wc-block-components-text-input label,
.ww-checkout .wc-blocks-components-select__label,
.ww-checkout .wc-block-components-combobox label {
	color: var(--wp--preset--color--text-3) !important;
}

.ww-checkout .wc-blocks-components-select__container {
	border: 0 !important;
	background: transparent !important;
}

.ww-checkout .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--white);
}

.ww-checkout .has-error input,
.ww-checkout .has-error select {
	border-color: #FF8A80 !important;
}

.ww-checkout .wc-block-components-validation-error {
	color: #FF8A80;
}

.ww-checkout .wc-block-components-checkbox__input,
.ww-checkout .wc-block-components-radio-control__input {
	border: 1px solid var(--wp--preset--color--line-strong) !important;
	background: var(--wp--preset--color--black) !important;
}

.ww-checkout .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--black);
}

.ww-checkout .wc-block-components-checkbox__input:checked {
	border-color: var(--wp--preset--color--accent) !important;
	background: var(--wp--preset--color--accent) !important;
}

.ww-checkout .wc-block-components-radio-control__input:checked::before {
	background: var(--wp--preset--color--accent);
}

.ww-checkout .wc-block-components-radio-control--highlight-checked,
.ww-checkout .wc-block-components-radio-control-accordion-option {
	border-color: var(--wp--preset--color--line-strong) !important;
	box-shadow: none !important;
}

.ww-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.ww-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent) !important;
}

.ww-checkout a:not(.wp-element-button):not(.wc-block-components-product-name) {
	color: var(--wp--preset--color--white);
	text-underline-offset: 3px;
}

/* Bestellübersicht in der Kasse: kein eigener Rahmen/Hintergrund im Panel */
.ww-checkout .wp-block-woocommerce-checkout-order-summary-block {
	border: 0 !important;
	border-radius: 0 !important;
}

.ww-checkout .wc-block-components-order-summary,
.ww-checkout .wc-block-components-order-summary.is-large {
	padding-inline: 0 !important;
	background: transparent !important;
}

.wc-block-components-checkout-order-summary__title {
	padding-inline: 0 !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-size: 16px !important;
	text-transform: none;
}

/* Bestellübersicht in der Kasse */
.wc-block-components-order-summary-item__image > img {
	border-radius: 6px;
}

.wc-block-components-order-summary-item__quantity {
	border-color: var(--wp--preset--color--black) !important;
	background: var(--wp--preset--color--signal) !important;
	color: var(--wp--preset--color--black) !important;
	box-shadow: none !important;
	font-weight: 700;
}

.wc-block-components-order-summary-item__quantity span {
	color: var(--wp--preset--color--black) !important;
}

.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary-item__total-price {
	color: var(--wp--preset--color--text-2);
}

.wc-block-components-panel__button {
	color: var(--wp--preset--color--white) !important;
}

/* ---------------------------------------------------------------
   Bestätigung
   --------------------------------------------------------------- */
.ww-order-received {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.ww-order-received .wc-block-order-confirmation-status {
	font-size: 22px;
}

.ww-order-received__h {
	margin: 0 0 16px;
	font-size: 22px;
}

.ww-order-received table {
	width: 100%;
	border-collapse: collapse;
}

.ww-order-received th,
.ww-order-received td {
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
}

/* ---------------------------------------------------------------
   Mobil
   --------------------------------------------------------------- */
@media (max-width: 1060px) {
	.ww-checkout .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Kasse: Bestellübersicht mit „Jetzt kaufen“ (Germanized) erst nach allen Feldern und Checkboxen */
	.ww-checkout .wc-block-checkout > .wc-block-checkout__sidebar {
		order: 2;
	}
}

@media (max-width: 760px) {
	.ww-checkout-head {
		padding: 32px 0 24px;
	}

	/* Schritte über die volle Breite: Nummer oben, Text darunter, Linie dazwischen */
	.ww-checkout-head__inner {
		gap: 20px;
	}

	.ww-steps {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
		gap: 0;
		width: 100%;
		font-size: 11px;
		letter-spacing: .1em;
	}

	.ww-steps__item,
	.ww-steps__item a {
		position: relative;
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}

	.ww-steps__item + .ww-steps__item::before {
		position: absolute;
		top: 15px;
		right: calc(50% + 24px);
		left: calc(-50% + 24px);
		width: auto;
		margin: 0;
	}

	.ww-steps__item.is-current::before,
	.ww-steps__item.is-done + .ww-steps__item::before {
		background: var(--wp--preset--color--text-2);
	}

	.ww-steps__nr {
		width: 30px;
		height: 30px;
	}

	.ww-checkout-content {
		padding: 24px var(--ww-gutter) 48px !important;
	}

	.wc-block-cart-item__image,
	.wc-block-cart-item__image a,
	.wc-block-cart-item__image img {
		width: 88px;
	}

	.wc-block-cart-items .wc-block-components-product-name {
		font-size: 16px;
	}

	.ww-checkout .wc-block-components-sidebar {
		padding: 20px !important;
	}

	/* Feste Leiste „Gesamt · Zur Kasse“ */
	.wc-block-cart__submit-container--sticky {
		display: flex !important;
		align-items: center;
		gap: 12px;
		padding: 12px 16px calc(16px + env(safe-area-inset-bottom)) !important;
		border-top: 1px solid var(--wp--preset--color--line-strong);
		background: rgba(2, 2, 2, .94) !important;
	}

	.wc-block-cart__submit-container--sticky::before {
		display: none !important;
	}

	.ww-sticky-total {
		display: flex;
		flex-direction: column;
		flex-shrink: 0;
		color: var(--wp--preset--color--text-3);
		font-size: 12px;
		text-transform: uppercase;
		letter-spacing: .08em;
	}

	.ww-sticky-total strong {
		color: var(--wp--preset--color--white);
		font-size: 18px;
		letter-spacing: 0;
	}

	.wc-block-cart__submit-container--sticky .wc-block-cart__submit-button {
		flex: 1;
		min-height: 52px !important;
	}

	body:has(.wc-block-cart__submit-container--sticky) .ww-footer {
		padding-bottom: 96px;
	}

	.ww-cart-cross .ww-products {
		gap: 24px 12px;
	}
}

.ww-cart-trust a {
	color: inherit;
	text-underline-offset: 3px;
}

.ww-cart-trust a:hover {
	color: var(--wp--preset--color--accent-light);
}

.ww-cart-trust .ww-cart-trust__legal {
	flex-wrap: wrap;
	gap: 4px 18px;
	padding-left: 28px;
	color: var(--wp--preset--color--text-3);
	font-size: 13px;
}

