.cfss-search-open {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cfss-search-open svg,
.cfss-form button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.cfss-search {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.cfss-search.is-active {
    display: block;
}

.cfss-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.98);
}

.cfss-panel {
    position: relative;
    z-index: 2;
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 15vh;
}

.cfss-close {
    position: absolute;
    top: 28px;
    right: 0;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 42px;
    line-height: 42px;
    font-weight: 300;
    cursor: pointer;
}

.cfss-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid currentColor;
}

.cfss-form input {
    flex: 1;
    width: 100%;
    height: 72px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-size: 32px;
}

.cfss-form input::placeholder {
    opacity: .45;
}

.cfss-form button {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfss-results {
    margin-top: 32px;
    max-height: 58vh;
    overflow-y: auto;
}

.cfss-result {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,.1);
    color: inherit;
    text-decoration: none;
}

.cfss-image {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f4f4;
}

.cfss-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfss-info {
    min-width: 0;
}

.cfss-title {
    font-size: 17px;
    line-height: 1.4;
}

.cfss-type,
.cfss-sku,
.cfss-loading,
.cfss-empty {
    margin-top: 4px;
    font-size: 13px;
    opacity: .55;
}

.cfss-view-all {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 22px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

body.cfss-lock {
    overflow: hidden;
}

@media (max-width: 767px) {
    .cfss-search-open {
        width: 40px;
        height: 40px;
    }

    .cfss-panel {
        width: calc(100% - 30px);
        padding-top: 105px;
    }

    .cfss-close {
        top: 22px;
        right: 0;
        font-size: 38px;
    }

    .cfss-form input {
        height: 58px;
        font-size: 22px;
    }

    .cfss-form button {
        width: 50px;
        height: 50px;
    }

    .cfss-results {
        margin-top: 22px;
        max-height: 65vh;
    }

    .cfss-result {
        gap: 12px;
        padding: 12px 0;
    }

    .cfss-image {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .cfss-title {
        font-size: 15px;
    }
}
