/* 1:1 문의 -- service/question/list.asp
   SELF-CONTAINED: besides the shared chrome (rwd-shell + chrome.css) this page loads no
   other sheet; 92 of mypage.css's 448 rules, whole and in source order. */

@media (max-width: 1023px) {
.sub_wrap {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: #3a3d44;
}

.sub_wrap,
.sub_wrap *,
.sub_wrap *::before,
.sub_wrap *::after { box-sizing: border-box; }

.sub_wrap { padding: 0; }

.sub_wrap .sub_my {
  max-width: 1260px;
  margin: 0 auto;
  padding: 30px 30px 80px;
}

.sub_wrap .sub_my h1.sub_h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  color: #222;
  letter-spacing: -.02em;
  text-align: left;
  padding-bottom: 20px;
  border-bottom: 3px solid #222;
  margin-bottom: 36px;
}

.sub_wrap .sub_left_wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 0;
}

.sub_wrap .sub_left_wrap::after { display: none; }

.sub_wrap .my_cont_wrap {
  float: none;
  flex: 1;
  width: auto;
  min-width: 0;
}

.sub_wrap .point_wrap {
  height: auto;
  padding: 26px 30px;
  background: #f6f7f9;
  border: 0;
  border-radius: 4px;
}

.sub_wrap .point_wrap ul.ul_default { margin-top: 0 !important; }

.sub_wrap .ul_default li {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #666;
  background-position: left 11px;
}

/* sub.css:31 and :2761 already make the group atomic; overriding it back to
   `inline` let a line break land inside (상담시간 | 평일 ...) and flattened the
   1px rule, which needs a width. */
