/* Isolated modal styles (no Bootstrap dependency) */

#woowa-pghs-modal.woowa-pghs-modal[hidden] {
  display: none;
}

#woowa-pghs-modal.woowa-pghs-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  /* Center dialog more consistently */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#woowa-pghs-modal .woowa-pghs-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#woowa-pghs-modal .woowa-pghs-modal__dialog {
  position: relative;
  background: #fff;
  color: #111;
  width: min(680px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#woowa-pghs-modal .woowa-pghs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
}

#woowa-pghs-modal #woowa-pghs-modal-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

#woowa-pghs-modal .woowa-pghs-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
}

#woowa-pghs-modal #woowa-pghs-modal-body {
  padding: 12px 14px 14px;
  overflow: auto;
  max-height: calc(100vh - 160px);
}

/* Replace Bootstrap .col layout */
#woowa-pghs-modal #woowa-pghs-modal-body .col-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}

#woowa-pghs-modal #woowa-pghs-modal-body .col {
  box-sizing: border-box;
  flex: 0 0 220px;
  max-width: 220px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

#woowa-pghs-modal #woowa-pghs-modal-body .col h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.25;
}

#woowa-pghs-modal #woowa-pghs-modal-body .woowa-pghs-detail_image {
  width: 100%;
  height: 92px;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}

#woowa-pghs-modal #woowa-pghs-modal-body ul {
  margin: 0;
  padding-left: 18px;
  flex: 1;
  overflow: auto;
  max-height: 150px;
}

#woowa-pghs-modal #woowa-pghs-modal-body li {
  font-size: 13px;
  line-height: 1.35;
}
