.wishlist-table {
    width:100%;
    position: relative;
}

.type-product {
    position: relative;
}

.wishlist-table.loading:after {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background: #ffffff;
    opacity: 0.5;
    z-index: 5;
}

.wishlist-table.loading:before {
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top:-12px;
    margin-left:-12px;
    content: "";
    background-image: url('../images/loading.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 6;
}

.wishlist-table td {
    position: relative;
}

.wishlist-table a.details {
    padding:4px 16px;
    background: #000000;
    color: #ffffff;
    text-align: center;
    border:none !important
}

.wishlist-table a.wishlist-remove {
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top:-12px;
    margin-left:-12px;
    background-image: url('../wp-content/plugins/wish-list-extension/images/remove.svg');
    background-repeat: no-repeat;
    background-size: 100%;
    z-index: 6;
    border:none;
    opacity:0;
}

.wishlist-table td:hover > a.wishlist-remove {
    opacity:1;
}

.wishlist-toggle {
    display: block;
    position: absolute;
    top: 16px;
    left: 26px;
    z-index: 5;
    width: 20px;
    height: 20px;
    outline: none;
    border:none;
}

.wishlist-title {
    display: none;
}

.entry-summary .wishlist-toggle {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 8px;
}

.entry-summary .wishlist-title {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 8px;
}

.wishlist-toggle:focus {
    outline: none;
    border:none;
}

.wishlist-toggle svg {
    fill:#bdbdbd;
    /* transition: all 200ms ease-out; */
}

.wishlist-toggle:hover svg .heart,
.wishlist-toggle.active svg .check{
    transition: all 200ms ease-out;
    fill:var(--e-global-color-primary);

}

.wishlist-toggle svg .loading,
.wishlist-toggle svg .check {
    
    opacity: 0;
}

.wishlist-toggle svg .loading {

    fill:#bdbdbd;
    

}
.wishlist-toggle.loading svg {
    padding: 1px;
}
.wishlist-toggle.active svg .check {
    transition: all 200ms ease-out;
    opacity: 1;
    fill:var(--e-global-color-primary);
}

.wishlist-toggle.loading svg .check {
    transition: all 0ms ease-out;
}

.wishlist-toggle.active svg .heart {
    fill:#bdbdbd;
    opacity: 0;
}
.wishlist-toggle svg .heart {
    transition: all 200ms ease-out;
}



.wishlist-toggle.loading svg .loading,
.wishlist-table.loading:before {
    fill:#bdbdbd;
    animation:loading 500ms 0ms infinite normal linear;
    transform-origin: center;
    opacity: 1;
}

.wishlist-toggle.loading svg .heart,.wishlist-toggle.loading svg .check {
    opacity:0;
    transition: all 0ms ease-out;
}

@keyframes loading {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.wishlist-dashboard {
    --wishlist-ink: #243041;
    --wishlist-muted: rgba(36, 48, 65, 0.68);
    --wishlist-border: rgba(36, 48, 65, 0.1);
    --wishlist-soft: rgba(0, 140, 244, 0.08);
    position: relative;
    width: 100%;
}

.wishlist-dashboard__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--wishlist-border);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 140, 244, 0.06) 100%);
    box-shadow: 0 18px 45px rgba(36, 48, 65, 0.07);
}

.wishlist-dashboard__kicker {
    margin: 0 0 7px;
    color: var(--e-global-color-primary, #008cf4);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wishlist-dashboard__title {
    margin: 0;
    color: var(--wishlist-ink);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.15;
}

.wishlist-dashboard__lead {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--wishlist-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.wishlist-dashboard__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--e-global-color-primary, #008cf4);
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(36, 48, 65, 0.08);
}

.wishlist-dashboard__items {
    position: relative;
    min-height: 180px;
}

.wishlist-dashboard.is-loading .wishlist-dashboard__items {
    opacity: 0.45;
    pointer-events: none;
}

.wishlist-dashboard.is-loading .wishlist-dashboard__items::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(0, 140, 244, 0.18);
    border-top-color: var(--e-global-color-primary, #008cf4);
    border-radius: 50%;
    content: "";
    animation: loading 650ms linear infinite;
}

.wishlist-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.wishlist-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--wishlist-border);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(36, 48, 65, 0.07);
}

.wishlist-card__remove {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: rgba(192, 38, 38, 0.48);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(36, 48, 65, 0.08);
    transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.wishlist-card__remove::before,
.wishlist-card__remove::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.wishlist-card__remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.wishlist-card__remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.wishlist-card__remove:hover {
    background: #ffffff;
    color: rgba(192, 38, 38, 0.86);
    transform: scale(1.04);
}

.wishlist-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 22px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.wishlist-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wishlist-card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.wishlist-card__stock {
    margin: 0;
    color: var(--e-global-color-primary, #008cf4);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wishlist-card__stock.is-out-of-stock {
    color: rgba(192, 38, 38, 0.78);
}

.wishlist-card__title {
    margin: 0;
    color: var(--wishlist-ink);
    font-size: 1rem;
    line-height: 1.35;
}

.wishlist-card__title a {
    color: inherit;
    text-decoration: none;
}

.wishlist-card__price {
    margin-top: auto;
    color: var(--wishlist-ink);
    font-weight: 900;
}

.wishlist-card__details,
.wishlist-dashboard__empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--e-global-color-primary, #008cf4);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.wishlist-card__details:hover,
.wishlist-dashboard__empty-link:hover {
    color: #ffffff;
    filter: brightness(0.96);
}

.wishlist-dashboard__empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 42px 24px;
    border: 1px dashed rgba(36, 48, 65, 0.18);
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
}

.wishlist-dashboard__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--e-global-color-primary, #008cf4);
    background: var(--wishlist-soft);
    font-size: 1.5rem;
    line-height: 1;
}

.wishlist-dashboard__empty h3,
.wishlist-dashboard__empty p {
    margin: 0;
}

.wishlist-dashboard__empty p {
    max-width: 480px;
    color: var(--wishlist-muted);
}

@media (max-width: 768px) {
    .wishlist-dashboard__header {
        flex-direction: column;
        padding: 20px;
    }

    .wishlist-dashboard__count {
        align-self: flex-start;
    }
}
