/* BASIC css start */
/* ========================================
   회원가입 약관동의
   - PC 1400px / 최소 1230px
   - 회원가입 영역 900px
======================================== */

#terms,
#terms * {
    box-sizing: border-box;
}

#terms {
    width: 900px;
    margin: 0 auto;
    padding: 50px 0 0;
    color: #111;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -1px;
}

#terms .page-body {
    width: 900px;
    margin: 0 auto;
    padding: 0;
}

#terms fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

#terms legend,
#terms caption,
#terms .dn {
    display: none !important;
}


/* 회원가입 상단 */
#terms .mk-join-head {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center;
}

#terms .mk-join-head .title {
    display: block;
    margin: 0;
    padding: 0;
    color: #111;
    font-size: 32px;
    line-height: 1.4;
    font-style: normal;
    font-weight: 700;
}


/* 진행 단계 */
#terms .mk-join-steps {
    display: flex;
    width: 100%;
    margin: 34px 0 0;
    padding: 0 40px;
    border: 0;
    list-style: none;
}

#terms .mk-join-steps li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

#terms .mk-join-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: 0;
    top: 20px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #e5e5e5;
}

#terms .mk-join-steps .step-num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    color: #999;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

#terms .mk-join-steps .step-name {
    display: block;
    margin-top: 10px;
    color: #999;
    font-size: 16px;
    line-height: 24px;
}

#terms .mk-join-steps li.is-active .step-num {
    border-color: #111;
    background: #111;
    color: #fff;
}

#terms .mk-join-steps li.is-active .step-name {
    color: #111;
    font-weight: 700;
}

#terms .mk-join-steps li.is-done .step-num {
    border-color: #555;
    background: #555;
    color: #fff;
}

#terms .mk-join-steps li.is-done .step-name {
    color: #555;
    font-weight: 600;
}

#terms .mk-join-steps li.is-done:not(:last-child)::after {
    background: #999;
}


/* 안내 */
#terms .terms-guide {
    margin: 36px 0 18px;
    padding: 0;
    color: #555;
    font-size: 17px;
    line-height: 26px;
}

#terms .new-privercy-contract {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* 전체 동의 */
#terms .mk-all-agree {
    margin-bottom: 18px;
}

#terms .btn-all-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 82px;
    padding: 16px 22px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    color: #111;
    text-decoration: none;
}

#terms .btn-all-check:hover {
    border-color: #aaa;
    background: #fafafa;
    color: #111;
    text-decoration: none;
}

#terms .mk-all-agree-text {
    min-width: 0;
    text-align: left;
}

#terms .mk-all-agree-text strong {
    display: block;
    color: #111;
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
}

#terms .mk-all-agree-text em {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 15px;
    line-height: 22px;
    font-style: normal;
}

#terms .mk-all-agree-control {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    margin-left: 30px;
}

#terms .mk-all-agree-control em {
    color: #333;
    font-size: 16px;
    line-height: 24px;
    font-style: normal;
    font-weight: 500;
}


/* 표시용 체크박스 공통 */
#terms .mk-check-ui,
#terms .mk-term-box {
    position: relative;
    display: block !important;
    flex: 0 0 22px;
    width: 22px !important;
    height: 22px !important;
    border: 1px solid #aaa !important;
    border-radius: 4px;
    background: #fff;
    visibility: visible !important;
}

#terms .btn-all-check.is-checked .mk-check-ui,
#terms .mk-term-agree.is-checked .mk-term-box {
    border-color: #111 !important;
    background: #111;
}

#terms .btn-all-check.is-checked .mk-check-ui::after,
#terms .mk-term-agree.is-checked .mk-term-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

#terms .btn-all-check.is-partial .mk-check-ui::after,
#terms .mk-term-agree.is-partial .mk-term-box::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
    border: 0;
    background: #555;
    transform: none;
}


/* 약관 카드 */
#terms .new-privercy-contract > h4.tit {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 72px;
    margin: 12px 0 0;
    padding: 0 22px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-size: 17px;
    line-height: 26px;
    font-weight: 700;
    text-align: left;
}

#terms .new-privercy-contract > h4.tit.mk-term-head {
    cursor: pointer;
}

#terms .new-privercy-contract > h4.tit.mk-term-head:hover,
#terms .new-privercy-contract > h4.tit.mk-term-head.is-open {
    border-color: #bbb;
}

#terms .new-privercy-contract > h4.tit.mk-term-head.is-open {
    background: #fafafa;
}


/* 화살표 */
#terms .mk-term-arrow {
    position: relative;
    top: -2px;
    display: block;
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-left: 11px;
    margin-right: auto;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

#terms .mk-term-head.is-open .mk-term-arrow {
    top: 3px;
    transform: rotate(225deg);
}


