@charset "utf-8";

/* ============================================================
   MERCHANT PAGE — 사용처 찾기
   ============================================================ */
.login-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-popup-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    width: 700px;
}
.login-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}
.login-popup-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 35px;
}
.login-popup-msg {
    line-height: 30px;
    color: #222;
    margin-bottom: 30px;
}
.login-popup-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}




.notice-badge {
    background-color: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 13px;
}
.board-detail__title-wrap {
    padding: 40px 30px;
    border-bottom: 1px solid #ccc;
}
.board-detail__title-wrap > p {
    margin-bottom: 10px;
    color: #222222;
}
.board-detail__title-wrap > span {
    color: #8C8C8C;
}


.board-detail__content {
    padding: 40px 30px;
    min-height: 300px;
    line-height: 30px;
    font-size: 18px;
    color: #222222;
    border-bottom: 1px solid #ccc;
}

/* 첨부파일 */
.board-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}


.board-file-item img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


.board_attach_file {
    color: #222222;
    padding: 30px 20px;
    border-bottom: 1px solid #CCCCCC;
}

.btn-list {
    margin: 46px 0 180px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 50px;
    background-color: #E84519;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
    gap: 10px;
}



/* 취소 버튼 */
.btn-cancel {
    padding: 5px 14px;
    border: 1px solid #999;
    border-radius: 4px;
    background: white;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

/* 상세 버튼 */
.btn-detail {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 4px;
}

.btn-detail:hover {
    background: var(--primary);
    color: white;
}

.btn-cancel:hover {
    background: #999;
    color: white;
}

.merchant-table td,
.merchant-table th {
    white-space: nowrap;
}


.merchant-page {
    position: relative;
    overflow: hidden;
}

/* ===== 페이지 헤더 ===== */
.merchant-page__header {
    padding-bottom: 40px;
}

.merchant-page__label {
    color: var(--primary);
    margin-bottom: 8px;
}

.merchant-page__title {
    color: var(--aticle-title);
    position: relative;
    display: inline-block;
}

.merchant-page__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(49, 173, 52, 0.15);
    z-index: -1;
}

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

.merchant-page__desc {
    color: var(--breadcrumb);
}

/* ===== 검색 영역 ===== */
.merchant-search-wrap {
    overflow: hidden;
    margin-bottom: 24px;
}

.merchant-tab__btn {
    padding: 14px 28px;
    background: none;
    border: none;
    color: var(--disapear);
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.merchant-tab__btn.active {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 8px;  /* underline 간격 */
}

/* 검색 입력 */
.merchant-search {
    padding: 16px 55px;
    gap: 40px;
}

.merchant-search__radio {
    flex-shrink: 0;
}

.merchant-search__radio input[type="radio"] {
    accent-color: var(--primary);
    cursor: pointer;
}

.merchant-search__radio label {
    cursor: pointer;
    color: var(--aticle-title);
}

.merchant-search__input {
    flex: 1;
    border: 1px solid var(--primary);
    border-radius: 30px;
    overflow: hidden;
    background: transparent;  /* ✅ 배경 제거 */
}

.merchant-search__input input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    color: var(--title);
}

.merchant-search__input input::placeholder {
    color: var(--disapear);
}

.merchant-search__btn {
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    display: flex;
    background: transparent;  /* ✅ 배경 제거 */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}



.merchant-search__btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ===== 테이블 ===== */
.merchant-table-wrap {
    border-top: 1px solid var(--aticle-title);
    overflow: hidden;
    margin-bottom: 24px;
    overflow-x: auto;  /* 이미 있으면 확인 */
}

.merchant-table {
    width: 100%;
    border-collapse: collapse;
}

.merchant-table thead tr {
    border-bottom: 1px solid #ccc;
}

.merchant-table th {
    padding: 15px 20px;
    color: var(--aticle-title);
    text-align: center;  /* ✅ left → center */
}

.merchant-table td {
    padding: 15px 20px;
    color: var(--aticle-title);
    border-bottom: 1px solid #ccc;
    text-align: center;  /* ✅ 추가 */
}

.merchant-table tbody tr:last-child td {
    border-bottom: none;
}

.merchant-table tbody tr:hover {

    background: #F5F5F5;
}

/* ===== 페이징 ===== */
.merchant-paging {
    padding: 20px 0 180px 0;
}

.merchant-paging__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--breadcrumb);
    transition: all var(--transition);
}

.merchant-paging__btn:hover,
.merchant-paging__btn.active {
    background: transparent;
    border-color: transparent;
    color: #31AD34;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 그라데이션 원 */
.merchant-page::before {
    content: '';
    position: absolute;
    top: 80px;
    left: -50px;
    width: 315px;
    height: 315px;
    border-radius: 50%;
    background: #31AD34;
    opacity: 0.16;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.merchant-page::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 125px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: #E84519;
    opacity: 0.16;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   반응형
   ============================================================ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .merchant-table th,
    .merchant-table td {
        padding: 12px;
    }

    .merchant-paging {
        padding-bottom: 120px;
    }
}

@media screen and (max-width: 768px) {
    .merchant-search {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .merchant-search__input {
        width: 100%;
    }

    .merchant-table th:last-child,
    .merchant-table td:last-child {
        display: none; /* 모바일에서 주소 숨김 */
    }

    .merchant-paging {
        padding-bottom: 80px;
    }
}
