@charset "utf-8";

/* ============================================================
   카드 추가등록
   ============================================================ */

/* 카드번호 입력 */
.card-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-input {
    width: 80px !important;
    text-align: center;
}

.card-register-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    margin-left: 8px;
}

.card-register-btn:hover {
    opacity: 0.85;
}

.card-notice__title img {
    display: inline;
    vertical-align: middle;
    margin-right: 4px;
}

/* 카드 등록 안내 */
.card-notice {
    margin-top: 30px;
    padding: 25px 30px;
    background: #F9F9F9;
    border-radius: 10px;
}

.card-notice__title {
    color: var(--aticle-title);
    margin-bottom: 10px;
}

.card-notice__list {
    list-style: none;
}

.card-notice__list li {
    color: var(--explan);
    padding-left: 10px;
    position: relative;
    margin-bottom: 4px;
}

.card-notice__list li::before {
    content: '·';
    position: absolute;
    left: 0;
}

.mt-30 {
    margin-top: 30px;
}

/* 보유 카드 목록 */
.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2열 */
    gap: 16px;
}


.card-list__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-list__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;  /* 추가 - 하단으로 밀기 */
}

.bottom-line {
    border-bottom: 1px solid var(--primary);
    padding-bottom: 20px;
}



/* position: absolute 제거 */
.card-list__close {
    width: 25px;
    height: 25px;
    background: #EEEEEE;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.2s;
}


.card-list__close.disable {
    color: #BBBBBB;
}

.card-list__item {
    width: 100%;
    padding: 25px;
    border-radius: 10px;
    position: relative;
    background-color: #F9F9F9;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 140px;
}





.card-list__close:not(.disable):hover {
    background: var(--primary);
    color: white;
}

.card-list__icon {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.card-list__icon--dark {
    background: #333;
}

.card-list__icon--red {
    background: var(--primary);
}

.card-list__bank {
    color: var(--aticle-title);
    margin-bottom: 4px;
}

.card-list__no {
    color: var(--breadcrumb);
}

.card-list__primary {
    width: auto;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: #FFF2EF;
    transition: all 0.2s;
}

.card-list__primary.disable {
    background-color: #EEEEEE;
    color: #BBBBBB;
    border: none;
}

.card-list__primary:not(.disable):hover,
.card-list__primary:not(.disable):active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== 반응형 ===== */
@media screen and (max-width: 768px) {
    .card-input-wrap {
        flex-wrap: wrap;
    }

    .card-input {
        width: 60px !important;
    }

    .card-list {
        gap: 12px;
    }

    .card-list__item {
        width: calc(50% - 6px);
    }
}
