/*
 * Phänomen Woo UI — side cart (Breakdance MiniCart, header 524) and the
 * line-item primitives it shares with the cart page and the checkout review.
 *
 * Figma: "Desktop/Produktdetail/Warenkorb-Overlay" 2186:1519, drawer 2186:1521.
 * Loaded site-wide (the drawer lives in the header).
 *
 * Tokens only: Breakdance palette variables for colour and the typography
 * preset variables Breakdance emits for every global preset
 * (--preset-id-<uuid>-font-size / -font-weight / -line-height / -letter-spacing
 * / -text-transform, redefined per breakpoint on :root). No hex, no font-family.
 *
 * SPECIFICITY: this file is enqueued before every Breakdance stylesheet, so a
 * tie is a loss. Drawer rules are scoped through `.breakdance .bde-mini-cart
 * .bde-mini-cart-offcanvas` (0,3,0) to clear Breakdance's base rules
 * (≤ 0,2,x) and the MiniCart element's generated rules for controls we leave
 * empty. No !important.
 */

:root {
	/* Palette (Global Styles → Colors) */
	--pwu-text: var(--bde-palette-color-1-1941ae39-5fd1-488e-917f-5d78aaaed343);
	--pwu-accent: var(--bde-palette-color-1-958f4842-ed4f-48d9-908f-bfea722eb4e3);
	--pwu-accent-hover: var(--bde-palette-color-1-9fa87e18-37e4-4a1f-9076-d5f5bce21cb1);
	--pwu-accent-bg: var(--bde-palette-color-1-381c0d3c-7dbc-412b-b42f-0e47e0edf035);
	--pwu-white: var(--bde-palette-color-1-ee680f71-e28d-4961-a89a-3fa5c9511c7a);
	--pwu-on-text: var(--bde-palette-color-1-c365544d-749a-494c-8a06-9f7575656729);
	--pwu-error: var(--bde-palette-color-1-42310981-8410-413b-b4a8-00d29809ce05);
	--pwu-line: var(--bde-palette-color-1-6ff98eb0-e04c-47a7-8d7e-46a642ad5286);

	/* Typography presets (Global Styles → Typography → Presets) */
	--pwu-h2-fs: var(--preset-id-413dee42-1ea6-4fb7-9965-ca9c23f51014-font-size);
	--pwu-h2-fw: var(--preset-id-413dee42-1ea6-4fb7-9965-ca9c23f51014-font-weight);
	--pwu-h2-lh: var(--preset-id-413dee42-1ea6-4fb7-9965-ca9c23f51014-line-height);
	--pwu-h2-ls: var(--preset-id-413dee42-1ea6-4fb7-9965-ca9c23f51014-letter-spacing, normal);
	--pwu-h2-tt: var(--preset-id-413dee42-1ea6-4fb7-9965-ca9c23f51014-text-transform, none);

	--pwu-h3-fs: var(--preset-id-5f51dce8-df8e-4857-b3d7-60d02407a72c-font-size);
	--pwu-h3-fw: var(--preset-id-5f51dce8-df8e-4857-b3d7-60d02407a72c-font-weight);
	--pwu-h3-lh: var(--preset-id-5f51dce8-df8e-4857-b3d7-60d02407a72c-line-height);
	--pwu-h3-ls: var(--preset-id-5f51dce8-df8e-4857-b3d7-60d02407a72c-letter-spacing, normal);

	--pwu-h4-fs: var(--preset-id-3d30c2dc-ca1c-4200-8c52-0f2ec0de8d1e-font-size);
	--pwu-h4-fw: var(--preset-id-3d30c2dc-ca1c-4200-8c52-0f2ec0de8d1e-font-weight);
	--pwu-h4-lh: var(--preset-id-3d30c2dc-ca1c-4200-8c52-0f2ec0de8d1e-line-height);

	--pwu-h6-fs: var(--preset-id-34be6092-b214-4a1d-a4c7-ea5a0076d0d3-font-size);
	--pwu-h6-fw: var(--preset-id-34be6092-b214-4a1d-a4c7-ea5a0076d0d3-font-weight);
	--pwu-h6-lh: var(--preset-id-34be6092-b214-4a1d-a4c7-ea5a0076d0d3-line-height);

	--pwu-body-fs: var(--preset-id-781ac304-ba25-4354-9a36-e0647f74e153-font-size);
	--pwu-body-fw: var(--preset-id-781ac304-ba25-4354-9a36-e0647f74e153-font-weight);
	--pwu-body-lh: var(--preset-id-781ac304-ba25-4354-9a36-e0647f74e153-line-height);

	--pwu-small-fs: var(--preset-id-078fccf6-1ea3-4365-b0c5-97bc98c6e4f0-font-size);
	--pwu-small-fw: var(--preset-id-078fccf6-1ea3-4365-b0c5-97bc98c6e4f0-font-weight);
	--pwu-small-lh: var(--preset-id-078fccf6-1ea3-4365-b0c5-97bc98c6e4f0-line-height);

	--pwu-xs-fs: var(--preset-id-65106007-b61d-4173-ba56-9f7c831f2924-font-size);
	--pwu-xs-fw: var(--preset-id-65106007-b61d-4173-ba56-9f7c831f2924-font-weight);
	--pwu-xs-lh: var(--preset-id-65106007-b61d-4173-ba56-9f7c831f2924-line-height);

	--pwu-kick-fs: var(--preset-id-c0d79d7c-d61d-4058-9514-9088667051b8-font-size);
	--pwu-kick-fw: var(--preset-id-c0d79d7c-d61d-4058-9514-9088667051b8-font-weight);
	--pwu-kick-lh: var(--preset-id-c0d79d7c-d61d-4058-9514-9088667051b8-line-height);
	--pwu-kick-ls: var(--preset-id-c0d79d7c-d61d-4058-9514-9088667051b8-letter-spacing);
	--pwu-kick-tt: var(--preset-id-c0d79d7c-d61d-4058-9514-9088667051b8-text-transform);

	--pwu-btn-fs: var(--preset-id-5f7cf168-f891-47fc-a193-6e7294a7a5a7-font-size);
	--pwu-btn-fw: var(--preset-id-5f7cf168-f891-47fc-a193-6e7294a7a5a7-font-weight);
	--pwu-btn-lh: var(--preset-id-5f7cf168-f891-47fc-a193-6e7294a7a5a7-line-height);
	--pwu-btn-tt: var(--preset-id-5f7cf168-f891-47fc-a193-6e7294a7a5a7-text-transform);

	--pwu-tags-fs: var(--preset-id-d648ff10-c00a-4801-81e5-077539e85e00-font-size);
	--pwu-tags-fw: var(--preset-id-d648ff10-c00a-4801-81e5-077539e85e00-font-weight);
	--pwu-tags-ls: var(--preset-id-d648ff10-c00a-4801-81e5-077539e85e00-letter-spacing);
	--pwu-tags-tt: var(--preset-id-d648ff10-c00a-4801-81e5-077539e85e00-text-transform);

	/* Figma Button: 1px border + 12/27 padding + the preset's 22px line = 48px */
	--pwu-btn-pad: 12px 27px;

	/* Row thumbnail default 80 × 96 (Figma) — overridden per surface: side cart
	   drawer below (100 × 133), checkout review in cart-checkout.css (72 × 96). */
	--pwu-mini-thumb-w: 80px;
	--pwu-mini-thumb-h: 96px;
}

