.amsearch-wrapper-block {
    display: none;
    width: 100%;
}

.amsearch-wrapper-block.active {
    display: block;
    position: absolute;
    top: 60%;
    right: 0;
    transform: translate(0px, -20px);
    z-index: 2000;
    width: 100%;
    height: 100%;
}

.amsearch-wrapper-block .amsearch-form-block {
    width: 100%;
    max-width: 100%;
}

.amsearch-input-wrapper {
    width: 400px;
}

.amsearch-input,
.amsearch-form-block input.amsearch-input {
    width: 100%;
    height: 100%;
    max-width: 100%;
}


.amsearch-result-section {
    overflow: hidden;
    overflow-y: auto;
    scrollbar-color: #adadad rgba(255, 255, 255, 0.2);
    scrollbar-width: thin;
    background-color: var(--amsearch-color-background, #ffffff);
    box-shadow: 0 2px 4px rgba(84, 95, 125, 0.12), 0 5px 8px rgba(155, 159, 174, 0.1);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
    max-height: 90vh;
    position: absolute;
    top: 100%;
    transition: .3s;
    width: 100%;
    z-index: 99;
    margin: 0 auto;
    max-width: 1320px;
    border: none !important;
}

.amsearch-products-section .product-item-link {
    padding: 0 0 10px;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em;
    line-height: 1.5em;
}

.amsearch-product-list > li {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (min-width: 362px) {
    .amsearch-wrapper-block.active {
        transform: translate(0px, -30px);
    }
}

@media (min-width: 576px) {
    .amsearch-result-section {
        max-width: 540px;
    }

    .amsearch-wrapper-block.active {
        transform: translate(0px, -30px);
    }
}

@media (max-width: 600px) {
    .amsearch-wrapper-block.active {
        transform: translate(0px, -30px);
    }
}

@media (max-width: 768px) {
    .amsearch-wrapper-block.active {
        transform: translate(0px, -30px);
    }
}

@media (min-width: 768px) {
    .amsearch-result-section {
        max-width: 720px;
    }
}

@media (max-width: 945px) {
    .amsearch-wrapper-block.active {
        transform: translate(0px, -30px);
    }
}

@media (min-width: 992px) {
    .amsearch-result-section {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .amsearch-result-section {
        max-width: 1140px;
    }

    .amsearch-wrapper-block.active {
        transform: translate(0px, -30px);
    }
}

@media (min-width: 1400px) {
    .amsearch-result-section {
        max-width: 1320px;
    }
}