/* ==================================== */
/* Layer Pop-up 공통 스타일 */
/* ==================================== */

/* 전체 배경 (팝업창 뒷 배경) */
.layer-popup {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

/* 팝업 박스 (가운데 보이는 창) */
.layer-popup .layer-content {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linen;
  border-radius: 16px;
  width: 300px;       
  min-height: 200px; /* height 대신 min-height로 변경하여 내용에 따라 높이 조절 */
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: popup-show 0.25s ease-out forwards;
}

/* 메시지 글씨 */
.layer-popup .layer-content p {
  margin: 20px 0 30px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

/* 팝업 등장 애니메이션 */
@keyframes popup-show {
  0% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.9); 
  }
  100% { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
  }
}

/* ==================================== */
/* 버튼 스타일 */
/* ==================================== */

/* 버튼들을 묶는 컨테이너 */
.layer-popup .layer-content .button-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* 버튼 사이 간격 */
    margin-top: 10px;
}

/* 버튼 공통 스타일 */
.layer-popup .layer-content button {
  padding: 12px 28px;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* 확인/단일 버튼 스타일 */
.layer-popup .layer-content #layerOkBtn {
  background: #e95b0a;
}

/* 확인/단일 버튼 호버 스타일 */
.layer-popup .layer-content #layerOkBtn:hover {
  background: #ff6600;
  transform: scale(1.07);
}

/* 취소 버튼 스타일 */
.layer-popup .layer-content #layerCancelBtn {
  background: #888;
}

/* 취소 버튼 호버 스타일 */
.layer-popup .layer-content #layerCancelBtn:hover {
  background: #666;
  transform: scale(1.07);
}