/* Shared structure only. Primary action styling is supplied by Breakdance Global Styles. */
.vndw-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.vndw-button,
.vndw-login-link,
.vndw-save-for-later-link,
.vndw-remove-saved,
.vndw-move-to-cart {
	font: inherit;
}

.vndw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	cursor: pointer;
}

.vndw-button:disabled,
.vndw-button.is-disabled,
.vndw-save-for-later-link:disabled,
.vndw-remove-saved:disabled,
.vndw-move-to-cart:disabled,
.vndw-account-wishlist .wc-block-components-product-button__button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.vndw-button.is-saved {
	font-weight: 600;
}

.vndw-icon {
	display: inline-flex;
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.vndw-star {
	display: block;
	width: 100%;
	height: 100%;
}

.vndw-star-filled {
	display: none;
}

.vndw-button.is-saved .vndw-star-empty {
	display: none;
}

.vndw-button.is-saved .vndw-star-filled {
	display: block;
}

/* Optional shortcode link mode intentionally opts out of the button preset. */
.vndw-appearance-link .vndw-button {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vndw-status,
.vndw-inline-status,
.vndw-saved-status {
	font-size: 0.875em;
	line-height: 1.35;
}

.vndw-wrap.has-error .vndw-status,
.vndw-inline-status.is-error,
.vndw-saved-status.is-error {
	color: #b32d2e;
}

.vndw-save-for-later-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

/* Save for Later is deliberately a secondary text action, not a primary CTA. */
.vndw-save-for-later-link {
	appearance: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.vndw-save-for-later-link:hover,
.vndw-save-for-later-link:focus-visible {
	text-decoration-thickness: 2px;
}

.vndw-remove-saved {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* Classic / Breakdance cart: saved-for-later list. */
.vndw-saved-for-later {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid rgba(127, 127, 127, 0.28);
}

.vndw-saved-heading {
	margin: 0 0 20px;
}

.vndw-saved-items {
	display: grid;
	gap: 18px;
}

.vndw-saved-item {
	display: grid;
	grid-template-columns: minmax(82px, 112px) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(127, 127, 127, 0.24);
}

.vndw-saved-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	object-fit: contain;
}

.vndw-saved-name {
	margin: 0 0 7px;
	font-size: var(--bde-h6-font-size, 1.1rem);
	line-height: 1.35;
}

.vndw-saved-name a {
	color: inherit;
	text-decoration: none;
}

.vndw-saved-name a:hover,
.vndw-saved-name a:focus-visible {
	text-decoration: underline;
}

.vndw-saved-variation {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-bottom: 7px;
	font-size: 0.9em;
}

.vndw-saved-quantity,
.vndw-saved-price {
	margin: 5px 0;
}

.vndw-saved-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 12px;
}

.vndw-saved-status {
	display: block;
	margin-top: 7px;
}

/* WooCommerce native My Account wishlist: replace the oversized product grid with a compact list. */
.woocommerce-account .woocommerce-MyAccount-content .wc-block-wishlist {
	width: 100%;
	max-width: none;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-wishlist__header {
	margin-bottom: 20px;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-wishlist__list,
.woocommerce-account .woocommerce-MyAccount-content .wc-block-wishlist__list[class*="columns-"] {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 24px !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
	grid-template-areas:
		"image title"
		"image variation"
		"image price"
		"image action";
	column-gap: clamp(16px, 3vw, 28px);
	row-gap: 8px;
	align-items: start;
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	padding: 0 48px 24px 0 !important;
	border-bottom: 1px solid rgba(127, 127, 127, 0.26);
	box-sizing: border-box;
}

/* Make the image wrapper transparent to the grid so its image, variation and remove controls can be placed cleanly. */
.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wc-block-components-product-image {
	display: contents !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wc-block-components-product-image > a {
	grid-area: image;
	display: block;
	align-self: start;
	width: 100%;
	min-width: 0;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__image-slot {
	display: block;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__image-slot img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-height: 145px;
	margin: 0 !important;
	object-fit: contain;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wp-block-post-title {
	grid-area: title;
	min-width: 0;
	margin: 0 !important;
	font-size: var(--bde-h5-font-size, 1.25rem) !important;
	line-height: 1.3;
	text-align: left !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wp-block-post-title a:hover,
.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wp-block-post-title a:focus-visible {
	text-decoration: underline;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__variation {
	grid-area: variation;
	display: block;
	justify-self: start;
	max-width: 100%;
	margin: 0;
	padding: 6px 10px;
	border: 1px solid rgba(127, 127, 127, 0.45);
	border-radius: var(--bde-button-primary-border-radius, 4px);
	font-size: calc(var(--bde-body-font-size, 1rem) * 0.9);
	line-height: 1.35;
	text-align: left;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__variation[hidden] {
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wc-block-components-product-price {
	grid-area: price;
	margin: 0 !important;
	font-size: var(--bde-body-font-size, 1rem) !important;
	font-weight: 600;
	line-height: 1.4;
	text-align: left !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wc-block-components-product-button {
	grid-area: action;
	justify-self: start;
	width: auto;
	margin: 4px 0 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wc-block-components-product-button[hidden] {
	display: none !important;
}

/* The CTA receives button-atom / button-atom--primary in PHP and JS, so Breakdance controls every visual button property. */
.woocommerce-account .woocommerce-MyAccount-content .wc-block-components-product-button__button.button-atom {
	width: auto;
	max-width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content .vndw-account-action-status {
	display: block;
	margin-top: 8px;
	font-size: 0.875em;
	line-height: 1.35;
}

.woocommerce-account .woocommerce-MyAccount-content .vndw-account-action-status.is-error {
	color: #b32d2e;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__remove {
	position: absolute !important;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 7px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	box-sizing: border-box;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__remove:hover,
.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__remove:focus-visible {
	background: rgba(127, 127, 127, 0.14);
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__remove svg {
	display: block;
	width: 22px;
	height: 22px;
}

.woocommerce-account .woocommerce-MyAccount-content .wc-block-wishlist__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 640px) {
	.vndw-saved-item {
		grid-template-columns: 78px minmax(0, 1fr);
		gap: 12px;
	}

	.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item {
		grid-template-columns: 88px minmax(0, 1fr);
		grid-template-areas:
			"image title"
			"image variation"
			"price price"
			"action action";
		column-gap: 14px;
		padding: 0 40px 22px 0 !important;
	}

	.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item__image-slot img {
		max-height: 100px;
	}

	.woocommerce-account .woocommerce-MyAccount-content .wc-block-shopper-list-item > .wc-block-components-product-button,
	.woocommerce-account .woocommerce-MyAccount-content .wc-block-components-product-button__button.button-atom {
		justify-self: stretch;
		width: 100%;
	}
}


/* Compact card/product-page control. Visual styling is finalised by vendog-wishlist-actions. */
.vndw-size-compact {
	width: auto;
	flex-wrap: nowrap;
	gap: 0;
	position: relative;
}
.vndw-size-compact .vndw-button--compact {
	gap: 4px;
}
.vndw-size-compact .vndw-icon {
	width: 14px;
	height: 14px;
	flex-basis: 14px;
}
.vndw-size-compact .vndw-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
