.swss-form {
    position: relative;
    overflow: visible !important;
}

.swss-launcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99990;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: #101828;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .24);
    color: #fff;
    cursor: pointer;
    font: 700 14px/1.2 system-ui, sans-serif;
}

.swss-launcher span {
    font-size: 22px;
    line-height: .7;
}

.swss-overlay {
    position: fixed;
    inset: 0;
    z-index: 99994;
    display: none;
    padding: min(18vh, 150px) 20px 20px;
    background: rgba(16, 24, 40, .58);
}

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

.swss-overlay__form {
    width: min(720px, 100%);
    margin: 0 auto;
}

.swss-overlay__form input[type="search"] {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
    color: #101828;
    font: 500 18px/1.2 system-ui, sans-serif;
}

.swss-overlay__form input[type="search"]:focus {
    border-color: #f97316;
    outline: none;
}

.swss-overlay__close {
    position: absolute;
    top: 28px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 300 38px/1 system-ui, sans-serif;
}

.swss-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 99995;
    max-height: min(70vh, 620px);
    overflow: auto;
    background: #fff;
    border: 1px solid #e3e6eb;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .18);
    color: #101828;
    text-align: left;
}

.swss-panel.is-open {
    display: block;
}

.swss-corrected,
.swss-label,
.swss-empty,
.swss-loading {
    padding: 10px 14px;
}

.swss-corrected {
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
}

.swss-label {
    padding-bottom: 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.swss-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 14px 10px;
}

.swss-cats a {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    text-decoration: none;
    font-size: 13px;
}

.swss-cats span {
    color: #98a2b3;
}

.swss-products {
    border-top: 1px solid #f0f1f3;
}

.swss-product {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid #f0f1f3;
    color: #101828;
    text-decoration: none;
}

.swss-product:hover {
    background: #f9fafb;
}

.swss-product img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f7f7;
}

.swss-product__body {
    min-width: 0;
}

.swss-product__body b {
    display: block;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swss-product__body small {
    display: block;
    margin-top: 3px;
    color: #039855;
    font-size: 12px;
}

.swss-product strong {
    color: #f97316;
    font-size: 14px;
    white-space: nowrap;
}

.swss-all {
    display: block;
    padding: 12px 14px;
    color: #101828;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.swss-all:hover {
    background: #fff7ed;
}

@media (max-width: 640px) {
    .swss-launcher {
        bottom: 14px;
        left: 12px;
        padding: 11px 14px;
    }

    .swss-overlay {
        padding: 78px 12px 12px;
    }

    .swss-overlay__close {
        top: 18px;
        right: 16px;
    }

    .swss-overlay .swss-panel {
        top: 148px;
    }

    .swss-panel {
        position: fixed;
        top: 112px;
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-height: none;
    }

    .swss-product {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .swss-product strong {
        grid-column: 2;
    }

    .swss-product img {
        width: 48px;
        height: 48px;
    }
}
