.location-selector {
    border: 1px solid rgba(188, 154, 106, 0.25);
    border-radius: 1rem;
    padding: 1rem;
    background-color: #fff;
    margin-bottom: 0.75rem;
}

.location-selector__original-input select {
    width: 100%;
    min-height: 140px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.location-selector[data-enhanced="true"] .location-selector__original-input select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
}

.location-selector__widget {
    margin-top: 0.5rem;
}

.location-selector__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.location-selector__filter,
.location-selector__search {
    flex: 1 1 200px;
}

.location-selector__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(188, 154, 106, 0.1);
    border: 1px solid rgba(188, 154, 106, 0.4);
    color: #7a5830;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.location-tag__remove {
    margin-left: 0.4rem;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.location-selector__cities {
    max-height: 320px;
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
}

.location-region {
    margin-bottom: 1rem;
}

.location-region__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #5a3e1a;
}

.location-region__cities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.location-city {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.location-city:hover {
    border-color: rgba(188, 154, 106, 0.8);
    color: #7a5830;
    background-color: rgba(188, 154, 106, 0.05);
}

.location-city.is-selected {
    background-color: #bc9a6a;
    border-color: #bc9a6a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(188, 154, 106, 0.3);
}

.location-city__check {
    font-weight: 600;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.location-selector__precise-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-selector__city {
    flex: 1 1 220px;
}

.location-selector__address {
    flex: 2 1 320px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
