/* Wishlist module: a round heart on each product card, the product page button and the saved-items page. Colours are the --enwl-* variables set in WooCommerce > Wishlist. */
.woocommerce ul.products li.product { position: relative; }
.enwl { position: absolute; top: 18px; right: 18px; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--enwl-border, #c3c4c7); border-radius: 50%; background: #fff; color: var(--enwl-accent, #2271b1); cursor: pointer; }
.enwl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.enwl:hover { background: var(--enwl-tint, #f0f6fc); }
.enwl.is-on svg { fill: currentColor; }
.enwl:focus-visible { outline: 3px solid var(--enwl-accent, #2271b1); outline-offset: 2px; }
.enwl-page__list { display: grid; gap: 14px; margin: 0 0 20px; padding: 0; list-style: none; }
.enwl-page__item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--enwl-border, #c3c4c7); border-radius: 14px; background: #fff; }
.enwl-page__img img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.enwl-page__info { display: grid; gap: 4px; }
.enwl-page__name { color: var(--enwl-text, #1d2327); font-weight: 700; text-decoration: none; }
.enwl-page__name:hover { text-decoration: underline; }
.enwl-page__price { color: var(--enwl-accent, #2271b1); }
.enwl-page__remove { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--enwl-dark, #135e96); text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 520px) { .enwl-page__item { grid-template-columns: 72px 1fr; } .enwl-page__img img { width: 72px; height: 72px; } .enwl-page__remove { grid-column: 1 / -1; justify-self: start; } }
.enwl-page__actions { margin: 0; }
.entry-content a.button.enwl-page__quote, .enwl-page__quote { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--enwl-accent, #2271b1); color: #fff !important; font-weight: 700; text-decoration: none; }
.enwl-page__quote:hover { background: var(--enwl-dark, #135e96); }

/* Header heart with the saved count */
.enwl-link { position: relative; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--enwl-text, #1d2327); text-decoration: none; }
.enwl-link svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.enwl-link:hover { color: var(--enwl-accent, #2271b1); }
.enwl-link:focus-visible { outline: 3px solid var(--enwl-accent, #2271b1); outline-offset: 2px; border-radius: 50%; }
.enwl-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--enwl-accent, #2271b1); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }


.enwl-count[hidden] { display: none !important; }
.entry-content a.button.enwl-page__quote, .enwl-page__quote { text-decoration: none !important; }

/* Product page button: in the page flow, with words (the round card heart is positioned over the photo). */
.enwl.enwl--page { position: static; width: auto; height: auto; min-height: 44px; margin: 14px 0 0; padding: 0 18px 0 14px; gap: 8px; border-radius: 999px; font: inherit; font-weight: 700; }
.enwl--page .enwl__on { display: none; }
.enwl--page.is-on .enwl__on { display: inline; }
.enwl--page.is-on .enwl__off { display: none; }

/* Product page button: readable in every state (Kadence's button hover turned the text white on the light fill). */
.enwl.enwl--page,
.enwl.enwl--page:hover,
.enwl.enwl--page:focus,
.enwl.enwl--page:active { color: var(--enwl-dark, #135e96); box-shadow: none; }
.enwl.enwl--page { background: #fff; }
.enwl.enwl--page:hover,
.enwl.enwl--page.is-on { background: var(--enwl-tint, #f0f6fc); border-color: var(--enwl-accent, #2271b1); }
.enwl.enwl--page:focus-visible { outline: 3px solid var(--enwl-accent, #2271b1); outline-offset: 2px; }

/* On the Add to cart line: Save for later at the left, quantity and Add to cart at the right. */
.enwl.enwl--page { margin: 0; flex: none; }
form.cart:not(.grouped_form):not(.variations_form),
.bundle_button { align-items: center; }
form.grouped_form .enwl.enwl--page { display: inline-flex; vertical-align: middle; }
@media (max-width: 520px) {
	.enwl.enwl--page { flex: 1 1 100%; justify-content: center; }
}

/* Grouped products (e.g. dance floors): the theme floats Add to cart left, which put it in front of Save for later. */
form.grouped_form .single_add_to_cart_button { float: none; display: inline-flex; vertical-align: middle; }

/* Grouped products: Add to cart is a left float, so Save for later floats left too; they then sit in page order, Save then Add. */
form.grouped_form .enwl.enwl--page { float: left; margin: 0 0 0 12px; }

/* Order on the line: quantity, Add to cart, Save for later (the script puts the button after Add to cart). */
@media (max-width: 520px) {
	form.grouped_form .enwl.enwl--page { float: none; clear: both; display: flex; margin: 12px 0 0; }
}

/* Simple products: space between Add to cart and Save for later (bundle rows already have a 12px gap; grouped has its own margin). */
:not(.bundle_button) > .single_add_to_cart_button + .enwl.enwl--page { margin-left: 14px; }
form.grouped_form .single_add_to_cart_button + .enwl.enwl--page { margin-left: 12px; }
@media (max-width: 520px) {
	:not(.bundle_button) > .single_add_to_cart_button + .enwl.enwl--page { margin-left: 0; }
}

/* Text link variant (menus, bars): the count sits inline */
.enwl-link--text { flex: none; width: auto; gap: 6px; }
.enwl-link--text .enwl-count { position: static; display: inline-block; }