.sub_wrap .ul_default li .txt_b { font-weight: 700; color: #444; }

.sub_wrap .my_cont_wrap button.default_box2,
.sub_wrap .my_cont_wrap button.btn_calendar {
  height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: #8a8f98;
}

.sub_wrap .my_cont_wrap button.default_box2:hover,
.sub_wrap .my_cont_wrap button.btn_calendar:hover { background: #767b84; }

.sub_wrap .my_cont_wrap table.tb_default2 {
  width: 100%;
  border-collapse: collapse;
  border-top: 0;
  border-bottom: 0;
}

.sub_wrap .my_cont_wrap table.tb_default2 th {
  padding: 14px 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #555;
  background: #fafbfc;
  border-top: 1px solid #e5e8ec;
  border-bottom: 1px solid #e5e8ec;
}

.sub_wrap .my_cont_wrap table.tb_default2 td {
  padding: 16px 8px;
  font-size: 13.5px;
  color: #555;
  text-align: center;
  border-bottom: 1px solid #f0f2f4;
}

.sub_wrap .my_cont_wrap table.mt40 { margin-top: 22px !important; }

.sub_wrap .my_cont_wrap ul.paging.mt40 { margin-top: 22px !important; }

/* sub.css:1030 lays the pager out as inline-block, which wraps on its own; a flex
   row that never wraps is safe only because the <=767 block at the end of this file
   caps it at five numbers plus two arrows -- 270px inside the 288px box at 320. */
.sub_wrap ul.paging {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.sub_wrap ul.paging li { display: block; margin: 0; }

.sub_wrap ul.paging li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: #888;
  border-radius: 4px;
}

.sub_wrap ul.paging li a.active { color: #222; font-weight: 800; background: none; }

.sub_wrap ul.paging li.first a,
.sub_wrap ul.paging li.end a { background-position: center; }

.sub_wrap .question_wrap:has(.question_btn_wrap) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sub_wrap .my_cont_wrap .question_wrap:not(:has(.question_btn_wrap)) { display: block; }

.sub_wrap .question_wrap .question_btn_wrap { flex: 0 0 auto; }

.sub_wrap .my_cont_wrap .question_wrap { font-size: 13px; color: #666; margin-bottom: 20px; }

.sub_wrap .my_cont_wrap .question_wrap ul.ul_default { flex: 1; min-width: 0; }

.sub_wrap .my_cont_wrap tr.question { cursor: pointer; }

.sub_wrap .my_cont_wrap tr.question td.title {
  padding: 16px 8px;
  text-align: center;
  position: static;
}

.sub_wrap .my_cont_wrap tr.question td.title a { display: inline; width: auto; }

.sub_wrap .my_cont_wrap td.key_color { color: #159fda; font-weight: 700; }

.sub_wrap .my_cont_wrap tr.answer_end > td {
  padding: 22px 26px;
  text-align: left;
  background: #f6f7f9;
}

.sub_wrap .my_cont_wrap tr.answer_end dl {
  display: flex;
  gap: 14px;
  margin: 0;
}

.sub_wrap .my_cont_wrap tr.answer_end dl.ans { margin-top: 14px; }

.sub_wrap .my_cont_wrap tr.answer_end dt {
  flex: 0 0 24px;
  font-weight: 700;
  color: #333;
}

.sub_wrap .my_cont_wrap tr.answer_end dl.ans dt { color: #159fda; }

.sub_wrap .my_cont_wrap tr.answer_end dd {
  margin: 0;
  color: #555;
  line-height: 1.7;
  min-width: 0;
  word-break: break-word;
}

.sub_wrap .my_cont_wrap tr.none td { padding: 60px 0; color: #999; font-size: 14px; }
}

@media (max-width: 1023px) {

  .sub_wrap .sub_my {
    padding: 16px 16px 50px;
    display: flex;
    flex-direction: column;
  }

  .sub_wrap .sub_left_wrap { display: contents; }

  .sub_wrap .sub_my h1.sub_h1 {
    font-size: 20px;
    padding-bottom: 0;
    border-bottom: 0;
    margin-bottom: 16px;
  }

  .sub_wrap .my_cont_wrap { width: 100%; max-width: 100%; }

  /* the account drawer (chrome.js) carries this navigation below 1024: no tab strip */
  .sub_wrap .lnb_wrap { display: none; }

  .sub_wrap .question_wrap:has(.question_btn_wrap) { flex-direction: column; align-items: stretch; }

  .sub_wrap .question_wrap .question_btn_wrap { text-align: right; }

  .sub_wrap .my_cont_wrap table.tb_default2 { display: block; }

  .sub_wrap .my_cont_wrap table.tb_default2 thead { display: none; }

  .sub_wrap .my_cont_wrap table.tb_default2 tbody,
  .sub_wrap .my_cont_wrap table.tb_default2 tr.question,
  .sub_wrap .my_cont_wrap table.tb_default2 tr.none { display: block; width: 100%; }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question {
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
  }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question > td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    border: 0;
    padding: 7px 4px;
  }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question > td::before {
    color: #999;
    font-weight: 700;
    flex: 0 0 auto;
  }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question > td:nth-child(1)::before { content: "문의 유형"; }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question > td:nth-child(2)::before { content: "문의 제목"; }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question > td:nth-child(3)::before { content: "작성일"; }

  .sub_wrap .my_cont_wrap table.tb_default2 tr.question > td:nth-child(4)::before { content: "처리상태"; }

  /* tbody is display:block here, so a table-row lands in an anonymous table box
     that shrink-to-fits -- 420px inside a 448px card -- and takes no margin. The
     mockup's .mp-table gives every row width:100% and the same 12px rhythm. */
  .sub_wrap .my_cont_wrap tr.answer_end {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  .sub_wrap .my_cont_wrap tr.answer_end > td {
    display: block;
    padding: 16px 14px;
    border-radius: 8px;
  }

  .sub_wrap .my_cont_wrap tr.answer_end dl { gap: 10px; }

  .sub_wrap .my_cont_wrap tr.none td { display: block; text-align: center; }
}

@media (max-width: 1023px) {
/* 포인트 -- service/mypage/point/my_point.asp (+ my_point_charge.asp); mockup mypage.html#point.
No class of its own, so every rule anchors on the history table being the IMMEDIATE SIBLING of
.point_wrap (tb_default2 is shared with 5 pages here). 3 shapes: 7-col, 2-col, empty td[colspan]. */

/* --- 보유 포인트 box  (mockup .mp-point-top) ------------------------------ */

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) { padding: 20px 28px; }

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl dt,
.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl dd {
  font-size: 16px;
  font-weight: 800;
  color: #333;
}

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl dd em {
  margin-left: 9px;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  color: #888;
}

/* 유효기간별 포인트 확인 / 포인트 상세 내역 -- no mockup counterpart, so it borrows .mp-btn.line.
The button carries style="float:right;border-style:solid;padding:3px 25px": float is inert on a
flex item, and the padding is deliberately left un-overridden. */

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl > button {
  margin-left: auto;
  height: 40px;
  border-width: 1px;
  border-color: #ccc;
  border-radius: 4px;
  background: #fff;
}

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl > button:hover { border-color: #b9bec6; }

.sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl > button > a {
  font-size: 13.5px;
  font-weight: 700;
  color: #555;
}

/* --- history table  (mockup .mp-table) ----------------------------------- */

/* beats `.my_cont_wrap table.mt40 { margin-top: 22px !important }` above */

.sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2.mt40 { margin-top: 16px !important; }

/* mockup .mp-empty */

.sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td[colspan] {
  padding: 60px 8px;
  font-size: 14px;
  color: #999;
}

/* shape (b): 2 cells rendered against a 6-column <colgroup>, so the header band
stopped at 35% of the table width.  Dropping the colgroup lets the two real
columns share the row. */

.sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2:has(thead th:nth-child(2)):not(:has(thead th:nth-child(3))) colgroup { display: none; }

.sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 thead > tr:has(> th:nth-child(2)):not(:has(> th:nth-child(3))) > th,
.sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(2)):not(:has(> td:nth-child(3))) > td { width: 50%; }
}

@media (max-width: 1023px) {

  /* the box stacks: the toggle button drops under the figure */
  .sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) { padding: 18px 20px; }

  .sub_wrap .my_cont_wrap > .point_wrap:has(+ table.tb_default2) dl > button { margin-left: 0; }

  /* table -> one card per row, exactly like the mockup at <=1024.  The generic
  rule above already sets `table{display:block}` + `thead{display:none}`,
  which on its own would leave these rows unlabelled. */
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody,
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr,
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td { display: block; width: 100%; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr {
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
  }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 4px;
    text-align: left;
    border: 0;
  }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td::before {
    color: #999;
    font-weight: 700;
    flex: 0 0 auto;
  }

  /* 적립 / 사용 / 비고 are emitted as a literally empty <td>; a label with
  nothing after it is noise once the row is a card. */
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td:empty { display: none; }

  /* shape (a) -- 7 columns */
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(1)::before { content: "날짜"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(2)::before { content: "포인트 구분"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(3)::before { content: "적립 포인트"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(4)::before { content: "사용 포인트"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(5)::before { content: "잔여 포인트"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(6)::before { content: "유효 기간"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(7)) > td:nth-child(7)::before { content: "비고"; }

  /* shape (b) -- ?point_system=site, 2 columns */
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(2)):not(:has(> td:nth-child(3))) > td { width: 100%; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(2)):not(:has(> td:nth-child(3))) > td:nth-child(1)::before { content: "유효 기간"; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td:nth-child(2)):not(:has(> td:nth-child(3))) > td:nth-child(2)::before { content: "잔여포인트"; }

  /* shape (c) -- the "no points" row keeps the mockup's centred empty state */
  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr:has(> td[colspan]) { border: 0; padding: 0; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td[colspan] { display: block; text-align: center; }

  .sub_wrap .my_cont_wrap > .point_wrap + table.tb_default2 tbody > tr > td[colspan]::before { content: none; }
}

@media (max-width: 1023px) {
.layer_wrap .layer_content iframe { max-height: calc(100vh - 32px); }
}

@media (max-width: 767px) {
/* PageSetPoint emits up to ten numbers; they need a second row below 502px.
   A five-wide window around .active slides one step per Prev/Next click. The
   nth-last-child pairs clamp it so both ends still show five, not three. */

.sub_wrap ul.paging:where(:has(> li > a.active)) > li:where(:not(.first):not(.end)) {
  display: none;
}

.sub_wrap ul.paging > li:has(> a.active),
.sub_wrap ul.paging > li:has(+ li > a.active),
.sub_wrap ul.paging > li:has(+ li + li > a.active),
.sub_wrap ul.paging > li:has(> a.active) + li,
.sub_wrap ul.paging > li:has(> a.active) + li + li,
.sub_wrap ul.paging:has(> li:nth-child(2) > a.active) > li:nth-child(-n+6),
.sub_wrap ul.paging:has(> li:nth-child(3) > a.active) > li:nth-child(-n+6),
.sub_wrap ul.paging:has(> li:nth-last-child(2) > a.active) > li:nth-last-child(-n+6),
.sub_wrap ul.paging:has(> li:nth-last-child(3) > a.active) > li:nth-last-child(-n+6) {
  display: block;
}
}
