@use "../common/utils" as *;
@use "../common/mixins" as *;

.search-input {
    position: relative;
    display: flex;
    margin-bottom: calc-rem(20px);

    @include media-breakpoint-up(lg) {
        margin-bottom: calc-rem(30px);
    }

    &:before {
        position: absolute;
        content: '';
        left: calc-rem(15px);
        top: calc-rem(12px);
        background: url('../images/icons/icon-search.svg') no-repeat;
        background-size: contain;
        width: calc-rem(20px);
        height: calc-rem(20px);
        z-index: 5;
    }

    input {
        height: calc-rem(45px);
        border-radius: calc-rem(25px);
        border: 1px solid rgba(var(--color-secondary));
        padding: calc-rem(15px 15px 15px 45px);
        width: 100%;
        font-size: calc-rem(14px);
        font-weight: var(--font-weight-medium);

        &.is-loading {
            background: url('../images/icons/icon-loader.svg') no-repeat center right calc-rem(15px);
            background-size: calc-rem(16px);
        }

        &::placeholder {
            color: rgba(var(--color-secondary), 0.5);
            font-weight: 500;
        }

        &:focus {
            outline-color: rgba(var(--color-primary));
        }
    }
}
