/**
 * 배송지 관리 페이지 스타일
 */

/* ============================================================
   배송지 카드 목록
   ============================================================ */
#addressList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 배송지 카드 */
.address-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* 기본 배송지 카드 강조 */
.address-card.is-default {
    border-color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   카드 헤더 (배지 + 액션 버튼)
   ============================================================ */
.address-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.address-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 기본 배송지 배지 */
.badge-default {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 배송지 라벨 (집, 회사 등) */
.address-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* 액션 버튼 그룹 */
.address-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 링크형 버튼 */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.btn-link:hover {
    color: #111;
}

.btn-link.text-danger {
    color: #ef4444;
}

.btn-link.text-danger:hover {
    color: #b91c1c;
}

/* ============================================================
   카드 본문 (수령인, 연락처, 주소)
   ============================================================ */
.address-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.address-receiver {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #111;
    margin: 0;
}

.address-receiver strong {
    font-weight: 700;
}

.address-phone {
    font-size: 14px;
    color: #6b7280;
}

.address-addr {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   빈 상태
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-text {
    font-size: 15px;
    margin: 0 0 8px;
}

.empty-sub {
    font-size: 13px;
    margin: 0;
    color: #d1d5db;
}

/* ============================================================
   배송지 추가 버튼
   ============================================================ */
#addAddressBtn {
    width: 100%;
    margin-bottom: 20px;
}

/* ============================================================
   모달 내부 스타일
   ============================================================ */
.addr-modal-wrap {
    padding: 4px 0;
}

.addr-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
}

.addr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 주소 검색 행 (우편번호 + 검색 버튼) */
.addr-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.addr-search-row .form-input {
    flex: 1;
}

.addr-search-row .btn-sm {
    flex-shrink: 0;
    white-space: nowrap;
}

/* 상단 여백 */
.mt-sm {
    margin-top: 8px;
}

/* 체크박스 라벨 */
.form-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.form-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #111;
}

/* 필수 표시 */
.text-required {
    color: #ef4444;
    font-size: 12px;
}

/* 모달 하단 버튼 */
.addr-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 8px;
}

.addr-modal-footer .btn {
    min-width: 80px;
}

/* ============================================================
   모바일 반응형
   ============================================================ */
@media (max-width: 768px) {
    .address-card {
        padding: 16px;
        border-radius: 10px;
    }

    .address-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .address-actions {
        gap: 10px;
    }

    .address-receiver {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .address-addr {
        font-size: 13px;
    }

    .addr-modal-footer {
        flex-direction: column-reverse;
    }

    .addr-modal-footer .btn {
        width: 100%;
    }

    .addr-search-row {
        flex-wrap: wrap;
    }

    .addr-search-row .form-input {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .address-card {
        padding: 14px;
    }

    .address-actions {
        gap: 8px;
    }

    .btn-link {
        font-size: 12px;
    }
}
