/*.modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }*/
.close { float: right; font-size: 24px; cursor: pointer; }
/*
.modal-content {
  width: 500px !important;
  max-width: 90%;
  text-align: left !important;
}*/
/* 열렸을 때 */
.modal.show {
    display: flex;
}
body.modal-open {
  overflow: hidden;
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* 카드 */
.modal-review-card {
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

/* 상품명 */
.modal-review-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 별점 */
.modal-stars {
  color: #f5a623;
  font-size: 15px;
  margin-bottom: 12px;
}

/* 구분선 */
.modal-review-card hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 12px 0;
}

/* 텍스트 */
.modal-review-text {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin-bottom: 14px;
  height: 100px;
  overflow-y:auto; 
}

/* 이미지 */
.modal-image-list {
  gap: 10px;
}

.modal-image-list img {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* 가격 박스 */
.modal-price-box {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eee;
  display: none;
}

/* 가격 줄 */
.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
  color: #666;
}

/* 줄바꿈 방지 */
.modal-row span:last-child {
  white-space: nowrap;
}

/* 합계 */
.modal-row.modal-total {
  margin-top: 6px;
  font-weight: 700;
  color: #1a936f;
  font-size: 15px;
}

/* 모달 */
/*
.modal-content {
  width: 520px !important;
  padding: 24px;
  border-radius: 16px;
  overflow-y:auto;
  height: 730px;
  background: white; 
  margin: 5% auto; 
}
*/
.modal-content {
    background: white;
    width: 520px;
    max-width: 90%;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
    
    max-height: 90vh;   /* 화면 높이의 90%까지만 */
    overflow-y: auto;   /* 내용 많으면 내부 스크롤 */
    
}


/* 타이틀 */
.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}