.golis-produktsok-wrapper {
    position: relative;
}

.golis-produktsok-wrapper input[type="search"] {
    width: 390px !important;
    max-width: 100%;
    box-sizing: border-box;
}

.woocommerce-product-search {
    width: 390px;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    position: relative;
    right: 160px; /* behåller enligt din tidigare layout */
}

.woocommerce-product-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 8px;
    font-size: 16px;
}

.woocommerce-product-search button {
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
}

/* Resultatlista */
.golis-produktsok-results {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    background: #fff;
    position: absolute;
    z-index: 9999;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.golis-produktsok-results li {
    border-bottom: 1px solid #eee;
    padding: 8px 10px;
}
.golis-produktsok-results li:last-child {
    border-bottom: none;
}

.gp-result-row {
    display: flex;
    align-items: center;
}

.gp-col-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 10px;
}
.gp-col-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.gp-col-name {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.gp-col-name a {
    text-decoration: none;
    color: #333;
}

.gp-col-price {
    margin-left: 10px;
    font-weight: bold;
    font-size: 14px;
    color: #444;
}

.gp-col-add {
    margin-left: 10px;
}

/* Limegrön snabbköpsknapp */
.gp-add-btn.button.add_to_cart_button {
    background-color: #32CD32 !important;
    border: none;
    color: #fff !important;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.gp-add-btn.button.add_to_cart_button:hover {
    background-color: #28b428 !important;
}
.gp-add-btn.button.add_to_cart_button:disabled {
    background-color: #4CAF50 !important;
    cursor: default;
}

/* Tooltip */
.gp-tooltip {
    display: none;
    position: fixed; /* matchar clientX/clientY i JS */
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    white-space: normal;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10000; /* över resultatlistan */
    pointer-events: none;
}


