/* 
  모달 (팝업) 스타일 — DESIGN.md 카페 톤
*/
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 44, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 16px;
  box-sizing: border-box;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  background: #FFFFFF;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  text-align: left;
  border: 1px solid #E0E0E0;
  box-sizing: border-box;
}

.modal-content h2,
.modal-content h3 {
  margin-top: 0;
  color: #006241;
  font-weight: 800;
}

.modal-content .btn {
  min-height: 44px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  width: auto;
  min-width: 100px;
}

@media screen and (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}
