/* ==========================================================================
   WISHLIST PAGE STYLES - Matching Cart/Mini Cart Design
   ========================================================================== */

/* Desktop Wishlist Styles */
.tinvwl-table-manage-list {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.tinvwl-table-manage-list thead th {
    background: #f8f9fa;
    color: #2e3841;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
}

.tinvwl-table-manage-list tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.tinvwl-table-manage-list tbody tr:last-child td {
    border-bottom: none;
}

/* Product Thumbnail - Match Cart */
.tinvwl-table-manage-list .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Name - Match Cart */
.tinvwl-table-manage-list .product-name a {
    color: #2e3841;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
}

.tinvwl-table-manage-list .product-name a:hover {
    color: #1ca792;
}

/* Variations */
.tinvwl-table-manage-list .product-name dl.variation {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
}

.tinvwl-table-manage-list .product-name dl.variation dt {
    font-weight: 600;
    margin-right: 5px;
}

.tinvwl-table-manage-list .product-name dl.variation dd {
    margin: 0 0 5px 0;
}

/* Price - Match Cart */
.tinvwl-table-manage-list .product-price {
    color: #1ca792;
    font-weight: 700;
    font-size: 16px;
}

/* Stock Status */
.tinvwl-table-manage-list .product-stock p.stock {
    margin: 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
}

.tinvwl-table-manage-list .product-stock p.in-stock {
    background: #e7f7ef;
    color: #0f834d;
}

.tinvwl-table-manage-list .product-stock p.out-of-stock {
    background: #fef2f2;
    color: #b91c1c;
}

/* Buttons */
.tinvwl-table-manage-list .product-action a.button {
    background: #1ca792;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tinvwl-table-manage-list .product-action a.button:hover {
    background: #158c7a;
}

/* Remove Button */
.tinvwl-table-manage-list .product-remove button {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s ease;
}

.tinvwl-table-manage-list .product-remove button:hover {
    color: #991b1b;
}

/* Checkbox */
.tinvwl-table-manage-list .product-cb input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Footer Actions */
.tinvwl-table-manage-list tfoot {
    background: #f8f9fa;
}

.tinvwl-table-manage-list tfoot td {
    padding: 20px;
}

.tinvwl-table-manage-list tfoot .button {
   
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tinvwl-table-manage-list tfoot .button:hover {
    background: #158c7a;
}

.tinvwl-table-manage-list tfoot select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-right: 10px;
}
/* Stock status styling - match cart design exactly */
.tinvwl-table-manage-list .product-stock .fast-shipping {
    display: inline-block;
}

.tinvwl-table-manage-list .product-stock .tarnealt {
    display: inline-block;
}

.tinvwl-table-manage-list .product-stock .fast-button {
    display: flex;
        font-size: 12px !important;
        padding: 5px 10px !important;
        align-items: center;
        border-radius: 30px;
        font-weight: 500;
}

/* Fast shipping styling (in stock) */
.tinvwl-table-manage-list .fast-shipping .fast-button {
    background: #fff8e0;
    color: #333;
}

/* Partner warehouse styling (backorder) */
.tinvwl-table-manage-list .tarnealt .fast-button {
    background: #f0f0f0;
    color: #333;
   
}
/* Mobile Styles - Match Cart Mobile Design */
@media (max-width: 768px) {
    span.price {
        display: flex
    ;
        flex-direction: column;
    }
    .tinvwl-table-manage-list thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .tinvwl-table-manage-list,
    .tinvwl-table-manage-list tbody,
    .tinvwl-table-manage-list th,
    .tinvwl-table-manage-list td,
    .tinvwl-table-manage-list tr {
        display: block;
    }
    
    .tinvwl-table-manage-list tbody tr {
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 12px;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        display: grid;
        grid-template-columns: auto 72px 1fr auto;
        grid-template-rows: auto auto auto auto auto auto;
        column-gap: 12px;
        row-gap: 10px;
        align-items: start;
        position: relative;
    }
    
    .tinvwl-table-manage-list td {
        border: none;
        padding: 0;
        position: relative;
    }
    
    /* ROW 1: Checkbox (left) and Remove button (right) */
    .tinvwl-table-manage-list .product-cb {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
display:none!important;
        padding: 0px !important;
    }
    
    .tinvwl-table-manage-list .product-cb input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin: 0;
    }
    
    .tinvwl-table-manage-list .product-remove {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        position: absolute;
        align-self: center;
        padding: 0px !important;
        top: 0px;
        right: 30px;
    }
    
    .tinvwl-table-manage-list .product-remove button {
        background: #fee2e2;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #dc2626;
        border: none;
        cursor: pointer;
    }
    
    /* Product thumbnail - Column 2, Row 2-4 */
    .tinvwl-table-manage-list .product-thumbnail {
        grid-column: 1;
        grid-row: 2 / span 3;
        align-self: start;
        padding: 20px 0;
    }
    
    .tinvwl-table-manage-list .product-thumbnail img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* Product name - Column 3-4, Row 2 */
    .tinvwl-table-manage-list .product-name {
        grid-column: 2 / span 3;
        grid-row: 2;
        text-align: left !important;

        padding: 25px 0;
    }
    
    .tinvwl-table-manage-list .product-name a {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        display: block;
        margin-bottom: 8px;
    }
    
    /* Variations within product name */
    .tinvwl-table-manage-list .product-name dl.variation {
        font-size: 12px;
        color: #666;
        margin: 8px 0 0 0;
    }
    
    .tinvwl-table-manage-list .product-name dl.variation dt {
        display: inline;
        font-weight: 500;
    }
    
    .tinvwl-table-manage-list .product-name dl.variation dd {
        display: inline;
        margin: 0 10px 0 5px;
    }
    
    /* Price - Column 3-4, Row 3 */
    .tinvwl-table-manage-list .product-price {
        grid-column: 3 / span 2;
        grid-row: 4;
        align-self: start;
        padding: 0 20px;

        text-align: left !important;
    }
    
    .tinvwl-table-manage-list .product-price:before {
        content: "Hind: ";
        font-weight: 600;
        color: #666;
        font-size: 13px;
        margin-right: 5px;
    }
    
    /* Stock Status - Column 3-4, Row 4 */
    .tinvwl-table-manage-list .product-stock {
        grid-column: 1 / span 2;
        grid-row: 4;
        align-self: start;
        text-align: left !important;

        padding: 0 20px !important;
    }
    .tinvwl-table-manage-list tfoot {
        background: #f8f9fa;
        display: none;
    }
    /* Date - Column 1-4, Row 5 */
    .tinvwl-table-manage-list .product-date {
        grid-column: 1 / span 4;
        grid-row: 5;
        text-align: left;
        font-size: 12px;
        color: #999;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }
    
    .tinvwl-table-manage-list .product-date:before {
        content: "Lisatud: ";
        font-weight: 600;
        color: #666;
    }
    
    /* Action button - Column 1-4, Row 6 */
    .tinvwl-table-manage-list .product-action {
        grid-column: 1 / span 4;
        grid-row: 6;
    }
    
    .tinvwl-table-manage-list .product-action a.button {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }
    
    /* Footer - Full width */
    .tinvwl-table-manage-list tfoot tr {
        display: block;
        padding: 15px;
    }
    
    .tinvwl-table-manage-list tfoot td {
        display: block;
        padding: 0;
    }
    
    .tinvwl-table-manage-list tfoot .tinvwl-to-left,
    .tinvwl-table-manage-list tfoot .tinvwl-to-right {
        float: none;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .tinvwl-table-manage-list tfoot .tinvwl-input-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .tinvwl-table-manage-list tfoot select,
    .tinvwl-table-manage-list tfoot button {
        width: 100%;
        margin: 0;
    }
    
    /* Hide tinvwl-full labels on mobile, show tinvwl-mobile */
    .tinvwl-table-manage-list .tinvwl-full {
        display: none;
    }
    
    .tinvwl-table-manage-list .tinvwl-mobile {
        display: inline;
    }
}

@media (min-width: 769px) {
    .tinvwl-table-manage-list .tinvwl-mobile {
        display: none;
    }
    
    .tinvwl-table-manage-list .tinvwl-full {
        display: inline;
    }
}

