/* 공통 적용 */

/* 변수 지정 */
:root {
    --main-color: #00de5a;
    --main-black-color:#222;
}

.-m-color{color: var(--main-color);}

.wh_bg{background-color: #fff;}
.mt20{margin-top: 28px;}

.tit.bold{font-weight: 700;}

.float_r{float: right; text-align-last: right;}


/* 네비게이션 메뉴 */
/* 네비게이션 메뉴 - 차후 공통으로 뺄 껏 */
.nav {
    width: 100%;
    height: 74px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 999;

    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 8px;
    box-shadow: 0px 0px 32px rgba(0, 0, 0, 0.08);
}

.nav a {
    display: block;
    align-items: center;
    width: 80px;
    text-align: center;
}

.nav a .img svg {
    color: #888;
}

.nav a.active .img svg,
.nav a.active p {
    color: #00DE5A;
}

.nav a .img {
    width: 20px;
    margin: 0 auto;
}

.nav a p {
    font-size: 12px;
    font-weight: 500;

    color: #888;
    white-space: normal;
}

/* 마이페이지/포인트충전 포인트박스 */
.mypoint {
    width: 100%;
    height: auto;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .8);
    border-radius: 16px;
}

.mypoint p {
    font-size: 12px;
    font-weight: 400;
    color: #445544;
    line-height: 1.4;
}

.mypoint .user {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mypoint .user .medium_txt {
    font-size: 16px;
    font-weight: 700;
    margin-top: 7px;
    line-height: 140%;
}

.mypoint .user .large_txt {
    font-size: 24px;
    font-weight: 700;
    line-height: 140%;
}

.mypoint .user .large_txt.before{font-size: 18px; margin-top: 2px;}

@media (min-width : 400px){
    .br_control{
        display: none;
    }
}

.mypoint .user.before {
    /* display: flex; */
    display: flex;
}

.mypoint .user.after {
    display: flex;
}

.mypoint .btn {
    padding: 6px 12px;
    background-color: #00DE5A;
    color: #222;
    border-radius: 32px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width : 355px) {
    .mypoint .user .medium_txt {
        font-size: 13px;
        font-weight: 700;
        margin-top: 7px;
        line-height: 140%;
    }
}

.mypoint.charge{
    margin-top: 8px;
}


/* 서브 페이지 헤더 */
.header_sub {
    width: 100%;
    /* height: 44px; */
    position: fixed;
    top: 20px;
    padding: 0px 20px;
    margin-top: 0;
    z-index: 9999;
}

.header_sub .appbar{
    height: 44px;
    width: 100%;
    position: relative;
}

.header_sub .btn_back {
    width: 44px;
    position: absolute;
    left: -16px;
    top: 0;
    bottom: 0;
}

.header_sub .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 600;
}

/* 서브페이지 공통 배경 적용 */
.subpage {
    width: 100%;
    height: 100%;
    background-color: #f8f8f8;
    padding-top: 60px;
    overflow: hidden;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.subpage::-webkit-scrollbar{display: none;}

/* 포인트박스 표시 (쿠폰스토어, 페이교환소)*/
.pointbox {
    width: 100%;
    height: 54px;
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin-top: 20px;
}

.point_have {
    display: flex;
    flex: 1;
    justify-content: space-between;
    height: 100%;
    align-items: center;
    border: 1px solid var(--main-color);
    background: #fff;
    border-radius: 8px;
    padding: 0px 16px 0px 12px;
}

.point_have .sub_tit {
    font-size: 12px;
    font-weight: 500;
}

.point_have .point_txt {
    font-size: 18px;
    font-weight: 800;
}

.pointbox .btn {
    background-color: var(--main-color);
    width:76px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1.2;
    text-align: center;
    align-items: center;
    color: #222;
}

/* close btn */
.close-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.close-btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #333;
    /* 선 색상 */
    border-radius: 2px;
    transform-origin: center;
}

.close-btn.white span{background-color: #fff;}

.close-btn span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 버튼스타일 0908 */
.gr_bg{background-color: var(--main-color);}
.white_bg{background-color: #fff;}
.gray_bg{background-color: #ebebeb !important;}
.btn_border_gr{border: 1px solid var(--main-color);}
.btn_round{border-radius: 24px; padding: 8px 14px; text-align: center;}
.btn_dd{font-size: 12px; text-align: center; width: 100%;}



#modal_auth{
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;

    z-index: 10000 ;
}

#modal_auth #iframe_auth{
    position: relative;
    z-index: 10000;
}

.close_auth{
    pointer-events: auto;

    position: fixed;
    top: 10px; right: 10px;
    z-index: 20000;
    width: 60px; height: 60px;
    background: url(/assets/img/icon/i_auth_close_btn.svg) no-repeat center center / 32px auto;
    border: 1px solid red;
    display: none;

    /* 모바일 터치 최적화 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;

    /* 하드웨어 가속 강화 */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* 프로그레스- 로딩바 관련 */
.load {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99999999;
}

/* 스피너 기본 스타일 */
.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(23, 23, 23, 0.3);
    /* 바깥 원 */
    border-top-color: var(--main-color);
    /* 회전 표시(색) */
    animation: spin 0.7s linear infinite;
    box-sizing: border-box;
}



@keyframes spin {
    0%   { transform: rotate(0deg); }
    /* 25%  { transform: rotate(120deg); }
    50%  { transform: rotate(240deg); }
    75%  { transform: rotate(300deg); } */
    100% { transform: rotate(360deg); }
}


#modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    background: #fff;
    overflow: hidden;
}

@media (max-width :782px) {
    /* 모달 관련 */
    #modal{
        width: 100vw;
        height: 100%;

        margin: 0; padding: 0; box-sizing: border-box;
        overflow: hidden;
    }    
}