/* mod_rm_live_search by NetCrafted */
.rmls-form,
.rmls-form * {
    box-sizing: border-box;
}

.rmls-form {
    --rmls-red: #f20f3a;
    --rmls-red-dark: #d90931;
    --rmls-text: #1d2430;
    --rmls-muted: #7b8490;
    --rmls-border: #e9edf2;
    --rmls-soft: #f5f6f8;
    --rmls-white: #fff;
    --rmls-shadow: 0 18px 46px rgba(16, 24, 40, .14);
    position: relative;
    width: 100%;
    margin: 0;
    color: var(--rmls-text);
    font-family: inherit;
}

.rmls-form__row {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.rmls-form__label,
.rmls-form__button-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.rmls-form__input {
    width: 100%;
    min-width: 0;
    height: 50px;
    flex: 1 1 auto;
    padding: 0 48px 0 20px;
    border: 1px solid #dde3ec;
    border-radius: 999px;
    background: var(--rmls-soft);
    color: var(--rmls-text);
    font-size: 13px;
    line-height: 38px;
    font-weight: 500;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.rmls-form__input::placeholder {
    color: #9aa2ad;
    opacity: 1;
}

.rmls-form__input:hover {
    background: #fff;
    border-color: var(--rmls-border);
}

.rmls-form__input:focus {
    border-color: rgba(242, 15, 58, .34);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(242, 15, 58, .08);
}

.rmls-form__button {
    position: absolute;
    top: 50%;
    right: 4px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7f8792;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.rmls-form__button svg {
    display: block;
    width: 25px;
    height: 25px;
    fill: #f5f6f8;
}

.rmls-form__button:hover,
.rmls-form__button:focus {
    color: #fff;
    outline: none;
}

.rmls-results {
    position: absolute;
    z-index: 10030;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    max-height: 430px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--rmls-border);
    border-radius: 18px;
    background: var(--rmls-white);
    box-shadow: var(--rmls-shadow);
    scrollbar-width: thin;
    scrollbar-color: rgba(242, 15, 58, .45) transparent;
}

.rmls-results::-webkit-scrollbar {
    width: 7px;
}

.rmls-results::-webkit-scrollbar-track {
    background: transparent;
}

.rmls-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(242, 15, 58, .42);
}

.rmls-results[hidden] {
    display: none !important;
}

.rmls-results__state {
    padding: 14px 15px;
    color: var(--rmls-muted);
    font-size: 13px;
    line-height: 1.35;
}

.rmls-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 9px;
    border-radius: 14px;
    color: var(--rmls-text);
    text-decoration: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.rmls-item:hover,
.rmls-item:focus {
    background: #f7f8fa;
    color: var(--rmls-text);
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.rmls-item__image {
    width: 62px;
    height: 52px;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f5f8;
    border: 1px solid #eef1f5;
}

.rmls-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rmls-item__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rmls-red);
    font-size: 20px;
    font-weight: 900;
}

.rmls-item__body {
    display: block;
    min-width: 0;
}

.rmls-item__title {
    display: block;
    margin: 0 0 4px;
    color: var(--rmls-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.rmls-item:hover .rmls-item__title,
.rmls-item:focus .rmls-item__title {
    color: var(--rmls-red);
}

.rmls-item__meta {
    display: block;
    color: var(--rmls-muted);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}

.rmls-item__text {
    display: -webkit-box;
    margin-top: 4px;
    color: #5d6672;
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rmls-results__all {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--rmls-red);
    color: #fff !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(242, 15, 58, .22);
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.rmls-results__all:hover,
.rmls-results__all:focus {
    background: var(--rmls-red-dark);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(242, 15, 58, .28);
    outline: none;
}

@media (max-width: 640px) {
    .rmls-form__input {
        height: 42px;
        padding-right: 52px;
        font-size: 14px;
        line-height: 42px;
    }

    .rmls-form__button {
        width: 34px;
        height: 34px;
        right: 4px;
    }

    .rmls-results {
        top: calc(100% + 8px);
        max-height: 70vh;
        border-radius: 16px;
    }

    .rmls-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
        min-height: 64px;
        padding: 8px;
    }

    .rmls-item__image {
        width: 54px;
        height: 46px;
    }
}