/* Side cart rows: 3:4 portrait box (as the PDP gallery), about as tall as the
   row's text column (brand 18 + name 22 + variant 22 + gaps 8 ≈ 70, stepper
   row 52, „Nur 1 verfügbar" 22 → 122–144). Declared on the drawer only. The
   image's srcset `sizes` follow
   these values: includes/line-image.php, slot 'mini' — change both together. */
:where(.bde-mini-cart-offcanvas) {
	--pwu-mini-thumb-w: 100px;
	--pwu-mini-thumb-h: 133px;
}

@media (max-width: 767px) {
	:where(.bde-mini-cart-offcanvas) {
		--pwu-mini-thumb-w: 90px;
		--pwu-mini-thumb-h: 120px;
	}
}

/* -------------------------------------------------------------------------
 * 1. Shared line-item text: brand · name · variant
 *    (side cart defaults; the cart page and the checkout review re-size the
 *    name and variant in cart-checkout.css)
 * ---------------------------------------------------------------------- */

.pwu-brand {
	display: block;
	margin: 0;
	color: var(--pwu-accent);
	font-size: var(--pwu-kick-fs);
	font-weight: var(--pwu-kick-fw);
	line-height: var(--pwu-kick-lh);
	letter-spacing: var(--pwu-kick-ls);
	text-transform: var(--pwu-kick-tt);
}

