/* ==========================================================================
   기본 리셋
   ========================================================================== */
html, body { margin: 0; height: 100%; }

/* 261px 이하: 9px / 430px 이상: 15px (구형 브라우저 폴백은 15px) */
html { font-size: 15px; }
html { font-size: clamp(9px, 3.55vw - 0.266px, 15px); }

body.waitMe_container { position: fixed; top: 0; left: 0; width: 100%; }

a, a:hover, a:visited { text-decoration: none; color: inherit; }
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; }

/* ==========================================================================
   레이아웃 / 유틸리티
   ========================================================================== */
div.wrapper { position: relative; }

.container {
  margin: 0 auto;
  max-width: 430px;
  position: relative;
  min-height: 90vh;
  min-height: 100dvh;
}

.content-body { position: relative; font-size: 0;}

.clearboth:after { content: ''; display: block; clear: both; }
.overflow-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.multiline-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row { display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.col { position: relative; width: 100%; box-sizing: border-box; }
.d-inline-block { display: inline-block !important; }

.text-danger { color: #ff0000; }

li.empty_list { text-align: center; padding: 5rem 0; }

/* ==========================================================================
   버튼 / 폼 요소
   ========================================================================== */
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  background-color: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  outline: inherit;
  cursor: pointer;
  font-size: 0;
}
button:disabled,
button.disabled { cursor: not-allowed; }
button.hidden { display: none; width: 0; }

input:focus, textarea:focus { outline: none; }
input[type="checkbox"] { margin-top: 0; margin-bottom: 0; }
input[type="number"],
input[type="text"],
input[type="password"],
input[type="tel"],
textarea {
  border: none;
  padding: 1rem 0.8rem;
  min-width: 0;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
  border-radius: 0;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
}
@supports (-webkit-touch-callout: none) {
  select { text-align: center; text-indent: 33.3%; }
}

/* ==========================================================================
   점검중 안내
   ========================================================================== */
body.is-maintenance { overflow: hidden; }
.maintenance-notice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  box-sizing: border-box;
}
.maintenance-notice__card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.maintenance-notice__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

/* ==========================================================================
   모달
   ========================================================================== */
.modal-open { overflow: hidden; }
.modal-backdrop.show {
  opacity: .5;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}
.modal .modal-dialog {
  position: absolute;
  width: 90%;
  max-width: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  display: block;
}
.modal .modal-dialog .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  min-height: 10rem;
  overflow: auto;
  padding: 4% 0 7%;
}
.modal .modal-dialog .modal-content .modal-header {
  padding: 0 5% 5% 7%;
  flex-shrink: 0;
  color: #4e00ff;
}
.modal .modal-dialog .modal-content .modal-body {
  padding: 0 3%;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 60vh;
  font-size: 0;
}
.modal .modal-dialog .modal-content .modal-footer {
  padding: 5% 7% 0;
  flex-shrink: 0;
}
.modal .modal-dialog .modal-content .modal-header .popup_close {
  font-size: 0;
  text-align: right;
  padding-bottom: 1%;
}
.modal .modal-dialog .modal-content .modal-header .popup_close button.close {
  width: 8%;
}
.modal .modal-dialog .modal-content .modal-header .title {
  font-size: 1.5rem;
  font-weight: 600;
}
.modal .modal-dialog .modal-content .modal-header .desc {
  font-size: 1rem;
  word-break: keep-all;
}
.modal .modal-dialog .modal-content .modal-header .added {
  font-size: 0.85rem;
  word-break: keep-all;
}

/* ==========================================================================
   섹션 유틸리티
   ========================================================================== */
.section { box-sizing: border-box; }
.section__row { display: flex; }


/* ==========================================================================
   Bootstrap 스타일 유틸리티 클래스 (Bootstrap 5 네이밍/스케일 기준)
   ========================================================================== */

/* Display */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-stretch { align-items: stretch !important; }
.align-self-center { align-self: center !important; }

/* Position */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Text */
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.fw-normal { font-weight: 400 !important; }
.fw-bold { font-weight: 700 !important; }
.fst-italic { font-style: italic !important; }

/* Width / Height */
.w-20 { width: 20% !important; }
.w-25 { width: 25% !important; }
.w-30 { width: 30% !important; }
.w-40 { width: 40% !important; }
.w-45 { width: 45% !important; }
.w-50 { width: 50% !important; }
.w-60 { width: 60% !important; }
.w-65 { width: 65% !important; }
.w-70 { width: 70% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-60 { height: 60% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

/* Border / Shape */
.border-0 { border: 0 !important; }
.rounded { border-radius: 0.375rem !important; }
.rounded-circle { border-radius: 50% !important; }

/* Visibility */
.invisible { visibility: hidden !important; }
.visible { visibility: visible !important; }

/* Spacing (Bootstrap 5 scale: 0=0, 1=0.25rem, 2=0.5rem, 3=1rem, 4=1.5rem, 5=3rem) */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }