.zmedia-search {
    position: relative;
    width: 100%;
    max-width: 620px;
    font-family: "Roboto", sans-serif;
}

.zmedia-search__box {
    position: relative;
    display: flex;
    align-items: stretch;
}

.zmedia-search__input {
    width: 100%;
    height: 52px;
    padding: 0 100px 0 22px;
    border: 2px solid #ff3a3a;
    border-radius: 28px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
    line-height: 1.2;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: none;
}

.zmedia-search__input::placeholder {
    color: #979797;
}

.zmedia-search__input:focus {
    border-color: #BE0E6A;
    box-shadow: 0 0 0 3px rgba(190, 14, 106, 0.14);
    background: #ffffff;
}

.zmedia-search__button {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 20px;
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .15s ease;
}

.zmedia-search__button:hover {
    background: #222222;
}

.zmedia-search__button:active {
    transform: scale(0.97);
}

.zmedia-search__icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
}

.zmedia-search__results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow: hidden;
}

.zmedia-search__results.is-open {
    display: block;
}

.zmedia-search__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zmedia-search__item + .zmedia-search__item {
    border-top: 1px solid #f1f1f1;
}

.zmedia-search__link {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 14px;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease;
}

.zmedia-search__link:hover {
    background: #fff4fa;
}

.zmedia-search__thumb-wrap {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    background: #f7f7f7;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zmedia-search__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zmedia-search__meta {
    min-width: 0;
    flex: 1;
}

.zmedia-search__title {
    color: #2a2a2a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.zmedia-search__sku {
    color: #979797;
    font-size: 13px;
    margin-bottom: 6px;
}

.zmedia-search__price {
    color: #111111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.zmedia-search__price ins {
    text-decoration: none;
}

.zmedia-search__price .amount {
    color: #111111;
    font-weight: 700;
}

.zmedia-search__price del .amount {
    color: #979797;
    font-weight: 400;
}

.zmedia-search__footer {
    border-top: 1px solid #f1f1f1;
    background: #fffafb;
}

.zmedia-search__all {
    display: block;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    color: #BE0E6A;
    font-weight: 700;
    transition: background .2s ease, color .2s ease;
}

.zmedia-search__all:hover {
    background: #fff0f7;
    color: #a20b5b;
}

.zmedia-search__loading,
.zmedia-search__empty {
    padding: 16px;
    color: #555555;
    font-size: 14px;
    background: #ffffff;
}

@media (max-width: 767px) {
  .zmedia-search {
        position: relative;
        z-index: 9999;
    }

    .zmedia-search__results {
        top: auto;
        bottom: calc(100% + 8px);
        left: 0;
        width: 100%;
        max-height: 55vh;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
    }

    .zmedia-search__box {
        position: relative;
    }
    .zmedia-search form{
      margin-bottom:0 !important;
    }

    .zmedia-search__input {
        height: 48px;
        padding: 0 96px 0 16px;
        font-size: 16px;
        border-radius: 24px;
        border: 2px solid #ff4b57;
    }

    .zmedia-search__button {
        position: absolute;
        top: 4px;
        right: 4px;
        height: 40px;
        min-width: 84px;
        padding: 0 16px;
        border-radius: 20px;
        background: #000000;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }


    .zmedia-search__link {
        padding: 12px;
        gap: 10px;
        align-items: flex-start;
    }

    .zmedia-search__thumb-wrap {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .zmedia-search__title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .zmedia-search__sku {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .zmedia-search__price {
        font-size: 12px;
        line-height: 1.3;
    }
}
