/* BARAMA_HERO_SEARCH_V1122
 * Compact-screen search composition for the approved Hero baseline.
 * Desktop >= 1200px remains governed by v1.1.17/v1.1.18.
 */
@media (max-width: 1199px) {
    .market-searchbar.barama-search-v115 {
        display: grid !important;
        grid-template-columns: minmax(112px, .9fr) minmax(150px, 1.25fr) 52px !important;
        grid-template-areas:
            "query query query"
            "offer location advanced"
            "search search search" !important;
        align-items: center !important;
        width: min(100%, 780px) !important;
        max-width: 780px !important;
        gap: 0 !important;
        padding: 10px !important;
        border: 1px solid rgba(148, 163, 184, .28) !important;
        border-radius: 20px !important;
        background: linear-gradient(145deg, rgba(7, 16, 31, .94), rgba(28, 24, 39, .90)) !important;
        box-shadow: 0 18px 42px rgba(2, 6, 23, .22) !important;
        overflow: visible !important;
    }

    .market-searchbar.barama-search-v115 > * {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query {
        grid-area: query !important;
        display: grid !important;
        grid-template-columns: 22px minmax(0, 1fr) !important;
        align-items: center !important;
        column-gap: 10px !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query > span {
        position: static !important;
        inset: auto !important;
        width: 22px !important;
        height: 22px !important;
        display: grid !important;
        place-items: center !important;
        transform: none !important;
        color: #cbd5e1 !important;
        opacity: .95 !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query > span svg {
        width: 18px !important;
        height: 18px !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query input {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #f8fafc !important;
        text-overflow: ellipsis !important;
    }

    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query) {
        grid-area: offer !important;
        display: flex !important;
        align-items: center !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query) select,
    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query) .form-select {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 24px 0 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: #f8fafc !important;
        font-weight: 650 !important;
    }

    .market-searchbar.barama-search-v115 > .barama-public-location-picker {
        grid-area: location !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: inset 1px 0 0 rgba(148, 163, 184, .18) !important;
    }

    .market-searchbar.barama-search-v115 > .barama-public-location-picker .barama-public-location-picker__trigger {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) 16px !important;
        align-items: center !important;
        column-gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 58px !important;
        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #f8fafc !important;
    }

    .market-searchbar.barama-search-v115 > .barama-public-location-picker .barama-public-location-picker__label {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-weight: 650 !important;
    }

    .market-searchbar.barama-search-v115 > .barama-home-advanced {
        grid-area: advanced !important;
        order: initial !important;
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: inset 1px 0 0 rgba(148, 163, 184, .18) !important;
        color: #dbe7f5 !important;
        display: grid !important;
        place-items: center !important;
    }

    .market-searchbar.barama-search-v115 > .barama-home-advanced span {
        display: none !important;
    }

    .market-searchbar.barama-search-v115 > .barama-home-advanced svg {
        width: 20px !important;
        height: 20px !important;
    }

    .market-searchbar.barama-search-v115 > button[type="submit"] {
        grid-area: search !important;
        order: initial !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 54px !important;
        margin: 8px 0 0 !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: linear-gradient(180deg, #2f6bff, #2457ea) !important;
        color: #fff !important;
        box-shadow: 0 10px 24px rgba(37, 88, 235, .18) !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query::before,
    .market-searchbar.barama-search-v115 > .market-searchbar__query::after,
    .market-searchbar.barama-search-v115 > label::before,
    .market-searchbar.barama-search-v115 > label::after,
    .market-searchbar.barama-search-v115 > .barama-public-location-picker::before,
    .market-searchbar.barama-search-v115 > .barama-public-location-picker::after,
    .market-searchbar.barama-search-v115 > .barama-home-advanced::before,
    .market-searchbar.barama-search-v115 > .barama-home-advanced::after,
    .market-searchbar.barama-search-v115 > button[type="submit"]::before,
    .market-searchbar.barama-search-v115 > button[type="submit"]::after {
        content: none !important;
        display: none !important;
    }

    .market-searchbar.barama-search-v115 > label:focus-within,
    .market-searchbar.barama-search-v115 > .barama-public-location-picker.is-open,
    .market-searchbar.barama-search-v115 > .barama-public-location-picker:focus-within,
    .market-searchbar.barama-search-v115 > .barama-home-advanced:hover {
        background: rgba(255, 255, 255, .035) !important;
    }
}

@media (max-width: 520px) {
    .market-searchbar.barama-search-v115 {
        grid-template-columns: minmax(100px, .82fr) minmax(138px, 1.18fr) 48px !important;
        padding: 8px !important;
        border-radius: 18px !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query,
    .market-searchbar.barama-search-v115 > .market-searchbar__query input,
    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query),
    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query) select,
    .market-searchbar.barama-search-v115 > .barama-public-location-picker,
    .market-searchbar.barama-search-v115 > .barama-public-location-picker .barama-public-location-picker__trigger,
    .market-searchbar.barama-search-v115 > .barama-home-advanced {
        min-height: 54px !important;
    }

    .market-searchbar.barama-search-v115 > .market-searchbar__query {
        padding-inline: 10px !important;
    }

    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query),
    .market-searchbar.barama-search-v115 > .barama-public-location-picker {
        padding-inline: 10px !important;
    }

    .market-searchbar.barama-search-v115 > .barama-home-advanced {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }

    .market-searchbar.barama-search-v115 > button[type="submit"] {
        min-height: 52px !important;
        border-radius: 13px !important;
    }
}

@media (max-width: 365px) {
    .market-searchbar.barama-search-v115 {
        grid-template-columns: minmax(92px, .78fr) minmax(126px, 1.22fr) 44px !important;
    }

    .market-searchbar.barama-search-v115 > .barama-home-advanced {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    .market-searchbar.barama-search-v115 > label:not(.market-searchbar__query),
    .market-searchbar.barama-search-v115 > .barama-public-location-picker {
        padding-inline: 8px !important;
    }
}
