/* ==========================================================================
   코라이브 패밀리 라이프 OS (Family Living OS) 전용 스타일시트
   theme/kolive_new/css/kol_family.css
   ========================================================================== */

.kol-family-wrapper {
    max-width: 75rem;
    margin: 1.88rem auto 3.75rem;
    padding: 0 1.25rem;
    color: #1e293b;
}

.kol-family-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1rem;
    padding: 2.25rem 2.5rem;
    color: #ffffff;
    box-shadow: 0 0.63rem 1.56rem rgba(37, 99, 235, 0.15);
    margin-bottom: 1.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.kol-family-header h1 {
    font-size: 1.63rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.03rem;
    color: #ffffff;
}

.kol-family-header p {
    font-size: 0.94rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
    color: #f1f5f9;
}

.kol-family-badge-chip {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.5rem 1.13rem;
    border-radius: 2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 탭 네비게이션 */
.kol-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.88rem;
    overflow-x: auto;
}

.kol-tab-btn {
    padding: 0.88rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.kol-tab-btn:hover {
    color: #2563eb;
}

.kol-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.kol-tab-count {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 0.13rem 0.5rem;
    border-radius: 0.75rem;
    font-weight: 800;
}

.kol-tab-btn.active .kol-tab-count {
    background: #2563eb;
    color: #ffffff;
}

/* 카드 그리드 */
.wish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.88rem, 1fr));
    gap: 1.5rem;
}

.wish-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wish-card-top {
    display: flex;
    gap: 1.13rem;
    margin-bottom: 1rem;
}

.wish-item-thumb {
    width: 5.63rem;
    height: 5.63rem;
    border-radius: 0.63rem;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.wish-item-info {
    flex-grow: 1;
}

.wish-child-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
    display: inline-block;
    margin-bottom: 0.38rem;
}

.wish-item-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.38rem 0;
    line-height: 1.4;
}

.wish-item-price {
    font-size: 1.13rem;
    font-weight: 800;
    color: #2563eb;
}

.wish-memo-box {
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0.38rem;
    padding: 0.75rem 0.88rem;
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 1.13rem;
    line-height: 1.5;
}

.wish-memo-box strong {
    color: #0f172a;
}

.wish-actions {
    display: flex;
    gap: 0.63rem;
}

.btn-approve {
    flex: 1;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
}

.btn-approve:hover {
    background: #1d4ed8;
}

.btn-reject {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-reject:hover {
    background: #e2e8f0;
}

.badge-status {
    padding: 0.38rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.81rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-status.approved {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.badge-status.rejected {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.badge-status.requested {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* 성장 타임라인 */
.timeline-container {
    position: relative;
    padding: 1.25rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2.25rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.69rem;
    top: 1.5rem;
    bottom: -2.25rem;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.63rem;
}

.timeline-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.38rem 1.63rem;
    box-shadow: 0 0.25rem 0.88rem rgba(0, 0, 0, 0.03);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.63rem;
}

.timeline-date {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}

.timeline-badge {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.81rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.timeline-title {
    font-size: 1.13rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.timeline-body {
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1rem;
}



/* 모달 */
.kol-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.kol-modal.show {
    display: flex;
}

.kol-modal-content {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.88rem;
    max-width: 31.25rem;
    width: 90%;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
}

.kol-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.kol-modal-title {
    font-size: 1.19rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.kol-form-group {
    margin-bottom: 1rem;
}

.kol-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.38rem;
}

.kol-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 0.63rem 0.88rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.88rem;
}

/* 상품 상세 내 조르기 버튼 */
.sit_btn_family_wish {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 0.38rem;
    padding: 0 1rem;
    margin-left: 0.38rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    cursor: pointer;
    height: 3.13rem;
    font-size: 0.88rem;
    transition: background 0.2s ease;
}

.sit_btn_family_wish:hover {
    background: #1d4ed8;
}

/* 조르기 팝업 모달 */
.kol-wish-modal-box {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    max-width: 27.5rem;
    width: 90%;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
}

.kol-wish-modal-preview {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.63rem;
    padding: 0.88rem;
    margin-bottom: 1rem;
}

.kol-wish-modal-preview .fw-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.kol-wish-modal-preview .fw-price {
    font-size: 1rem;
    font-weight: 800;
    color: #2563eb;
}

.kol-wish-modal-memo {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.63rem;
    font-size: 0.88rem;
}

.kol-wish-modal-btns {
    display: flex;
    gap: 0.63rem;
}

.kol-wish-modal-btn-cancel {
    flex: 1;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

.kol-wish-modal-btn-submit {
    flex: 2;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

/* 빈 상태 공통 (Empty State) */
.kol-empty-state {
    text-align: center;
    padding: 5rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.88rem;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.kol-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.kol-empty-title {
    font-size: 1.13rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #334155;
}

.kol-empty-desc {
    font-size: 0.88rem;
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

/* 수량 및 가격 보조 */
.wish-qty-sub {
    font-size: 0.81rem;
    color: #64748b;
    font-weight: normal;
}

/* 승인 후 결제 액션 행 */
.wish-approved-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-pay-direct {
    background: #2563eb;
    color: #ffffff;
    padding: 0.38rem 0.75rem;
    border-radius: 0.38rem;
    font-size: 0.81rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-pay-direct:hover {
    background: #1d4ed8;
}

/* 받는 사람 태그 */
.wish-parent-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.19rem 0.5rem;
    border-radius: 0.38rem;
    display: inline-block;
    margin-bottom: 0.38rem;
}

/* 성장 기록 헤더 */
.growth-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.88rem;
}

.growth-title-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.38rem 0;
    color: #0f172a;
}

.growth-title-box p {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
}

.btn-growth-write {
    width: auto;
    padding: 0.75rem 1.25rem;
}

/* 가족 연동 탭 카드 및 그리드 */
.family-link-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.88rem;
    padding: 1.88rem;
    margin-bottom: 1.88rem;
}

.family-link-title {
    font-size: 1.13rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.family-link-title i {
    color: #2563eb;
    margin-right: 0.38rem;
}

.family-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.88rem;
}

.family-empty-notice {
    color: #94a3b8;
    font-size: 0.88rem;
}

.family-member-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.63rem;
    padding: 1.13rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.88rem;
}

.family-avatar-child {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.family-avatar-parent {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.family-member-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
}

.family-member-id {
    font-size: 0.81rem;
    color: #64748b;
}

.family-member-birth {
    font-size: 0.75rem;
    color: #94a3b8;
}

.family-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.family-add-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.family-add-title i {
    color: #2563eb;
    margin-right: 0.38rem;
}

.family-add-form {
    max-width: 31.25rem;
}

.btn-full-width {
    width: 100%;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #64748b;
}

.modal-btn-row {
    display: flex;
    gap: 0.63rem;
    justify-content: flex-end;
}

.btn-danger-action {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger-action:hover {
    background: #b91c1c;
}


