#content { max-width: 760px; margin: 0 auto; background: #fff; padding: 0 0 40px; overflow: visible; min-height: 0; box-sizing: border-box; }
#content:has(.legacy-agree),
#content:has(.legacy-join) { max-width: 980px; padding-top: 8px; }
#content:has(.legacy-join) form { display: block; }
#content .legacy-join .join-err { margin: 12px 0; font-weight: 700; }
#content .legacy-agree form { display: block; }
#content .legacy-agree .agree_info img { width: 100%; height: auto; display: block; }
#content .legacy-agree .agree_01_text,
#content .legacy-agree .agree_02_text,
#content .legacy-agree .agree_03_text {
  max-height: 220px; overflow-y: auto; border: 1px solid #ddd; padding: 12px; background: #fafafa;
  font-size: 13px; line-height: 1.5;
}
#content .legacy-agree .agree_btn_wrap { margin: 24px 0 40px; text-align: center; }
#content .legacy-agree button.agree-submit-yes {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
}
#content img { max-width: 100%; height: auto; }
#content h1 { margin: 0 0 12px; font-size: 22px; }
#content form { display: grid; gap: 10px; }
#content:has(.page-map) form { display: block; }
#content label { display: grid; gap: 4px; font-weight: 700; }
#content input, #content textarea { font: inherit; border: 1px solid #eadfd6; border-radius: 8px; padding: 10px; }
#content textarea { min-height: 120px; resize: vertical; }
#content button.btn, #content .btn {
  background: #ff949e; color: #fff; border: 0; border-radius: 8px;
  padding: 10px 14px; font-weight: 700; cursor: pointer; display: inline-block; text-align: center;
}
#content .err { color: #b42318; }
#content table { width: 100%; border-collapse: collapse; background: #fff; }
#content th, #content td { border-bottom: 1px solid #eee; padding: 8px; text-align: left; vertical-align: top; }
#content .vou_wrap { background: #ffeee9; margin: 0; padding-bottom: 24px; }
#content .vou_goodslist_wrap { text-align: center; }
#content .vou_goods {
  display: inline-block; width: 31.5%; background: #fff; border-radius: 15px;
  border: 1px solid #ffd4df; padding: 2%; margin: 0 0.3% 12px; box-sizing: border-box; vertical-align: top;
}
#content .vou_goods img { width: 100%; }
#content .vou_goods_cate { font-size: 0.9rem; color: #8e8e8e; text-align: left; }
#content .vou_goods_title { height: 45px; overflow: hidden; text-align: left; }
#content .vou_goods_price { color: #fe0000; font-weight: 700; text-align: left; }
#content .vou_goods_ori_price { color: #8e8e8e; text-decoration: line-through; text-align: left; }
#content:has(.legacy-login) { max-width: 760px; }
#content:has(.legacy-login) form { display: block; }
#content:has(.legacy-login) input { border-radius: 8px; }
#content .member-check { display: block; margin: 8px 0; font-weight: 600; }
#content .member-note { color: #666; font-size: 0.9rem; }
/* join.asp: colgroup 고정폭·이메일+생년월일 1행 — local 기본 table/label/input 스타일 제외 */
#content .legacy-join table.join_write {
  table-layout: fixed;
  width: 100%;
  max-width: 936px;
}
#content .legacy-join table.join_write th,
#content .legacy-join table.join_write td {
  border-bottom: 1px solid #e6e6e6;
  padding: 8px 6px;
  vertical-align: middle;
  white-space: nowrap;
}
#content .legacy-join table.join_write tbody tr:last-child th,
#content .legacy-join table.join_write tbody tr:last-child td {
  border-bottom: 1px solid #e6e6e6;
}
#content .legacy-join table.join_write th {
  width: 95px;
  max-width: 95px;
  background: transparent;
  font-weight: 700;
  text-align: left;
}
#content .legacy-join table.join_write td[colspan="3"],
#content .legacy-join table.join_write td[colspan="5"] {
  white-space: normal;
}
#content .legacy-join table.join_write label {
  display: inline;
  font-weight: inherit;
  gap: unset;
}
#content .legacy-join table.join_write input,
#content .legacy-join table.join_write select {
  box-sizing: content-box;
  border-radius: 0;
  padding: 2px 4px;
  max-width: none;
  vertical-align: middle;
}
#content .legacy-join table.join_write td[colspan="3"] input,
#content .legacy-join table.join_write td[colspan="3"] select {
  display: inline-block;
}
#content .ok-msg { color: #0a7; font-weight: 700; margin-left: 8px; }
#content:has(.legacy-asp) { max-width: 980px; }
#content .legacy-asp.board-legacy .board_wrap { display: block; width: 100%; margin: 12px 0 24px; }
#content .legacy-asp.board-legacy table.board_list01 { display: table; width: 100%; }
#content .legacy-join-complete { max-width: 100%; }
#content .legacy-asp { font-size: 13px; }
#content .legacy-asp form { display: block; }
/* 게시판 목록: 작성일·조회 등이 두 줄로 깨지지 않게 */
#content .legacy-asp table.board_list01,
#content .board_wrap table.board_list01 {
  table-layout: fixed;
  width: 100%;
  font-size: 12px;
}
#content .legacy-asp table.board_list01 th,
#content .legacy-asp table.board_list01 td,
#content .board_wrap table.board_list01 th,
#content .board_wrap table.board_list01 td {
  padding: 6px 3px;
  line-height: 1.3;
  vertical-align: middle;
}
#content .legacy-asp table.board_list01 th.fir,
#content .legacy-asp table.board_list01 td.fir {
  width: 52px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}
