.sol-lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.sol-lists-header h2 {
    margin: 0;
    color: #2b2b2b;
}

.sol-lists-overview > p {
    color: #666;
    padding: 10px 0 30px;
}

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

.sol-list-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sol-list-card:hover {
    border-color: #cdd8b4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sol-list-card-header {
    padding: 14px 20px;
    background: #f9faf7;
    border-bottom: 1px solid #e5e5e5;
}

.sol-list-card h3 {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.3;
}

.sol-list-card h3 a {
    color: #2b2b2b;
    text-decoration: none;
}

.sol-list-card h3 a:hover {
    color: var(--sol-primary, #1A984B);
    text-decoration: underline;
}

.sol-list-card-body {
    flex: 1;
    padding: 16px 20px;
}

.sol-list-card .list-description {
    margin: 0 0 12px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.list-meta .product-count {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #eef3e4;
    color: var(--sol-primary, #1A984B);
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.list-meta .list-date {
    color: #888;
    font-size: 0.8em;
    white-space: nowrap;
}

.list-actions {
    padding: 14px 20px;
    border-top: 1px solid #e5e5e5;
}

.sol-view-list-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: var(--sol-primary, #1A984B);
    border-color: var(--sol-primary, #1A984B);
    color: #fff;
    font-weight: 600;
}

.sol-view-list-btn:hover {
    background: var(--sol-primary-hover, #46641f);
    border-color: var(--sol-primary-hover, #46641f);
    color: #fff;
}

.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-added-to-list-message {
    margin-top: 12px;
}

.sol-list-dropdown {
    margin-top: 15px;
}

.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;
  }
