/* 비급여 비용안내 모달 */
.fee-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.fee-modal.is-open {
    display: flex;
}

body.fee-modal-open {
    overflow: hidden;
}

.fee-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.fee-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(800px, 100%);
    max-height: min(90vh, 900px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.fee-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #F2F2F2;
}

.fee-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #568CC7;
}

.fee-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #787878;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.fee-modal-close:hover {
    background: #F2F2F2;
    color: #28292B;
}

.fee-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

.fee-modal-img {
    display: block;
    width: 100%;
    height: auto;
}

.fee-modal-trigger {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.fee-modal-trigger img {
    width: 100%;
    vertical-align: top;
}

@media (max-width: 768px) {
    .fee-modal {
        padding: 0;
        align-items: stretch;
    }

    .fee-modal-dialog {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .fee-modal-header {
        padding: 14px 16px;
    }

    .fee-modal-title {
        font-size: 16px;
    }
}
