/* 합성레시피 상세 팝업 (rcp-*) */
.rcp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 1200000;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rcp-overlay.rcp-open { opacity: 1; }

.rcp-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1200001;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    max-height: 85vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.rcp-drag-bar { display: none; }
.rcp-drag-icon { width: 32px; height: 32px; display: block; }

.rcp-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    line-height: 1;
    z-index: 1;
}

.rcp-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.rcp-imgwrap {
    width: 100%;
    height: 300px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    padding-top: 20px;
}
.rcp-imgwrap img {
    width: 100%;
    height: 100%;
    max-width: 250px;
    max-height: 250px;
    border-radius: 20px;
    object-fit: contain;
}

.rcp-thumbs-wrap {
    display: flex;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
}
.rcp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.rcp-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
}
.rcp-thumbs img:hover { border-color: #00a0b6; }

.rcp-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.rcp-title {
    font-size: 18px;
    font-weight: 700;
    word-break: keep-all;
    font-family: 'NanumSquareNeoExtraBold';
    padding: 16px 20px 0;
}
.rcp-desc {
    font-size: 14px;
    color: #57585a;
    word-break: keep-all;
    font-family: 'NanumSquareNeoBold';
    padding: 12px 20px 0;
}
.rcp-info { padding: 10px 20px 16px; display: flex; flex-wrap: wrap; gap: 6px; }

.rcp-footer { flex-shrink: 0; padding: 12px 20px; background: #fff; }
.rcp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: #00a0b6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'NanumSquareNeoBold';
}
.rcp-btn:hover { background: #008fa3; }

@media (max-width: 992px) {
    .rcp-wrap {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
    }
    .rcp-wrap.rcp-open { transform: translateY(0); }
    .rcp-drag-bar {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 6px 0;
        cursor: pointer;
        flex-shrink: 0;
    }
    .rcp-close { display: none; }
    .rcp-imgwrap { padding-top: 0; height: 270px; }
}
