/* WTFIT 1.9.667 — My Account Wishlist uses real Shop cards.
   Layout only: the product image, price, sale/short-date/OOS badge, heart,
   quantity modal and add-to-basket button remain owned by wtfit_product_card. */
.woocommerce-account .wtf-account-wishlist.wtf-shop-catalog { width:100%; min-width:0; container:wtfitWishlist / inline-size; }
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-shop-layout { min-width:0; }
.woocommerce-account .wtf-account-wishlist .wtf-shop-toolbar.wtf-wishlist-head {
    display:flex; flex-direction:row; justify-content:space-between;
    align-items:center; gap:18px; flex-wrap:wrap; margin:0 0 19px;
}
.woocommerce-account .wtf-account-wishlist .wtf-shop-heading h2 {
    margin:0 0 2px; font-size:32px; line-height:1.15; font-weight:850; letter-spacing:-.035em;
}
.woocommerce-account .wtf-account-wishlist .wtf-shop-count {
    margin:0; font-size:12px; line-height:1.5; color:#767b81;
}
.woocommerce-account .wtf-account-wishlist .wtf-shop-count strong {
    font-size:inherit; font-weight:inherit; color:inherit;
}
.woocommerce-account .wtf-account-wishlist .wtf-shop-controls { gap:10px; flex-shrink:1; }
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-ordering select.orderby {
    box-sizing:border-box; width:210px; max-width:100%; height:46px;
    border:1px solid #e8eaed; border-radius:8px; background-color:#fff; color:#373a3e;
    padding:0 32px 0 13px; font-family:inherit; font-weight:400; line-height:1.4;
    font-size:13px; cursor:pointer; appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236a7077' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 12px center; background-size:14px;
}
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-ordering select.orderby:focus-visible {
    outline:2px solid var(--wtf-orange); outline-offset:2px;
}
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-shop-grid {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px; width:100%; min-width:0; align-items:stretch;
}
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-entry {
    min-width:0; min-height:0; display:block; transition:opacity .18s ease, transform .18s ease;
}
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-entry.is-removing {
    opacity:0; transform:scale(.97); pointer-events:none;
}
.woocommerce-account .wtf-account-wishlist .wtf-wishlist-entry > .wtf-product-card {
    width:100%; height:100%; min-width:0; box-sizing:border-box;
}
.woocommerce-account .wtf-account-wishlist .wtf-product-image > img {
    display:block; width:100%; height:100%; object-fit:contain; margin:0!important; box-shadow:none;
}
.woocommerce-account .wtf-account-wishlist .wtf-product-badges { flex-wrap:wrap; row-gap:6px; }
.woocommerce-account .wtf-account-wishlist .wtf-product-info { padding:12px; min-width:0; }
.woocommerce-account .wtf-account-wishlist .wtf-product-title {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
    height:57px; min-height:57px; max-height:57px;
    line-height:1.35; overflow:hidden; overflow-wrap:anywhere;
}
.woocommerce-account .wtf-account-wishlist .wtf-rating:empty { display:none; }
.woocommerce-account .wtf-account-wishlist .wtf-price { min-width:0; }
/* The Shop's shared view buttons and list-card styling are loaded from
   shop-catalog.css; only grid columns differ to fit the My Account pane. */
.woocommerce-account .wtf-account-wishlist [data-view="list"] .wtf-wishlist-shop-grid {
    grid-template-columns:minmax(0,1fr)!important;
}
@container wtfitWishlist (max-width: 875px) {
    .woocommerce-account .wtf-account-wishlist .wtf-wishlist-shop-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@container wtfitWishlist (max-width: 640px) {
    .woocommerce-account .wtf-account-wishlist .wtf-wishlist-shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .wtf-account-wishlist .wtf-shop-toolbar.wtf-wishlist-head { gap:12px; }
    .wtf-account-wishlist .wtf-shop-controls { width:100%; }
    .wtf-account-wishlist .wtf-wishlist-ordering { flex:1; min-width:0; }
    .wtf-account-wishlist .wtf-wishlist-ordering select.orderby { width:100%; }
    .wtf-account-wishlist .wtf-product-info { padding:10px; }
    .wtf-account-wishlist .wtf-product-title { height:50px; min-height:50px; max-height:50px; }
    .wtf-account-wishlist .wtf-price { height:auto; min-height:24px; white-space:normal; overflow:visible; flex-wrap:wrap; }
    .wtf-account-wishlist .wtf-price .amount { white-space:nowrap; }
    .wtf-account-wishlist .wtf-product-badges { top:8px; left:8px; max-width:calc(100% - 16px); }
    .wtf-account-wishlist .wtf-product-badges .wtf-stock-badge { height:29px; padding:7px 8px; font-size:10px; }
    .wtf-account-wishlist .wtf-product-badges .wtf-sale-badge { height:29px; min-width:44px; padding:7px 8px; font-size:12px; }
    .wtf-account-wishlist [data-view="list"] .wtf-product-card { grid-template-columns:128px minmax(0,1fr); }
    .wtf-account-wishlist [data-view="list"] .wtf-product-image { height:100%; min-height:170px; aspect-ratio:auto; }
    .wtf-account-wishlist [data-view="list"] .wtf-product-info { padding:12px; }
    .wtf-account-wishlist [data-view="list"] .wtf-product-title { height:auto; min-height:0; max-height:none; }
    .wtf-account-wishlist [data-view="list"] .wtf-add-button { width:100%; max-width:100%; font-size:11px; }
}
@container wtfitWishlist (max-width: 380px) {
    .wtf-account-wishlist [data-view="list"] .wtf-product-card { grid-template-columns:108px minmax(0,1fr); }
}
/* Shared filters stay within the narrower account content pane. */
@container wtfitWishlist (max-width: 875px) {
    .wtf-account-wishlist .wtf-shop-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; width: 100%; max-width: 100%; }
    .wtf-account-wishlist .wtf-shop-controls select { width: 100%; }
}
@container wtfitWishlist (max-width: 640px) {
    .wtf-account-wishlist .wtf-shop-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wtf-account-wishlist .wtf-shop-sort-field { grid-column: 1; }
    .wtf-account-wishlist .wtf-shop-view { grid-column: 2; justify-self: end; }
}
