.tb-offer-search {
    margin-top: 2.5rem;
}

.tb-offer-search__button {
    text-align: left;
    border: 1px solid config('colors.grey');
    height: 3.5rem; // 56px
    padding: .625rem 1rem;
    width: 100%;
    appearance: textfield;
    color: config('colors.grey');
    background: #f4f4f4;
    border-radius: .25rem;

    > span {
        display: flex;
        align-items: center;
    }

    .c-icon {
        font-size: 1.125rem;
        top: 0;
        margin-right: 1rem;
        color: config('colors.grey');
    }
}

.tb-offer-search__range {
    display: none;

    .tb-offer-search__button--result-visible & {
        display: block;
    }
}

.tb-offer-search__placeholder {
    .tb-offer-search__button--result-visible & {
        display: none;
    }
}

.tb-offer-search__submit {
    font-size: 1.125rem;
    display: block;
    height: 3.5rem;
    margin-top: 1rem;
    width: 100%;
    border-radius: .25rem;
}

@include mappy-bp(lg) {
    .tb-offer-search {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .tb-offer-search__button,
    .tb-offer-search__submit {
        width: 25%;
    }

    .tb-offer-search__submit {
        margin: 0 0 0 1rem;
    }
}
