:root {
    --fbw-accent: #d80000;
    --fbw-surface: #ffffff;
    --fbw-text: #1f2937;
    --fbw-success: #15803d;
    --fbw-error: #b91c1c;
    --fbw-radius: 8px;
}

:is(.fb-wishlist-icon, .fb-wishlist-remove, [data-fbw-wishlist]) {
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

.fb-wishlist-remove {
    display: none !important;
}

.wishlist-container .fb-wishlist-remove,
.elementor-editor-active .fb-wishlist-remove,
.fbw-wishlist-button--remove {
    display: inline-flex !important;
}

.wishlist-container .fb-wishlist-icon:not(.fbw-wishlist-button--toggle) {
    display: none !important;
}

:is(.fb-wishlist-icon, [data-fbw-wishlist]).is-in-wishlist .elementor-icon,
:is(.fb-wishlist-icon, [data-fbw-wishlist]).is-in-wishlist .elementor-icon i {
    color: var(--fbw-accent) !important;
}

:is(.fb-wishlist-icon, [data-fbw-wishlist]).is-in-wishlist .elementor-icon svg,
:is(.fb-wishlist-icon, [data-fbw-wishlist]).is-in-wishlist .elementor-icon svg path {
    fill: var(--fbw-accent) !important;
    stroke: var(--fbw-accent) !important;
}

.fbw-wishlist-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    width: auto !important;
    min-width: 2.5rem !important;
    max-width: none !important;
    min-height: 2.5rem !important;
    margin: 0 !important;
    padding: 0.45rem 0.7rem !important;
    border: 0 !important;
    border-radius: var(--fbw-radius) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    overflow: visible !important;
    transition: opacity 160ms ease, transform 160ms ease, color 160ms ease !important;
}

.fbw-wishlist-button *,
.fbw-empty-state *,
.fbw-toast * {
    box-sizing: border-box !important;
}

.fbw-wishlist-button:hover {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

.fbw-wishlist-button:focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 3px !important;
}

.fbw-wishlist-button.is-in-wishlist {
    color: var(--fbw-accent) !important;
}

.fbw-wishlist-button__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 1.45em !important;
    height: 1.45em !important;
}

.fbw-wishlist-button__icon-shape {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.fbw-wishlist-button__icon-shape--remove {
    display: none !important;
}

.fbw-wishlist-button__icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: transparent !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transition: fill 160ms ease, stroke 160ms ease !important;
}

.fbw-wishlist-button.is-in-wishlist .fbw-wishlist-button__icon-shape--heart svg {
    fill: currentColor !important;
}

.fbw-wishlist-button--remove .fbw-wishlist-button__icon-shape--heart,
.wishlist-container .fbw-wishlist-button--toggle.is-in-wishlist .fbw-wishlist-button__icon-shape--heart {
    display: none !important;
}

.fbw-wishlist-button--remove .fbw-wishlist-button__icon-shape--remove,
.wishlist-container .fbw-wishlist-button--toggle.is-in-wishlist .fbw-wishlist-button__icon-shape--remove {
    display: inline-flex !important;
}

.fbw-wishlist-button--remove,
.wishlist-container .fbw-wishlist-button--toggle.is-in-wishlist {
    color: var(--fbw-text) !important;
}

.fbw-wishlist-button__icon-shape--remove svg {
    fill: none !important;
    stroke-width: 2 !important;
}

/* The configured wishlist page always uses the remove/X state, even when a cached Loop Item was rendered as toggle. */
body.fbw-wishlist-page .wishlist-container .fbw-wishlist-button__icon-shape--heart {
    display: none !important;
}

body.fbw-wishlist-page .wishlist-container .fbw-wishlist-button__icon-shape--remove {
    display: inline-flex !important;
}

body.fbw-wishlist-page .wishlist-container .fbw-wishlist-button {
    color: var(--fbw-text) !important;
}

:is(.fb-wishlist-icon, .fb-wishlist-remove, [data-fbw-wishlist]).is-busy {
    pointer-events: none !important;
    opacity: 0.55 !important;
}

.fbw-is-removing {
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
}

