.sol-lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sol-lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sol-list-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    background: #fff;
}

.sol-list-card h3 {
    margin-top: 0;
}

.list-meta {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.sol-list-view .sol-list-actions {
    flex-wrap: wrap;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sol-list-products {
    margin-top: 30px;
}

.sol-list-item.unavailable {
    opacity: 0.6;
}

.unavailable-notice {
    color: #e2401c;
}

.sol-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.sol-modal-content {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border-radius: 4px;
}

.sol-modal-content h3 {
    margin-top: 0;
}

.sol-modal-content label {
    display: block;
    margin-bottom: 5px;
}

.sol-modal-content input[type="text"],
.sol-modal-content textarea {
    width: 100%;
}

.sol-previously-purchased {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.sol-previously-purchased .sol-prev-purchased-products .product {
    /* flex-wrap: unset; */
    padding: 10px;
}

.sol-previously-purchased .sol-prev-purchased-products .product a {
    /* width: 100%; */
}

/* Constrain product images to prevent tall buttons */
.sol-prev-purchased-products .product img {
    max-height: 80px;
    max-width: 80px;
    object-fit: contain;
    display: block;
}

.sol-list-item .product-thumbnail img {
    max-height: 80px;
    max-width: 80px;
}

.sol-list-item .product-quantity input {
    max-width: 75px;
}

/* Bulk Actions Styling */
.sol-bulk-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sol-bulk-actions button {
    font-size: 14px;
    padding: 8px 16px;
}

/* Product Select Column */
.product-select {
    width: 50px;
    text-align: center;
    vertical-align: middle;
}

.sol-item-checkbox,
.sol-select-all-items {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

.sol-select-all-items {
    vertical-align: middle;
}

/* Disabled/unavailable items */
.sol-list-item.unavailable .product-select {
    opacity: 0.5;
}

/* Quantity input visual feedback */
.sol-qty-feedback {
    position: relative;
    display: inline-block;
}

.sol-qty-indicator {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.sol-add-all-to-cart-indicator {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Spinner */
.sol-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: sol-spin 1s linear infinite;
}

@keyframes sol-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Checkmark */
.sol-qty-checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #28a745;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sol-qty-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 7px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.sol-qty-checkmark.fade-out {
    opacity: 0;
}

.sol-prev-purchased-products .product-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    align-items: flex-start;
}

.sol-prev-purchased-products .product-actions .button {
    flex: 1;
    font-size: 12px;
    padding: 8px 12px;
    height: auto;
    min-height: 36px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sol-prev-purchased-products .last-ordered {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 11px;
}

/* Ensure product title doesn't get too tall */
.sol-prev-purchased-products .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.3;
    margin: 10px 0 5px 0;
    height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price styling */
.sol-previously-purchased .sol-prev-purchased-products .price {
    width: unset !important;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.sol-load-more-wrapper {
    text-align: center;
    margin-top: 20px;
}

.sol-add-to-list-wrapper {
    margin-top: 10px;
}

.sol-list-dropdown {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 4px;
}

.sol-list-dropdown select,
.sol-list-dropdown input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
}

.sol-list-actions {
    display: flex;
    gap: 10px;
}

.sol-list-actions > :first-child {
    margin-right: auto;
}

.sol-remove-from-list {
    font-size: 30px;
}

/* Base Table Layout */
.sol-list-products {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2rem;
  }

.sol-list-products table {
    width: 100%;
  }
  
  .sol-list-products th,
  .sol-list-products td {
    padding: 14px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
  }
  
  /* Product Thumbnail */
  .sol-list-products .product-thumb img {
    width: 70px;
    height: auto;
    border-radius: 4px;
    margin-right: 14px;
  }
