/* 학회원 결제 - rb.basic (Paperlogy + Blue) */
.mp-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 120px;
    font-family: 'font-R', 'Malgun Gothic', sans-serif;
    color: #1e293b;
    --mp-blue-900: #0d47a1;
    --mp-blue-700: #1565c0;
    --mp-blue-600: #1976d2;
    --mp-blue-500: #2196f3;
    --mp-blue-100: #e3f2fd;
    --mp-blue-50: #f0f7ff;
    --mp-red-600: #e53935;
    --mp-red-500: #f44336;
}

.mp-hero {
    margin: 0 -20px 32px;
    padding: 48px 24px;
    background: linear-gradient(135deg, var(--mp-blue-900) 0%, var(--mp-blue-700) 50%, var(--mp-blue-500) 100%);
    color: #fff;
    border-radius: 0 0 24px 24px;
}

.mp-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.mp-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
}

.mp-title {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.mp-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    opacity: .94;
}

.mp-guide {
    margin-bottom: 36px;
    padding: 28px 26px;
    background: var(--mp-blue-50);
    border: 1px solid #bbdefb;
    border-radius: 16px;
}

.mp-guide-title {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--mp-blue-900);
}

.mp-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-guide-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #334155;
}

.mp-guide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mp-blue-600);
}

.mp-guide-list strong {
    font-family: 'font-B', 'font-R', sans-serif;
    color: var(--mp-blue-900);
}

.mp-group { margin-bottom: 40px; }

.mp-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.mp-group-title {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--mp-blue-900);
}

.mp-group-desc {
    font-size: .95rem;
    color: #64748b;
}

.mp-group-desc em {
    color: var(--mp-red-600);
    font-style: normal;
    font-family: 'font-B', 'font-R', sans-serif;
    font-weight: 700;
}

.mp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.mp-item-card {
    position: relative;
    display: block;
    background: #fff;
    border: 2px solid #dbeafe;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.mp-item-card:hover {
    border-color: #90caf9;
    box-shadow: 0 8px 24px rgba(25,118,210,.14);
    transform: translateY(-2px);
}

.mp-item-card.is-selected {
    border-color: var(--mp-blue-900);
    box-shadow: 0 8px 28px rgba(13,71,161,.22);
}

.mp-item-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mp-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--mp-blue-50);
    overflow: hidden;
    line-height: 0;
}

.mp-card-media > a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.mp-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
}

.mp-card-body { padding: 16px 16px 18px; }

.mp-card-title {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.mp-card-desc {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 2.4em;
}

.mp-card-price strong {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mp-blue-900);
}

.mp-card-price span {
    font-size: .95rem;
    font-weight: 600;
    margin-left: 2px;
}

.mp-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(30,41,59,.35);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.mp-item-card.is-selected .mp-card-check {
    background: var(--mp-red-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/15px no-repeat;
}

.mp-form-section { margin-bottom: 32px; }

.mp-section-title {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mp-blue-600);
    color: var(--mp-blue-900);
}

.mp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mp-field span {
    display: block;
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
}

.mp-field span em { color: var(--mp-red-600); font-style: normal; }

.mp-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-family: 'font-R', sans-serif;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.mp-field input:focus {
    outline: none;
    border-color: var(--mp-blue-600);
    box-shadow: 0 0 0 3px rgba(25,118,210,.18);
}

.mp-sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    margin: 0 -20px;
    padding: 18px 20px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #bfdbfe;
    box-shadow: 0 -4px 20px rgba(13,71,161,.08);
}

.mp-sticky-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.mp-sticky-total { flex: 0 1 auto; }

.mp-sticky-total span {
    display: block;
    font-size: .9rem;
    color: #64748b;
    margin-bottom: 2px;
}

.mp-sticky-total strong {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--mp-blue-900);
}

.mp-sticky-total strong em { font-style: normal; }

.mp-pay-hint {
    margin: 16px 0 0;
    text-align: center;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #475569;
}

.mp-pay-hint-line {
    margin: 0 0 8px;
}

.mp-pay-hint-line:last-child {
    margin-bottom: 0;
}

.mp-pay-hint-bank {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
}

.mp-copy-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #90caf9;
    border-radius: 8px;
    background: #fff;
    color: var(--mp-blue-700);
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.mp-copy-btn:hover {
    background: var(--mp-blue-50);
    border-color: var(--mp-blue-600);
}

.mp-copy-btn.is-copied {
    border-color: var(--mp-blue-700);
    background: var(--mp-blue-100);
    color: var(--mp-blue-900);
}

