.smart-home-search {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    pointer-events: auto;
    z-index: 30;
}

.smart-home-search,
.smart-home-search * {
    pointer-events: auto;
}

.smart-home-search-form {
    width: 100%;
    pointer-events: auto;
}

.smart-home-search__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.smart-home-search__tabs button {
    border: 0;
    border-radius: 999px;
    background: #eef2f6;
    color: #223244;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.smart-home-search__tabs button.is-active {
    background: #59d7d3;
    color: #0f2231;
}

.smart-home-search__input {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(16, 31, 45, 0.16);
    overflow: hidden;
    border: 3px solid #59d7d3;
    padding: 6px 8px 6px 14px;
}

.smart-home-search__query {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    font-size: 18px;
    color: #1d2a38;
    background: transparent;
}

.smart-home-search__query:focus,
.smart-home-search__query:focus-visible {
    outline: none;
    box-shadow: none;
    border: 0;
}

.smart-home-search__clear {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    border-radius: 999px;
    background: transparent;
    color: #718096;
    font-size: 28px;
    line-height: 1;
}

.smart-home-search__query::placeholder {
    color: #8592a0;
}

.smart-home-search__submit {
    flex: 0 0 auto;
    border: 0;
    background: #2f2f2f;
    color: #fff;
    width: 56px;
    min-width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.smart-home-search__submit-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.smart-home-search__submit-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.smart-home-search__submit.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.smart-home-search__status {
    padding: 8px 8px 0;
    font-size: 13px;
    color: #6b7785;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 21;
}

.smart-home-search__status[hidden] {
    display: none;
}

.smart-home-search__suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(11, 24, 36, 0.18);
    padding: 14px;
}

.smart-home-search__group + .smart-home-search__group {
    border-top: 1px solid #ecf0f4;
    margin-top: 10px;
    padding-top: 10px;
}

.smart-home-search__group-title {
    margin: 0 0 8px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7785;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.smart-home-search__group-items {
    display: grid;
    gap: 6px;
}

.smart-home-search__suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 16px;
    padding: 12px 10px;
    cursor: pointer;
    text-align: left;
}

.smart-home-search__suggestion-leading {
    flex: 0 0 auto;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.smart-home-search__suggestion-icon {
    color: #9aa5b4;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.smart-home-search__suggestion-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.smart-home-search__suggestion:hover,
.smart-home-search__suggestion:focus,
.smart-home-search__suggestion.is-active {
    background: #f4f8fb;
    outline: none;
}

.smart-home-search__suggestion-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.smart-home-search__suggestion-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.smart-home-search__suggestion-label {
    font-size: 15px;
    font-weight: 600;
    color: #1f2a37;
}

.smart-home-search__suggestion-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6f7;
    color: #1f6b6c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.smart-home-search__suggestion-secondary {
    font-size: 13px;
    color: #6b7785;
}

.smart-home-search__suggestion-count {
    flex: 0 0 auto;
    margin-left: 10px;
    background: #eef6f7;
    color: #1f6b6c;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.smart-home-search__empty {
    padding: 10px 8px;
    color: #6b7785;
    font-size: 14px;
}

.smart-home-search__loading {
    padding: 10px 8px;
    color: #1f6b6c;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .smart-home-search__tabs {
        gap: 8px;
        margin-bottom: 12px;
    }

    .smart-home-search__tabs button {
        padding: 11px 14px;
        font-size: 14px;
    }

    .smart-home-search__input {
        border-radius: 28px;
        flex-direction: row;
        padding: 5px 6px 5px 10px;
    }

    .smart-home-search__query {
        padding: 13px 14px;
        font-size: 15px;
    }

    .smart-home-search__submit {
        width: 48px;
        min-width: 48px;
        height: 48px;
    }

    .smart-home-search__clear {
        width: 36px;
        height: 36px;
        margin-right: 4px;
        font-size: 24px;
    }

    .smart-home-search__suggestions {
        border-radius: 20px;
        padding: 10px;
    }
}