.fbw-toast-region {
    position: fixed;
    inset-inline-start: 1rem;
    bottom: 1rem;
    z-index: 999999;
    display: grid;
    gap: 0.6rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.fbw-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-inline-start: 4px solid var(--fbw-success);
    border-radius: var(--fbw-radius);
    background: var(--fbw-surface);
    color: var(--fbw-text);
    box-shadow: 0 12px 32px rgb(0 0 0 / 18%);
    opacity: 0;
    transform: translateY(0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
}

.fbw-toast--error {
    border-inline-start-color: var(--fbw-error);
}

.fbw-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fbw-toast__message {
    line-height: 1.7;
}

.fbw-toast__action {
    flex: 0 0 auto;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.fbw-empty-state,
.e-loop-nothing-found-message__text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 2rem 1rem !important;
    text-align: center !important;
}

.fbw-empty-state[hidden] {
    display: none !important;
}

.fbw-empty-state img {
    display: block !important;
    width: min(15rem, 70vw) !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

.fbw-empty-state p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Hard guard against stale Elementor/cache output on an empty personalized wishlist. */
body.fbw-wishlist-is-empty .wishlist-container .elementor-loop-container,
body.fbw-wishlist-is-empty .wishlist-container .elementor-grid,
body.fbw-wishlist-is-empty .wishlist-container .e-loop,
body.fbw-wishlist-is-empty .wishlist-container .products,
body.fbw-wishlist-is-empty .wishlist-container [data-elementor-type="loop-item"],
body.fbw-wishlist-is-empty .wishlist-container .e-loop-item,
body.fbw-wishlist-is-empty .wishlist-container .elementor-loop-item,
body.fbw-wishlist-is-empty .wishlist-container li.product,
body.fbw-wishlist-is-empty .wishlist-container .elementor-pagination,
body.fbw-wishlist-is-empty .wishlist-container .woocommerce-pagination,
body.fbw-wishlist-is-empty .wishlist-container .e-loop__load-more {
    display: none !important;
}

body.fbw-wishlist-is-empty .wishlist-container [data-fbw-empty] {
    display: flex !important;
}

@media (prefers-reduced-motion: reduce) {
    .fbw-wishlist-button,
    .fbw-toast,
    .fbw-is-removing {
        transition: none;
    }
}

/* Header wishlist shortcut. The heart stays hollow, white, and links to the configured wishlist page. */
.fbw-header-wishlist,
.fbw-header-wishlist:link,
.fbw-header-wishlist:visited,
.fbw-header-wishlist:hover,
.fbw-header-wishlist:focus {
    --fbw-header-heart-color: #ffffff;
    --fbw-header-badge-bg: #d80000;
    --fbw-header-badge-color: #ffffff;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fbw-header-heart-color) !important;
    line-height: 1 !important;
    text-decoration: none !important;
    overflow: visible !important;
}

.fbw-header-wishlist * {
    box-sizing: border-box !important;
}

.fbw-header-wishlist__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    color: var(--fbw-header-heart-color) !important;
}

.fbw-header-wishlist__icon svg,
.fbw-header-wishlist__icon svg path {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.fbw-header-wishlist__count {
    position: absolute !important;
    top: -8px !important;
    inset-inline-end: -7px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 999px !important;
    background: #d71920 !important;
    color: var(--fbw-header-badge-color) !important;
    box-shadow: none !important;
   
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 15px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}

.fbw-header-wishlist__count[hidden] {
    display: none !important;
}

.fbw-header-wishlist:focus-visible {
    outline: 2px solid var(--fbw-header-heart-color) !important;
    outline-offset: 3px !important;
}

/* 1.0.6: DOM-enforced remove state for cached/shared Elementor Loop Items. */
.fbw-wishlist-button__icon-shape[hidden] {
    display: none !important;
}

body.fbw-wishlist-page .fbw-wishlist-button__icon-shape--heart,
body.fbw-wishlist-page [data-fbw-render-mode="remove"] .fbw-wishlist-button__icon-shape--heart {
    display: none !important;
}

body.fbw-wishlist-page .fbw-wishlist-button__icon-shape--remove:not([hidden]),
body.fbw-wishlist-page [data-fbw-render-mode="remove"] .fbw-wishlist-button__icon-shape--remove:not([hidden]) {
    display: inline-flex !important;
}

body.fbw-wishlist-page .fbw-native-remove-control .elementor-icon,
body.fbw-wishlist-page .fbw-native-remove-control > i,
body.fbw-wishlist-page .fbw-native-remove-control > svg {
    display: none !important;
}

body.fbw-wishlist-page .fbw-native-remove-control::before {
    content: "×" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1em !important;
    height: 1em !important;
    color: currentColor !important;
    font: 400 28px/1 Arial, sans-serif !important;
}
