@charset "utf-8";

/* =========================================================
   루트 찜하기 세팅
========================================================= */
.js-vault-like {
    visibility: hidden;
}

.js-vault-like.vault-ready {
    visibility: visible;
}

/* 기본 (line) */
.sh-like .icon-like {
    width: 20px;
    height: 20px;
    display: block;
    background: url('../images/icon-like-line.svg') no-repeat center / contain;
}

/* 찜됨 (fill) */
.sh-like.active .icon-like {
    background: url('../images/icon-like-fill.svg') no-repeat center / contain;
}



.vault-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-modal-wrap[hidden] {
    display: none;
}

.vault-modal-wrap .vault-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.vault-modal-wrap .vault-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 80vh;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vault-modal-wrap .vault-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

.vault-modal-wrap .vault-header {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
}

.vault-modal-wrap .vault-header-top {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
}

.vault-modal-wrap .vault-header-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #eee;
}

.vault-modal-wrap .vault-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.vault-modal-wrap .vault-tab.active {
    border-bottom: 2px solid #111;
}

.vault-modal-wrap .vault-body {
    flex: 1;
    overflow-y: auto;
}

.vault-modal-wrap .vault-list {
    display: none;
    padding: 16px;
}

.vault-modal-wrap .vault-list.active {
    display: block;
}

.vault-modal-wrap .vault-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.vault-modal-wrap .vault-check {
    position: relative;
}

.vault-modal-wrap .vault-check input {
    display: none;
}

.vault-modal-wrap .check-svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #999;
    border-radius: 50%;
    position: relative;
}

.vault-modal-wrap .vault-check input:checked + .check-svg {
    background: #111;
    border-color: #111;
}

.vault-modal-wrap .vault-check input:checked + .check-svg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.vault-modal-wrap .vault-info {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.vault-modal-wrap .thumb {
    width: 180px;
    height: 90px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.vault-modal-wrap .text .subject {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
    font-weight: normal;
}

.vault-modal-wrap .text strong {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.vault-modal-wrap .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border: 1px solid #eee;
}

.vault-modal-wrap .vault-footer {
    padding: 16px;
    border-top: 1px solid #eee;
}

.vault-modal-wrap .vault-btn {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.vault-modal-wrap .vault-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.vault-modal-wrap .vault-btn.consult {
    background: #111;
    color: #fff;
}

.vault-modal-wrap .vault-btn.consult:disabled {
    background: #999;
    color: #fff;
}
