.search-row {
    --searchbar-input-font-size: 14px;
    --searchbar-input-y: 6px;
    --searchbar-border-color: #d4d4d4;
    --searchbar-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.03);
    --searchbar-divider-y: 8px;
    --searchbar-button-icon-size: 13px;

    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 9px 13px;
    padding: 3px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--searchbar-border-color);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--searchbar-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-row.search-row--dense {
    --searchbar-input-font-size: 15px;
    --searchbar-input-y: 9px;
    --searchbar-border-color: #ccc;
    --searchbar-shadow: 0 0 2px 1.5px rgba(0, 0, 0, 0.05);
    --searchbar-divider-y: 9px;
    --searchbar-button-icon-size: 14px;
}

.search-row:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.08);
}

.search-row .search-field {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    gap: 5px;
    border: 0;
    border-radius: 0;
    flex-basis: 0;
    flex-shrink: 1;
    box-sizing: border-box;
    background: transparent;
    transition: border-color 0.15s ease;
}

.search-row .search-field:first-child {
    flex-grow: 2.2;
}

.search-row .search-field.location {
    position: relative;
    flex-grow: 1;
}

.search-row .search-field.location::before {
    content: "";
    position: absolute;
    top: var(--searchbar-divider-y);
    bottom: var(--searchbar-divider-y);
    left: 0;
    width: 1.5px;
    background: #ddd;
    pointer-events: none;
}

.search-row:focus-within .search-field,
.search-row .search-field:focus-within {
    border: 0;
    border-radius: 0;
}

.search-row:focus-within .search-field.location::before {
    background: rgba(0, 123, 255, 0.28);
}

.search-row .search-field input {
    border: none;
    outline: none;
    width: 100%;
    font-size: var(--searchbar-input-font-size);
    padding: var(--searchbar-input-y) 0 var(--searchbar-input-y) 20px;
    color: #555;
    background: transparent;
}

.search-row .search-field:first-child input {
    padding-right: 6px;
}

.search-row.search-row--dense .search-field input {
    color: #000;
}

.search-row input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-row .icon {
    opacity: 0.7;
    font-size: 14px;
    margin: 0 -15px 0 10px;
}

.search-row .search-button {
    align-self: stretch;
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    color: white;
    box-shadow: none;
    background-color: #005698;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    -webkit-text-stroke: 0.35px currentColor;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-row .search-button:hover {
    background-color: #003660;
}

.search-row .search-button i {
    font-size: var(--searchbar-button-icon-size);
}

@media (max-width: 710px) {
    .search-row .search-field.location {
        display: none;
    }
}
