.search-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

form#searchform {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.search-input,
textarea#wc-multiline-search {
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.search-input {
    width: 200px;
    padding: 0.8em 1.41575em !important;
}

textarea#wc-multiline-search {
    width: 250px;
    resize: none;
}

input[type="submit"] {
    margin-left: 5px;
}

/* WooCommerce Multiline Search Results Styles */

/* Search Results Container */
.multiline-search-results {
    margin: 30px 0;
}

.multiline-results-container {
    margin-bottom: 30px;
}

/* Search Item Styles */
.search-item {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-term {
    background-color: #f7f7f7;
    padding: 10px 15px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

/* Table Styles */
.search-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.search-results-table th,
.search-results-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.search-results-table th {
    background-color: #f7f7f7;
    font-weight: bold;
}

.search-results-table .hakutermi-col {
    width: 10%;
}
/* .search-results-table .laatuluokka-col {
    width: 10%;
} */

.tuotenimi-col{
    width: 30%;
}

.search-results-table .osanumero-col {
    width: 15%;
}

.search-results-table .yhteensopivuus-col {
    width: 25%;
}

/* .search-results-table .merkki-col {
    width: 15%;
} */

/* .search-results-table .price-col {
    width: 15%;
} */

.search-results-table .cart-col {
    width: 30%;
    text-align: center;
}

/* Osanumero Link Styles */
.osanumero-toggle {
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.osanumero-toggle:hover {
    text-decoration: underline;
}

/* Active Row */
.product-row.active-row {
    background-color: #f0f8ff;
}

/* Accordion Content */
.accordion-content {
    background-color: #f9f9f9;
    padding: 15px;
}

.accordion-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
}

.detail-label {
    font-weight: bold;
    width: 138px;
    flex-shrink: 0;
}

.detail-value {
    flex-grow: 1;
}

/* Add to Cart Button */
.search-results-table .button.add_to_cart_button {
    margin: 0;
    display: inline-block;
}

/* No Results Message */
.no-results {
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
}

/* Return to Shop Button */
.return-to-shop {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search-results-table {
        display: block;
        overflow-x: auto;
    }

    .search-results-table th,
    .search-results-table td {
        white-space: nowrap;
    }
}


.col-full {
    max-width: 1500px !important
}

.cart-col input{
    width:50px;
}

.laatuluokka-col.new{
    background-color: rgba(0, 128, 0, 0.195)!important;
}
.laatuluokka-col.used{
    background-color: rgba(255, 255, 0, 0.207)!important;
}

.hakutermi-col{
    background-color: #dbdbdb!important;
}

.tuotenimi-col img{
    max-width:50px;
}

.result-type-1 td.osanumero-col {
    background: #cde6cd !important;
}