/* 下单选地址面板 — 顺丰式 v20260616 */
.paotui-picker-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
}

.paotui-picker-mask.is-open {
    display: block;
}

.paotui-picker-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 6vh;
    background: #f5f5f5;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    border-radius: 14px 14px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
}

.paotui-picker-panel.is-open {
    transform: translateY(0);
}

/* ── 顶栏 ── */
.paotui-picker-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.paotui-picker-close {
    width: 44px;
    height: 44px;
    margin: -8px 0 -8px -8px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #333;
    padding: 0;
}

.paotui-picker-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #111;
}

.paotui-picker-header-spacer {
    width: 36px;
    flex-shrink: 0;
}

/* ── 主体 ── */
.paotui-picker-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 24px;
}

.paotui-picker-card {
    background: #fff;
    margin: 0 12px 12px;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 16px 20px;
}

/* ── 地址行（点进地图） ── */
.paotui-picker-addr-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.paotui-picker-addr-main {
    flex: 1;
    min-width: 0;
}

.paotui-picker-addr-line {
    display: flex;
    align-items: center;
    gap: 4px;
}

.paotui-picker-addr-title {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    word-break: break-all;
}

.paotui-picker-addr-title.is-placeholder {
    color: #111;
    font-weight: 600;
}

.paotui-picker-addr-sub {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-all;
}

.paotui-picker-addr-arrow {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    transform: rotate(45deg);
}

.paotui-picker-book-btn {
    flex-shrink: 0;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #e70012;
    border-radius: 16px;
    background: #fff;
    color: #e70012;
    font-size: 14px;
    font-weight: 500;
    line-height: 30px;
}

.paotui-picker-book-btn:active {
    background: #fff5f5;
}

/* ── 图标 ── */
.paotui-picker-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: center/contain no-repeat;
}

.paotui-picker-icon-loc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8'%3E%3Cpath d='M12 21s7-4.5 7-11a7 7 0 10-14 0c0 6.5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.paotui-picker-icon-building {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8'%3E%3Cpath d='M4 20V8l8-4 8 4v12'/%3E%3Cpath d='M9 20v-6h6v6M9 10h.01M15 10h.01M9 14h.01M15 14h.01'/%3E%3C/svg%3E");
}

.paotui-picker-icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.5-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

.paotui-picker-icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

/* ── 输入行 ── */
.paotui-picker-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.paotui-picker-field-row-tel {
    border-bottom: none;
}

.paotui-picker-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #111;
    outline: none;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.paotui-picker-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* ── 确认按钮 ── */
.paotui-picker-confirm {
    display: block;
    width: 100%;
    margin-top: 20px;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: #111;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.paotui-picker-confirm:active {
    opacity: 0.88;
}

/* ── 地址列表 ── */
.paotui-picker-list-section {
    background: #fff;
    margin: 0 12px;
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 8px;
}

.paotui-picker-list-head {
    padding: 14px 16px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.paotui-picker-list {
    padding: 0 16px;
}

.paotui-picker-list-item {
    padding: 14px 0;
    border-top: 1px solid #f5f5f5;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.paotui-picker-list-item:active {
    background: #fafafa;
}

.paotui-picker-list-item .p-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.45;
    word-break: break-all;
}

.paotui-picker-list-item .p-meta {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.paotui-picker-empty {
    padding: 20px 16px 24px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