#content .legacy-asp table.board_list01 th:nth-child(3),
#content .legacy-asp table.board_list01 td:nth-child(3) {
  width: 72px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#content .legacy-asp table.board_list01 th:nth-child(4),
#content .legacy-asp table.board_list01 td:nth-child(4) {
  width: 108px;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
#content .legacy-asp table.board_list01 th:nth-child(5),
#content .legacy-asp table.board_list01 td:nth-child(5),
#content .legacy-asp table.board_list01 th:nth-child(6),
#content .legacy-asp table.board_list01 td:nth-child(6) {
  width: 40px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}
#content .legacy-asp table.board_list01 td.al_l {
  white-space: normal;
  word-break: break-word;
}
#content .proto-md { white-space: pre-wrap; font-size: 12px; max-height: 70vh; overflow: auto; background: #f8f8f8; padding: 12px; border-radius: 8px; }
#content .proto-stub-note { margin-top: 16px; color: #666; }

/* 태아보험 상담 (/counsel — #inha_wrap2) */
#content:has(#inha_wrap2) {
  max-width: 980px !important;
  background: transparent !important;
  overflow-x: visible;
}
#content:has(#inha_wrap2) form {
  display: block;
}
#content:has(#inha_wrap2) table.inha_tbl,
#content:has(#inha_wrap2) table.inha_tbl tr,
#content:has(#inha_wrap2) table.inha_tbl th,
#content:has(#inha_wrap2) table.inha_tbl td {
  background: transparent !important;
  border: none;
  border-bottom: none;
  padding: 4px 3px;
  vertical-align: middle;
}
#content:has(#inha_wrap2) table.inha_tbl {
  table-layout: fixed;
  width: 100%;
  max-width: 810px;
  border-collapse: collapse;
}
#content:has(#inha_wrap2) table.inha_tbl .td_tit {
  width: 4.8em;
  white-space: nowrap;
  font-weight: 700;
}
#content:has(#inha_wrap2) table.inha_tbl input[type="text"],
#content:has(#inha_wrap2) table.inha_tbl input[type="number"],
#content:has(#inha_wrap2) table.inha_tbl input[type="email"],
#content:has(#inha_wrap2) table.inha_tbl textarea {
  background: #fff !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 8px;
}
#content:has(#inha_wrap2) table.inha_tbl textarea {
  min-height: 120px;
  resize: vertical;
}
#content:has(#inha_wrap2) label {
  display: inline;
  font-weight: inherit;
}
