/* ─────────────────────────────────────────────
   /public_html/css/order.css
   주문/결제 페이지
   ───────────────────────────────────────────── */

.order_page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 120px;
}

.order_title .en_text {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0 0 40px;
  color: #222;
}

/* ── 로그인 필요 안내 ───────────────────────── */
.order_login_required {
  text-align: center;
  padding: 80px 20px;
  border: 1px solid #e8e5df;
  background: #fff;
}
.order_login_msg {
  font-size: 20px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px;
}
.order_login_sub {
  font-size: 14px;
  color: #888;
  margin: 0 0 28px;
}

/* ── 레이아웃 ───────────────────────────────── */
.order_wrap {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.order_left {
  flex: 1 1 58%;
  min-width: 0;
}
.order_right {
  flex: 1 1 42%;
  min-width: 0;
  position: sticky;
  top: 20px;
}

/* ── 박스 ───────────────────────────────────── */
.order_box {
  border: 1px solid #e8e5df;
  background: #fff;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.order_box_title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efece6;
}
.order_box_note {
  font-size: 12px;
  color: #999;
  margin: 14px 0 0;
}
.order_box_note a {
  color: #555;
  text-decoration: underline;
}

/* ── 표 ─────────────────────────────────────── */
.order_table {
  width: 100%;
  border-collapse: collapse;
}
.order_table th,
.order_table td {
  padding: 11px 0;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.order_table th {
  width: 130px;
  color: #888;
  font-weight: 400;
}
.order_table td {
  color: #222;
}
.order_table td strong {
  font-size: 17px;
  font-weight: 700;
}
.order_table .vat {
  font-size: 12px;
  color: #999;
}
.order_table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #666;
  word-break: break-all;
}

/* ── 결제 요약 ──────────────────────────────── */
.order_summary {
  border: 1px solid #e8e5df;
  background: #fff;
  padding: 22px 28px;
  margin-bottom: 16px;
}
.order_summary_row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  padding: 7px 0;
}
.order_summary_total {
  border-top: 1px solid #efece6;
  margin-top: 10px;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

/* ── 안내 문구 ──────────────────────────────── */
.order_policy {
  font-size: 12px;
  line-height: 1.8;
  color: #999;
  margin: 0 0 14px;
}
.order_policy a {
  color: #555;
  text-decoration: underline;
}

/* ── 버튼 ───────────────────────────────────── */
.order_btn {
  display: inline-block;
  padding: 16px 30px;
  background: #222;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #222;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.order_btn:hover {
  opacity: 0.85;
  color: #fff;
}

.order_btn_line {
  background: transparent;
  color: #222;
}
.order_btn_line:hover {
  background: #222;
  color: #fff;
}

.order_btn_pay {
  width: 100%;
  padding: 19px 20px;
  font-size: 16px;
}
.order_btn_pay:disabled {
  background: #c9c5bd;
  border-color: #c9c5bd;
  cursor: not-allowed;
  opacity: 1;
}

/* ── 결과 화면 ──────────────────────────────── */
.order_result {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid #e8e5df;
  background: #fff;
  padding: 60px 40px;
}
.order_result_icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  margin: 0 auto 24px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}
.order_result_success .order_result_icon {
  background: #3182f6;
}
.order_result_fail .order_result_icon {
  background: #d94a3d;
}

.order_result_title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 0 0 10px;
}
.order_result_sub {
  font-size: 14px;
  color: #888;
  margin: 0 0 32px;
  line-height: 1.7;
}
.order_result_table {
  text-align: left;
  border-top: 1px solid #efece6;
  padding-top: 10px;
  margin-bottom: 32px;
}
.order_result_code {
  font-size: 12px;
  color: #aaa;
  margin: -20px 0 28px;
}
.order_result_btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.order_result_help {
  font-size: 12px;
  color: #aaa;
  margin: 26px 0 0;
  line-height: 1.7;
}

/* ── 모바일 ─────────────────────────────────── */
@media (max-width: 900px) {
  .order_wrap {
    flex-direction: column;
  }
  .order_left,
  .order_right {
    width: 100%;
    flex: none;
  }
  .order_right {
    position: static;
  }
}
@media (max-width: 767px) {
  .order_page {
    padding: 40px 16px 80px;
  }
  .order_title .en_text {
    font-size: 40px;
    margin-bottom: 26px;
  }
  .order_box,
  .order_summary {
    padding: 20px 18px;
  }
  .order_table th {
    width: 100px;
  }
  .order_result {
    padding: 44px 22px;
  }
  .order_result_btns .order_btn {
    width: 100%;
  }
}

/* 자동결제(빌링) 화면 */
.billing_notice { margin:0; padding:0; list-style:none; }
.billing_notice li { position:relative; padding-left:14px; font-size:13px; line-height:1.85; color:#666; margin-bottom:8px; }
.billing_notice li:last-child { margin-bottom:0; }
.billing_notice li::before { content:""; position:absolute; left:0; top:10px; width:4px; height:4px; border-radius:50%; background:#c9c5bd; }
.billing_notice strong { color:#222; font-weight:600; }
.billing_notice a { color:#555; text-decoration:underline; }
.billing_agree { display:flex; align-items:flex-start; gap:9px; padding:16px 18px; margin-bottom:14px; border:1px solid #e8e5df; background:#fff; cursor:pointer; }
.billing_agree input[type="checkbox"] { flex-shrink:0; width:17px; height:17px; margin:1px 0 0; cursor:pointer; accent-color:#222; }
.billing_agree span { font-size:13px; line-height:1.6; color:#444; }
.billing_agree strong { color:#222; font-weight:700; }
@media (max-width:767px){ .billing_agree { padding:14px; } }

.billing_input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd9d2;
    background: #fff;
    font-size: 15px;
    box-sizing: border-box;
}
.billing_input:focus { outline: none; border-color: #222; }

.billing_hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #8b857c;
}

.billing_inline_link {
    margin-left: 8px;
    font-size: 12px;
    color: #8b857c;
    text-decoration: underline;
}

