.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 {
    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;
    /* width: auto; */
    /* height: auto; */
    object-fit: contain;
    /* margin: 0 auto; */
    display: block;
}

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