/* 카드 우측 동의 */
#terms .mk-term-agree,
#terms .mk-term-agree * {
    visibility: visible !important;
}

#terms .mk-term-agree {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin-left: auto;
    padding: 8px 0 8px 20px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #333;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

#terms .mk-term-agree:hover,
#terms .mk-term-agree:focus {
    outline: 0;
    color: #111;
}


/* 펼친 상세 */
#terms .mk-term-body {
    width: 100%;
}

#terms .privercy-contract.mk-term-body,
#terms table.mk-term-body {
    margin-top: 10px;
}


/* 이용약관 */
#terms .privercy-contract {
    clear: both;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#terms .privercy-contract textarea {
    display: block;
    width: 100% !important;
    height: 180px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: 0;
    background: #fafafa;
    color: #555;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: -0.5px;
    resize: none;
    white-space: pre-wrap;
    overflow-x: hidden;
    overflow-y: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 카드 우측 동의가 생성되면 기존 이용약관 체크는 중복 비노출 */
#terms #chk_cont1.mk-term-head + .privercy-contract .privercy-chk {
    display: none;
}

#terms .privercy-chk,
#terms .privercy-agree,
#terms .privercy-chk label,
#terms .privercy-agree label {
    color: #555;
    font-size: 15px;
    line-height: 24px;
}

#terms .privercy-chk,
#terms .privercy-agree {
    margin: 10px 0 0;
}


/* 개인정보 표 */
#terms .contract-tbl,
#terms .tbl {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

#terms .contract-tbl th,
#terms .contract-tbl td,
#terms .tbl th,
#terms .tbl td {
    height: auto;
    padding: 14px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 15px;
    line-height: 23px;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    word-break: keep-all;
    overflow-wrap: break-word;
}

#terms .contract-tbl th,
#terms .tbl th {
    background: #f7f7f7;
    font-weight: 700;
}

#terms .contract-tbl td div,
#terms .contract-tbl th div,
#terms .tbl td div,
#terms .tbl th div {
    color: inherit;
    font-size: 15px;
    line-height: 23px;
}

#terms .contract-tbl .p10,
#terms .tbl .p10 {
    margin: 0;
    padding: 0;
}

/* 표 내부 개별 체크박스 - 카드 체크박스와 동일한 디자인 */
#terms .contract-tbl tbody input[type="checkbox"],
#terms .tbl tbody input[type="checkbox"] {
    width:22px;
    height:22px;
    margin:0;
    border:1px solid #aaa;
    border-radius:4px;
    background:#fff;
    vertical-align:middle;
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    cursor:pointer;
}

#terms .contract-tbl tbody input[type="checkbox"]:checked,
#terms .tbl tbody input[type="checkbox"]:checked {
    border-color:#111;
    background-color:#111;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M6 11l3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:center;
}

/* 표 헤더의 원본 묶음 전체동의 체크는 DOM에 유지하고 시각적으로만 숨김 */
#terms .mk-original-master {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}


/* 개인정보 안내 */
#terms .privacy-noti {
    width: 100%;
    margin: 8px 2px 0;
    padding: 0;
    color: #666;
    font-size: 15px;
    line-height: 23px;
    word-break: keep-all;
}


/* 구형 약관 분기 최소 호환 */
#terms .new-privercy-contract h3 {
    margin: 28px 0 10px;
    color: #111;
    font-size: 18px;
    line-height: 27px;
    font-weight: 700;
}

#terms .new-privercy-contract h3.w-normal {
    font-weight: 400;
}

#terms .privercy-contract-tap {
    width: 100%;
    margin-top: 10px;
}

#terms .privercy-contract-tap ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

#terms .privercy-contract-tap li {
    flex: 1 1 0;
    list-style: none;
}

#terms .privercy-contract-tap li a {
    display: block;
    padding: 13px 8px;
    border: 1px solid #ddd;
    border-left: 0;
    background: #fafafa;
    color: #555;
    font-size: 15px;
    line-height: 23px;
    text-align: center;
    text-decoration: none;
}

#terms .privercy-contract-tap li:first-child a {
    border-left: 1px solid #ddd;
}

#terms .privercy-contract-tap li.sel a {
    background: #fff;
    color: #111;
    font-weight: 700;
}


/* 다음 버튼 */
#terms .btn-agree {
    width: 100%;
    margin: 30px 0 0;
}

#terms .btn-agree a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 62px;
    padding: 0 20px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
}

#terms .btn-agree a:hover {
    border-color: #333;
    background: #333;
    color: #fff;
    text-decoration: none;
}


/* 구형 하단 버튼 */
#terms .btn-foot {
    margin-top: 25px;
    text-align: center;
    font-size: 0;
    line-height: 0;
}

#terms .btn-foot a {
    display: inline-block;
    margin: 0 5px;
}
/* BASIC css end */