.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.mp-btn-primary {
    background: linear-gradient(135deg, var(--mp-blue-800, #1565c0), var(--mp-blue-500));
    color: #fff;
    min-width: 160px;
}

.mp-btn-primary:hover { filter: brightness(1.06); }
.mp-btn-primary:active { transform: scale(.98); }
.mp-btn-block { width: 100%; }

.mp-empty {
    text-align: center;
    padding: 60px 24px;
    background: var(--mp-blue-50);
    border-radius: 16px;
    border: 1px dashed #90caf9;
}

.mp-empty p {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mp-empty span { font-size: .95rem; color: #64748b; }

/* 결제 확인(step 2) */
.mp-step-pay .mp-header { margin-bottom: 28px; }

.mp-back {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .92rem;
    color: var(--mp-blue-700);
    text-decoration: none;
}

.mp-back:hover { text-decoration: underline; }

.mp-subtitle { color: #64748b; margin-top: 8px; font-size: 1rem; }

.mp-grid-pay {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start;
}

.mp-panel {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 26px;
}

.mp-panel-accent {
    background: linear-gradient(180deg, var(--mp-blue-50) 0%, #fff 100%);
    border-color: #90caf9;
}

.mp-panel-title {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--mp-blue-900);
}

.mp-summary-list { list-style: none; padding: 0; margin: 0 0 20px; }

.mp-summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e3f2fd;
}

.mp-summary-item:last-child { border-bottom: 0; }

.mp-summary-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--mp-blue-50);
}

.mp-summary-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mp-summary-body { flex: 1; min-width: 0; }

.mp-summary-body strong {
    display: block;
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mp-summary-body span { font-size: .92rem; color: #64748b; }

.mp-summary-price {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mp-blue-900);
    white-space: nowrap;
}

.mp-buyer-box {
    padding: 18px;
    background: var(--mp-blue-50);
    border-radius: 12px;
    border: 1px solid #bbdefb;
}

.mp-buyer-box dl {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.mp-buyer-box dt {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: .92rem;
    color: #64748b;
    font-weight: 600;
}

.mp-buyer-box dd {
    font-size: 1rem;
    margin: 0;
    word-break: break-all;
    color: #1e293b;
}

.mp-total-box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0 22px;
    border-bottom: 1px solid #bbdefb;
    margin-bottom: 20px;
}

.mp-total-box span {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.05rem;
    color: #475569;
}

.mp-total-box strong {
    font-family: 'font-H', 'font-B', sans-serif;
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--mp-blue-900);
}

.mp-total-box em { font-size: 1.05rem; font-style: normal; margin-left: 2px; }

.mp-pay-label {
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--mp-blue-900);
}

.mp-pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mp-pay-chip { flex: 1 1 120px; cursor: pointer; }

.mp-pay-chip input { position: absolute; opacity: 0; }

.mp-pay-chip span {
    display: block;
    padding: 13px 14px;
    text-align: center;
    border: 2px solid #bfdbfe;
    border-radius: 10px;
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: .98rem;
    font-weight: 600;
    transition: all .2s;
}

.mp-pay-chip input:checked + span {
    border-color: var(--mp-blue-700);
    background: var(--mp-blue-100);
    color: var(--mp-blue-900);
}

.mp-bank-note {
    padding: 16px 18px;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #90caf9;
    font-size: .98rem;
    line-height: 1.6;
    color: #334155;
}

.mp-bank-note strong {
    display: block;
    margin-bottom: 8px;
    font-family: 'font-B', 'font-R', sans-serif;
    font-size: 1.02rem;
    color: var(--mp-blue-900);
}

@media (max-width: 768px) {
    body.mp-member-pay-page footer .footer_copy {
        padding-bottom: 32px !important;
    }

    .mp-wrap {
        padding: 0 16px 24px;
    }

    .mp-hero {
        margin: 0 -16px 24px;
        padding: 32px 16px;
        border-radius: 0 0 18px 18px;
    }

    .mp-form-grid { grid-template-columns: 1fr; }
    .mp-grid-pay { grid-template-columns: 1fr; }

    .mp-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mp-card-body { padding: 12px 12px 14px; }

    .mp-card-title {
        font-size: .95rem;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .mp-card-desc {
        font-size: .78rem;
        line-height: 1.45;
        min-height: 0;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mp-card-price strong { font-size: 1.12rem; }
    .mp-card-price span { font-size: .88rem; }

    .mp-card-check {
        top: 8px;
        right: 8px;
        width: 22px;
        height: 22px;
    }

    .mp-item-card.is-selected .mp-card-check {
        background-size: 12px;
    }

    .mp-card-media { aspect-ratio: 4 / 3; }

    .mp-sticky-bar {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 28px 0 0;
        padding: 18px 16px;
        background: var(--mp-blue-50);
        border: 1px solid #bfdbfe;
        box-shadow: none;
        border-radius: 16px;
    }

    .mp-sticky-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px 20px;
        align-items: center;
    }

    .mp-sticky-total {
        flex: none;
        min-width: 0;
        grid-column: 1;
        grid-row: 1;
    }

    .mp-sticky-total span {
        font-size: .85rem;
        margin-bottom: 4px;
    }

    .mp-sticky-total strong {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .mp-pay-hint {
        margin-top: 14px;
        font-size: .98rem;
        text-align: center;
    }

    .mp-copy-btn {
        font-size: .88rem;
        padding: 5px 11px;
    }

    .mp-btn-primary {
        flex: none;
        width: auto;
        min-width: 132px;
        margin-left: 0;
        padding: 13px 20px;
        font-size: 1rem;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .mp-group-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .mp-group-desc {
        font-size: .88rem;
    }
}