.pwu-name {
	display: block;
	color: var(--pwu-text);
	font-size: var(--pwu-body-fs);
	font-weight: var(--pwu-body-fw);
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.pwu-name a {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

.pwu-name a:hover,
.pwu-name a:focus-visible {
	color: var(--pwu-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pwu-variant {
	display: block;
	color: var(--pwu-accent);
	font-size: var(--pwu-small-fs);
	font-weight: var(--pwu-small-fw);
	line-height: var(--pwu-small-lh);
	letter-spacing: normal;
	text-transform: none;
}

/* -------------------------------------------------------------------------
 * 2. Line price: current price (Text) + struck regular price (Accent)
 * ---------------------------------------------------------------------- */

.pwu-line-price {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	white-space: nowrap;
}

.pwu-line-price .pwu-line-price__current,
.pwu-line-price .pwu-line-price__current .woocommerce-Price-amount,
:root .pwu-line-price .pwu-line-price__current bdi {
	color: var(--pwu-text);
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.pwu-line-price .pwu-line-price__old,
.pwu-line-price .pwu-line-price__old .woocommerce-Price-amount,
.pwu-line-price .pwu-line-price__old bdi {
	color: var(--pwu-accent);
	font-weight: inherit;
	line-height: inherit;
	text-decoration-line: line-through;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--pwu-accent);
}

/* -------------------------------------------------------------------------
 * 3. Sale tag on line thumbnails (Figma Sale-Tag S / XS)
 * ---------------------------------------------------------------------- */

.pwu-sale-tag {
	position: absolute;
	z-index: 1;
	display: inline-block;
	pointer-events: none;
	background-color: var(--pwu-text);
	color: var(--pwu-white);
	font-weight: var(--pwu-tags-fw);
	line-height: 1;
	letter-spacing: var(--pwu-tags-ls);
	text-transform: var(--pwu-tags-tt);
	white-space: nowrap;
}

/* Cover-cropped line photos keep the top (the model's head) and lose the
   bottom instead of being cut evenly: side cart (.bde-mini-cart-item-thumbnail),
   cart page rows (td.pwu-cart-item__media), the checkout review
   (.pwu-review-item__thumb) and the My Account order / Lieblinge rows
   (.pwu-line__media). data-fit="contain" photos show whole and stay centred.
   (0,1,1): nothing else sets object-position on these images (Breakdance and
   Global Styles checked 2026-11-08). */
:where(.bde-mini-cart-item-thumbnail, .pwu-cart-item__media, .pwu-line__media, .pwu-review-item__thumb) img:not([data-fit="contain"]) {
	object-position: 50% 0;
}

/* -------------------------------------------------------------------------
 * 4. Quantity stepper — cart page and side cart (Figma "Mengen-Aktionen")
 *
 *    1px Text frame, 6/10 padding, minus · number · plus with 12px gaps,
 *    18px icons (Figma accordion icons, --ph-icon-minus / --ph-icon-plus from
 *    the global "Phänomen Icons (Masken)" stylesheet), number 14px (Body XS).
 *    The buttons are 24px wide (icon centred) to meet the 24px target size;
 *    padding and gaps are reduced by the same 3px each side, so the glyphs sit
 *    exactly where Figma draws them.
 *
 *    Restyles Breakdance's own stepper (global/quantity-input.php +
 *    js/quantity.js); nothing is rebuilt.
 * ---------------------------------------------------------------------- */

.pwu-cart .product-quantity .quantity,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .quantity {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 6px 7px;
	border: 1px solid var(--pwu-text);
	border-radius: 0;
	background-color: var(--pwu-white);
}

.pwu-cart .product-quantity .bde-quantity-button,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button {
	position: static;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 30px;
	margin: 0;
	padding: 0;
	transform: none;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--pwu-text);
	font-size: 18px;
	cursor: pointer;
}

.pwu-cart .product-quantity .bde-quantity-button::before,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button::before {
	width: 18px;
	height: 18px;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.pwu-cart .product-quantity .bde-quantity-button--dec::before,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button--dec::before {
	-webkit-mask-image: var(--ph-icon-minus);
	mask-image: var(--ph-icon-minus);
}

.pwu-cart .product-quantity .bde-quantity-button--inc::before,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button--inc::before {
	-webkit-mask-image: var(--ph-icon-plus);
	mask-image: var(--ph-icon-plus);
}

.pwu-cart .product-quantity .bde-quantity-button:hover,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button:hover {
	background-color: transparent;
	color: var(--pwu-accent-hover);
}

.pwu-cart .product-quantity .bde-quantity-button[disabled],
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button[disabled] {
	color: var(--pwu-text);
	cursor: default;
	opacity: 0.3;
}

/* "+" at the stock cap (assets/mini-cart.js, item 9): aria-disabled rather
   than disabled, so it stays focusable and its label can say why. */
.pwu-cart .product-quantity .bde-quantity-button[aria-disabled="true"],
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .bde-quantity-button[aria-disabled="true"] {
	color: var(--pwu-text);
	cursor: not-allowed;
	opacity: 0.3;
}

/* „Nur 1 verfügbar" — the PDP low-stock note's style (Kicker in Accent). */
.pwu-stock-hint {
	margin: 8px 0 0;
	color: var(--pwu-accent);
	font-size: var(--pwu-kick-fs);
	font-weight: var(--pwu-kick-fw);
	line-height: var(--pwu-kick-lh);
	letter-spacing: var(--pwu-kick-ls);
	text-transform: var(--pwu-kick-tt);
}

.pwu-stock-hint[hidden] {
	display: none;
}

/* Side cart: under the stepper / Entfernen row, aligned with the text. */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item > .pwu-stock-hint {
	grid-column: 2 / -1;
	grid-row: 3;
	margin-top: 4px;
}

.pwu-cart .product-quantity input.qty,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity input.qty {
	flex: 0 0 auto;
	width: 2.2ch;
	min-width: 0;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	color: var(--pwu-text);
	font-size: var(--pwu-xs-fs);
	font-weight: var(--pwu-xs-fw);
	line-height: 30px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.pwu-cart .product-quantity input.qty:focus,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity input.qty:focus {
	outline: none;
	box-shadow: none;
}

.pwu-cart .product-quantity input.qty::-webkit-outer-spin-button,
.pwu-cart .product-quantity input.qty::-webkit-inner-spin-button,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity input.qty::-webkit-outer-spin-button,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Keyboard focus on the number: outline the whole stepper, not the bare digit. */
.pwu-cart .product-quantity .quantity:focus-within,
.bde-mini-cart-offcanvas .bde-mini-cart-quantity .quantity:focus-within {
	outline: 3px solid var(--pwu-accent);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * 5. Side cart — drawer (Figma 2186:1521)
 *
 *    Container (width 480, white, drawer shadow token, 40px side padding,
 *    full screen ≤767px), the H2 title preset and the Button preset on the
 *    continue link are set on the MiniCart element itself (header 524,
 *    node 14). This section lays out what the element has no controls for.
 * ---------------------------------------------------------------------- */

/* Backdrop — Figma fills it with Text; opacity not exported → 50 %, the same
   value the service popups (1722 / 1723) use. */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-overlay {
	/* Fallback for browsers without color-mix() (Safari < 16.2): the Text
	   palette colour (29 29 28) at 50 %. */
	background-color: rgb(29 29 28 / 0.5);
	background-color: color-mix(in srgb, var(--pwu-text) 50%, transparent);
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-body {
	outline: none;
}

/* Title bar: 40px top, 24px to the list, no rule (the list carries it). */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-topbar {
	align-items: center;
	gap: 16px;
	padding-bottom: 0;
	border-bottom: 0;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-title {
	margin: 0;
}

/* × in the title's own size and colour (Figma: the glyph set in H2). */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas__close-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 -8px 0 0;
	padding: 0;
	font-size: var(--pwu-h2-fs);
	font-weight: var(--pwu-h2-fw);
	line-height: 1;
	opacity: 1;
}

/* List: hairline on top, rows inside the 40px content edge (Figma rows are
   400px wide — the separators stop at the padding, not at the drawer edge). */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart {
	margin: 0 var(--bde-mini-cart-padding-right) 0 var(--bde-mini-cart-padding-left);
	padding: 0;
	border-top: 1px solid var(--pwu-line);
}

/* Row grid:  thumb | title           | price
              thumb | stepper | remove |       */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item {
	display: grid;
	grid-template-columns: var(--pwu-mini-thumb-w) auto minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr;
	column-gap: 16px;
	row-gap: 0;
	align-items: start;
	padding: 20px 0;
	border-top: 0;
	border-bottom: 1px solid var(--pwu-line);
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item + .woocommerce-mini-cart-item {
	border-top: 0;
}

/* Spans the stock-note row too (span 3): the taller 3:4 box then sits beside
   title + stepper + note instead of pushing the note down. Top-aligned. */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-item-thumbnail {
	position: relative;
	display: block;
	grid-column: 1;
	grid-row: 1 / span 3;
	width: var(--pwu-mini-thumb-w);
	height: var(--pwu-mini-thumb-h);
}

/* includes/mini-cart.php (side cart) and main.php (checkout review) wrap the
   image to opt into the global contain rule; the wrapper has no box of its own. */
:where(.bde-mini-cart-item-thumbnail, .pwu-review-item__thumb) > :where(.pwu-cart-item__media) {
	display: contents;
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item .bde-mini-cart-item-thumbnail img {
	display: block;
	width: var(--pwu-mini-thumb-w);
	height: var(--pwu-mini-thumb-h);
	max-width: none;
	border: 0;
	border-radius: 0;
}

/* Portrait photos fill the box. data-fit="contain" (snippet #26
   phaenomen_image_fit_for_box) is skipped: object-fit: contain and the band
   colour (--ph-img-bg) come from the global rule («Phänomen Shop-Listing» §5). */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item .bde-mini-cart-item-thumbnail img:not([data-fit="contain"]) {
	object-fit: cover;
}

/* Sale-Tag XS (Figma 2673:4563): 7px, 3/6, top-right of the thumbnail. */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-item-thumbnail .pwu-sale-tag {
	top: 4px;
	right: 4px;
	left: auto;
	padding: 3px 6px;
	font-size: 7px;
	letter-spacing: 0.1143em;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-item-title {
	display: flex;
	flex-direction: column;
	gap: 4px;
	grid-column: 2 / 4;
	grid-row: 1;
	min-width: 0;
	color: var(--pwu-text);
	font-size: var(--pwu-body-fs);
	font-weight: var(--pwu-body-fw);
	line-height: 1.2;
	text-decoration: none;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-item-title:hover .pwu-name,
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-item-title:focus-visible .pwu-name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Breakdance's quantity wrapper holds the stepper AND the line price; its
   children are placed into the row grid individually. */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-quantity {
	display: contents;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-quantity .quantity {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	margin-top: 8px;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-quantity > .pwu-line-price,
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-quantity > .woocommerce-Price-amount {
	grid-column: 4;
	grid-row: 1;
	justify-self: end;
	color: var(--pwu-text);
	font-size: var(--pwu-body-fs);
	font-weight: var(--pwu-body-fw);
	line-height: 1.2;
	text-align: right;
}

.bde-mini-cart .bde-mini-cart-offcanvas .pwu-line-price .woocommerce-Price-amount bdi {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.bde-mini-cart .bde-mini-cart-offcanvas .pwu-line-price .pwu-line-price__old {
	font-size: var(--pwu-small-fs);
}

.bde-mini-cart .bde-mini-cart-offcanvas .pwu-line-price .pwu-line-price__old bdi {
	font-size: var(--pwu-small-fs);
}

/* The simple "1 × CHF …" fallback Breakdance prints for hidden steppers. */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-quantity-simple {
	display: none;
}

/* "Entfernen" — Figma Link-Text in Kick: Accent → Accent Hover + underline. */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart a.remove {
	display: inline-block;
	grid-column: 3;
	grid-row: 2;
	align-self: start;
	justify-self: start;
	width: auto;
	height: auto;
	margin: 8px 0 0;
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--pwu-accent);
	font-size: var(--pwu-kick-fs);
	font-weight: var(--pwu-kick-fw);
	line-height: var(--pwu-kick-lh);
	letter-spacing: var(--pwu-kick-ls);
	text-align: left;
	text-decoration: none;
	text-indent: 0;
	text-transform: var(--pwu-kick-tt);
	opacity: 1;
	overflow: visible;
	-webkit-mask: none;
	mask: none;
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart a.remove:hover,
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart a.remove:focus-visible {
	background: none;
	color: var(--pwu-accent-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Footer: hairline, 24px top padding, 16px gaps (Figma "Footer" 2187:1556). */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-offcanvas-footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 var(--bde-mini-cart-padding-right) 0 var(--bde-mini-cart-padding-left);
	padding: 24px 0 0;
	border-top: 1px solid var(--pwu-line);
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 0;
	border: 0;
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__total strong,
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__total .woocommerce-Price-amount,
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__total bdi {
	color: var(--pwu-text);
	font-size: var(--pwu-body-fs);
	font-weight: var(--pwu-body-fw);
	line-height: var(--pwu-body-lh);
	letter-spacing: normal;
	text-transform: none;
}

/* "Versand wird beim Checkout berechnet." — Figma Regular 14 in Text. */
.bde-mini-cart .bde-mini-cart-offcanvas .pwu-mini-cart-shipping-note {
	margin: 0;
	color: var(--pwu-text);
	font-size: var(--pwu-xs-fs);
	font-weight: var(--pwu-xs-fw);
	line-height: var(--pwu-xs-lh);
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

/* ZUR KASSE — the global Primary button, full width, 48px. */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__buttons .button.checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: var(--pwu-btn-pad);
	border: 1px solid var(--pwu-text);
	border-radius: 0;
	background-color: var(--pwu-text);
	color: var(--pwu-on-text);
	font-size: var(--pwu-btn-fs);
	font-weight: var(--pwu-btn-fw);
	line-height: var(--pwu-btn-lh);
	letter-spacing: normal;
	text-decoration: none;
	text-transform: var(--pwu-btn-tt);
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__buttons .button.checkout:hover {
	border-color: var(--pwu-accent-hover);
	background-color: var(--pwu-accent-hover);
	color: var(--pwu-on-text);
}

/* WEITER EINKAUFEN — the global Secondary button (outline Text → filled on
   hover), full width, 10px under ZUR KASSE, 40px above the drawer edge.
   Breakdance prints it after the footer, outside the fragment-refreshed
   content, so it stays put while the list updates. */
.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-continue-link {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 10px var(--bde-mini-cart-padding-right) var(--bde-mini-cart-padding-bottom) var(--bde-mini-cart-padding-left);
	padding: var(--pwu-btn-pad);
	border: 1px solid var(--pwu-text);
	border-radius: 0;
	background-color: transparent;
	color: var(--pwu-text);
	font-size: var(--pwu-btn-fs);
	font-weight: var(--pwu-btn-fw);
	line-height: var(--pwu-btn-lh);
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: var(--pwu-btn-tt);
	transition: background-color var(--bde-transition-duration, 200ms) ease, color var(--bde-transition-duration, 200ms) ease;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-continue-link:hover {
	background-color: var(--pwu-text);
	color: var(--pwu-on-text);
	text-decoration: none;
}

.bde-mini-cart .bde-mini-cart-offcanvas .bde-mini-cart-continue-link::after {
	content: none;
}

/* Empty drawer (not designed): one Body line under the title rule, then the
   continue button. */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__empty-message {
	width: auto;
	margin: 0 var(--bde-mini-cart-padding-right) 0 var(--bde-mini-cart-padding-left);
	padding: 24px 0;
	border: 0;
	border-top: 1px solid var(--pwu-line);
	background: none;
	color: var(--pwu-text);
	font-size: var(--pwu-body-fs);
	font-weight: var(--pwu-body-fw);
	line-height: var(--pwu-body-lh);
	text-align: left;
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart__empty-message::before {
	content: none;
}

/* The empty message sits at the top; push the button to the bottom like the
   filled drawer's. */
.bde-mini-cart .bde-mini-cart-offcanvas .widget_shopping_cart_content:has(.woocommerce-mini-cart__empty-message) {
	flex: 1 1 auto;
}

/* Added-to-cart confirmation (not designed — derived): Body Small in Text on
   Accent BG, the "Phänomen" check icon (.ph-check, global stylesheet), inside
   the drawer's content edge, 16px above the list. The region stays in the DOM
   (role="status", set by assets/mini-cart.js) and has no box while empty. */
.bde-mini-cart .bde-mini-cart-offcanvas .pwu-mini-cart-notice {
	margin: 0 var(--bde-mini-cart-padding-right) 0 var(--bde-mini-cart-padding-left);
	color: var(--pwu-text);
	font-size: var(--pwu-small-fs);
	font-weight: var(--pwu-small-fw);
	line-height: var(--pwu-small-lh);
	opacity: 0;
	transition: opacity 200ms ease;
}

.bde-mini-cart .bde-mini-cart-offcanvas .pwu-mini-cart-notice.is-visible {
	display: flex;
	align-items: baseline;
	margin-bottom: 16px;
	padding: 12px 16px;
	background-color: var(--pwu-accent-bg);
	opacity: 1;
}

.bde-mini-cart .bde-mini-cart-offcanvas .pwu-mini-cart-notice .ph-check {
	flex: 0 0 auto;
}

/* Quantity error in the same region (assets/mini-cart.js item 10): the
   quick-add dialog's error style — Body Small in Fehler, no bar. */
.bde-mini-cart .bde-mini-cart-offcanvas .pwu-mini-cart-notice.is-error.is-visible {
	padding: 0;
	background-color: transparent;
	color: var(--pwu-error);
}

/* Cart page: the same error under the cart line. */
.pwu-cart .pwu-qty-error {
	margin: 8px 0 0;
	color: var(--pwu-error);
	font-size: var(--pwu-small-fs);
	font-weight: var(--pwu-small-fw);
	line-height: var(--pwu-small-lh);
}

/* The just-added line: Accent BG, widened 12px to each side by two offset
   shadows (the row itself spans the content edge), fading back out. */
.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item {
	transition: background-color 400ms ease, box-shadow 400ms ease;
}

.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item.pwu-mini-cart-item--highlight {
	background-color: var(--pwu-accent-bg);
	box-shadow: -12px 0 0 0 var(--pwu-accent-bg), 12px 0 0 0 var(--pwu-accent-bg);
}

@media (prefers-reduced-motion: reduce) {
	.bde-mini-cart .bde-mini-cart-offcanvas .pwu-mini-cart-notice,
	.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item {
		transition: none;
	}
}

/* Phones: Breakdance shows the drawer full screen; side padding follows the
   mobile grid (20px). The padding variables are set per breakpoint on the
   element, these only follow them. */
@media (max-width: 767px) {
	.bde-mini-cart .bde-mini-cart-offcanvas .woocommerce-mini-cart-item {
		column-gap: 12px;
	}
}
