html.xso-lock, body.xso-lock {
    overflow: hidden;
}

.xso-overlay {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 11000;
}

.xso-overlay.is-open { display: block; }

.xso-backdrop {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(35, 35, 36, 0.62);
}

.xso-panel {
    position: relative;
    width: 96%;
    max-width: 1120px;
    height: 92%;
    margin: 24px auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    overflow: hidden;
}

.xso-close {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #3f3f3f;
    background: #ffffff;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

/* Sort header i toppen */
.xso-head {
    position: relative;
    display: block;
    padding: 16px 20px 16px 20px;
    background: #000000;
    border-bottom: 1px solid #222;
}

/* Logo over søgeboksen */
.xso-brand {
    text-align: center;
    margin: 0 0 12px 0;
    padding-right: 56px; /* giver luft til close-knap */
}

.xso-brand-logo {
    display: inline-block;
    width: 20%;
    min-width: 180px;
    height: auto;
    float: left;
    padding: 10px;
}

.xso-search-wrap {
    position: relative;
}

.xso-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    margin-top: 10px;
    color: #7b7b7b;
    font-size: 18px;
    pointer-events: none;
}

.xso-input {
    width: 100%;
    height: 50px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    padding: 0 18px 0 42px;
    font-size: 18px;
    font-weight: 600;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    color: #111;
}

.xso-input:focus {
    border-color: #c03;
    box-shadow: 0 0 0 3px rgba(204, 0, 51, .15);
}

.xso-hint {
    padding: 12px 20px;
    color: #606060;
    font-size: 14px;
    background: #fff;
}

.xso-results {
    height: calc(100% - 162px);
    overflow: auto;
    padding: 6px 14px 14px 14px;
}

.xso-loading, .xso-empty {
    padding: 18px 10px;
    color: #555;
    font-size: 15px;
}

.xso-item {
    display: block;
    position: relative;
    min-height: 62px;
    padding: 10px 10px 10px 84px;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    border: 1px solid transparent;
    margin-bottom: 4px;
}

.xso-item:hover {
    background: #fafafa;
    border-color: #efefef;
}

.xso-thumb {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background: #f2f2f2;
    overflow: hidden;
    background: #f2f2f2 url("OEM.png") center center / cover no-repeat;
}

.xso-thumb img {
    width: 62px;
    height: 62px;
    border: 0;
}

.xso-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f1f1f;
    overflow: hidden;
    max-height: 40px;
}

.xso-all {
    display: block;
    margin: 10px 8px 0 8px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    background: #fff7f9;
    color: #c03;
    font-weight: 700;
    border: 1px solid #ffd2dc;
}

.xso-all:hover { background: #ffeef3; }

@media (max-width: 900px) {
    .xso-panel {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .xso-head {
        padding: 12px 10px 10px 10px;
    }

    .xso-brand {
        margin-bottom: 10px;
        padding-right: 44px;
    }

    .xso-brand-logo {
        width: 72%;
        min-width: 150px;
        max-width: 300px;
    }
    .xso-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        margin-top: 20px;
        color: #7b7b7b;
        font-size: 18px;
        pointer-events: none;
    }

    .xso-input {
        height: 44px;
        font-size: 16px;
    }

    .xso-results {
        height: calc(100% - 150px);
        padding: 6px 8px 10px 8px;
    }
}


.xso-main {
    display: block;
    min-width: 0;
}

.xso-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.xso-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f1f1f;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.xso-oem {
    display: inline-block;
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #5c5c5c;
    background: #f3f3f3;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 3px 8px;
    flex: 0 0 auto;
}

.xso-price {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #699c06;
}

@media (max-width: 900px) {
    .xso-oem { font-size: 11px; max-width: 56%; padding: 2px 7px; }
    .xso-price { font-size: 14px; }
}
