@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/******* 로컬 폴더에서만 적용*******/
html,
body {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
* {
    -webkit-user-select: none;
}
.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
#app_wrapper {
    position: relative;
}
/******* 로컬 폴더에서만 적용*******/

:root {
    --color-primary-myp: #5700ed;
}

/* layout */
html,
body {
    height: 100%;
}
footer {
    padding-bottom: 11rem;
}
#app_wrapper main {
    padding-bottom: 7.8rem;
}

/* header */
header .container {
    position: relative;
    padding-inline: 1.6rem;
    height: 5.4rem;
}
header .container a {
    width: 2.4rem;
    height: 2.4rem;
}
header .container h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-700);
    font-size: 1.8rem;
    line-height: 1.4;
}

/* 라운드 탭 */
.myp_round_tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    height: 4.3rem;
}
.myp_round_tab a,
.myp_round_tab button {
    padding: 0.8rem 1.4rem;
    color: #000;
    font-family: var(--font-500);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.015rem;
    border-radius: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #fff;
}
.myp_round_tab a.active,
.myp_round_tab button.active {
    color: #fff;
    border: 1px solid #5d00ff;
    background-color: #5d00ff;
}

/* 스퀘어 탭 */
.myp_sqeure_tab {
    position: sticky;
    top: 5.4rem;
    display: flex;
    z-index: 1;
}
.myp_sqeure_tab a,
.myp_sqeure_tab button {
    position: relative;
    flex: 1;
    padding: 1.6rem;
    color: rgba(0, 0, 0, 0.4);
    font-family: var(--font-700);
    font-size: 1.8rem;
    line-height: 1.4;
    letter-spacing: -0.018rem;
    text-align: center;
    background-color: #fff;
}
.myp_sqeure_tab a:before,
.myp_sqeure_tab button:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.1rem;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.08);
}
.myp_sqeure_tab a.active,
.myp_sqeure_tab button.active {
    color: #000;
}
.myp_sqeure_tab a.active:before,
.myp_sqeure_tab button.active:before {
    height: 0.2rem;
    background-color: #000;
}

/* 페이지네이션 */
.myp_pagination {
    display: flex;
    justify-content: space-between;
}
.myp_pagination .page_preview,
.myp_pagination .page_next {
    width: 4rem;
    height: 4rem;
    border-radius: 1.2rem;
    font-size: 0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2rem;
}
.myp_pagination .page_preview {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cg opacity='0.4'%3E%3Cpath d='M13 16L7.21213 10.2121C7.09497 10.095 7.09497 9.90503 7.21213 9.78787L13 4' stroke='black' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
.myp_pagination .page_next {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.4'%3E%3Cpath d='M7 16L12.7879 10.2121C12.905 10.095 12.905 9.90503 12.7879 9.78787L7 4' stroke='black' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
.myp_pagination .page_num_list {
    display: flex;
    gap: 0.8rem;
}
.myp_pagination .page_num_list .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: #000;
    font-family: var(--font-700);
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.014rem;
    border-radius: 1.2rem;
    background-color: #fff;
}
.myp_pagination .page_num_list .num.active {
    color: #fff;
    background-color: #5d00ff;
}

/* 플로팅 버튼 */
.myp_floating_btnWrap {
    position: fixed;
    bottom: 9.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 39.3rem;
    padding: 0 1.6rem;
    z-index: 1;
}
.myp_floating_btn {
    padding: 1.2rem 1.6rem;
    color: #fff;
    font-family: var(--font-700);
    font-size: 1.4rem;
    line-height: 1.4;
    letter-spacing: -0.014rem;
    border-radius: 3rem;
    background-color: #5d00ff;
    box-shadow: 0 4px 12px 0 rgba(93, 0, 255, 0.24);
}

/* 상세페이지 */
.myp_detail_container {
    padding: 2.4rem 1.6rem 4rem;
}
.myp_detail_wrap {
    border-top: 2px solid #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.myp_detail_wrap:has(.myp_detail_answer) {
    border-bottom: none;
}
.myp_detail_header {
    padding: 2.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.myp_detail_header .sub_title {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 3rem;
    border: 1px solid #777;
    color: #777;
    font-family: var(--font-400);
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: -0.012rem;
}
.myp_detail_header .title {
    margin: 1.2rem 0;
    font-family: var(--font-700);
    font-size: 1.8rem;
    line-height: 1.4;
    letter-spacing: -0.018rem;
}
.myp_detail_header .date {
    color: rgba(0, 0, 0, 0.4);
    font-family: var(--font-400);
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: -0.012rem;
}
.myp_detail_body {
    padding: 2.4rem 0;
}
.myp_detail_body p {
    color: rgba(0, 0, 0, 0.8);
    font-family: var(--font-400);
    font-size: 1.4rem;
    line-height: 1.4;
    letter-spacing: -0.014rem;
}

/* 문의 등록 완료 팝업 */
.myp_complete_pop {
    display: none;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 50%;
    max-width: 39.3rem;
    width: 100%;
    height: 100vh;
    transform: translateX(-50%);
    z-index: 100;
    padding: 0 1.6rem;
}
.myp_complete_pop.active {
    display: flex;
}
.myp_complete_pop_dimm {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    height: 100%;
    width: 100%;
    z-index: -1;
}
.myp_complete_wrap {
    position: relative;
    border-radius: 1.2rem;
    background-color: #fff;
    padding: 2.4rem;
}
.myp_complete_wrap .desc {
    color: rgba(0, 0, 0, 0.8);
    text-align: center;
    font-family: var(--font-500);
    font-size: 1.6rem;
    line-height: 1.4;
    letter-spacing: -0.016rem;
    margin-bottom: 2.4rem;
}
.myp_complete_wrap .myp_button_wrap {
    justify-content: center;
}
.myp_complete_wrap .myp_button {
    width: 16rem;
    flex: 0 0 auto;
}

/* 레어이 팝업 */
.myp_layer_pop {
    position: fixed;
    top: 0;
    left: 50%;
    max-width: 39.3rem;
    display: none;
    width: 100%;
    height: 100vh;
    transform: translateX(-50%);
    z-index: 100;
}
.myp_layer_pop.active {
    display: block;
}
.myp_layer_wrap {
    overflow: hidden;
    position: relative;
    height: 100vh;
    padding: 6rem 2.4rem 2.4rem;
    background-color: #fff;
}
.myp_layer_header {
    display: flex;
    align-items: center;
    padding: 2.4rem 2.4rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.myp_layer_header .btn_layer_closed {
    width: 2.4rem;
    height: 2.4rem;
    margin-left: auto;
    font-size: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 5L19 19' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M19 5L5 19' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.myp_layer_title {
    color: #000;
    font-size: 1.6rem;
    font-family: var(--font-700);
    line-height: 1;
    letter-spacing: -0.016rem;
}
.myp_layer_inner {
    overflow-y: auto;
    scrollbar-width: none;
    height: 100%;
}
