/* 统一位置选择器（微信风格） */
.cm-loc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: var(--cm-bg, #f5f5f5);
    color: var(--cm-text-secondary, #666);
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
    text-align: left;
}

.cm-loc-pill i {
    color: var(--cm-primary, #00c3ce);
    flex-shrink: 0;
}

.cm-loc-pill .cm-loc-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-loc-pill .cm-loc-text.is-placeholder {
    color: var(--cm-text-secondary, #999);
}

.cm-loc-picker-lock {
    overflow: hidden !important;
}

.cm-loc-picker {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
}

.cm-loc-picker.is-open {
    display: block;
}

.cm-loc-picker-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cm-loc-picker-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 8%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    animation: cm-loc-slide-up 0.22s ease-out;
}

@keyframes cm-loc-slide-up {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.cm-loc-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
}

.cm-loc-picker-close,
.cm-loc-picker-clear {
    border: none;
    background: transparent;
    color: var(--cm-primary, #00c3ce);
    font-size: 14px;
    min-width: 44px;
    padding: 6px 0;
}

.cm-loc-picker-close {
    font-size: 22px;
    line-height: 1;
    color: #333;
}

.cm-loc-picker-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.cm-loc-picker-search {
    position: relative;
    margin: 10px 14px 6px;
}

.cm-loc-picker-search > .fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.cm-loc-picker-input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 34px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    outline: none;
    font-size: 14px;
}

.cm-loc-picker-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    line-height: 22px;
    font-size: 16px;
}

.cm-loc-picker-body {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.cm-loc-picker-status {
    padding: 28px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.cm-loc-section-title {
    padding: 12px 16px 6px;
    font-size: 12px;
    color: #999;
}

.cm-loc-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.cm-loc-item:active {
    background: #fafafa;
}

.cm-loc-item-main {
    flex: 1;
    min-width: 0;
}

.cm-loc-item-name {
    font-size: 15px;
    color: #222;
    margin-bottom: 4px;
}

.cm-loc-item-name .fa {
    color: var(--cm-primary, #00c3ce);
    margin-right: 2px;
}

.cm-loc-item.is-current .cm-loc-item-name {
    color: var(--cm-primary, #00c3ce);
    font-weight: 600;
}

.cm-loc-item-addr {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cm-loc-item-dist {
    flex-shrink: 0;
    margin-left: 12px;
    font-size: 12px;
    color: #bbb;
}
