/*전 페이지 공통*/
input, textarea{
    cursor: text;
    resize: none;
}
select,
select option,
button,
button *,
a img,
a p,
a {
    cursor: pointer;
}
button, img{
    display: block;
}
button[disabled]{
    cursor: default;
    background-color: #E7E7E7!important;
    color: #686868;
    font-weight: normal;
}
input, textarea, button,
select, a, label{
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
select::-ms-expand { 
	display: none;
}
select {
    -o-appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
/* input search */
input::-ms-clear,
input::-ms-reveal{
	display:none;width:0;height:0;
}
input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration{
	-webkit-appearance: none;
    /* background: url('/assets/img/icon/delete_icon_wh.svg') center center no-repeat; */
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background-color: #C8C8C8;
}
input::-webkit-calendar-picker-indicator {
    display: none !important;
}
input[type="radio"],
input[type="checkbox"] {
    -webkit-appearance: none; /* 웹킷 브라우저에서 기본 스타일 제거*/
    -moz-appearance: none; /* 모질라 브라우저에서 기본 스타일 제거*/ 
    appearance: none; /*기본 브라우저에서 기본 스타일 제거*/
}
body {color: #191919;}
* {box-sizing: border-box;}
input::placeholder {color: #999;}

button {
    background-color: transparent;
}

/* 입력창 키보드 대응용 */
input, textarea {
    font-size: 16px; /* iOS 확대 방지 */
}

body {
    background-color: #FAFAF9;
}


:root {
    /* margin/ pag/ padding */
    --space-1: 4px;
    --space-1-5: 6px;
    --space-2: 8px;
    --space-2-5: 10px;
    --space-3: 12px;
    --space-3-5: 14px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* color */
    --color-black: #191919;
    --color-white: #ffffff;

    --color-deep-brown: #3a332c;

    --color-danger: #FA4646;
    --color-success: #5AC257;

    --color-primary: #FABF24;
    --color-secondary: #FFFBEB;
    --color-orange-50: #FCCA59;
    --color-orange-100: #FAAF00;
    --color-orange-150: #F59E0C;
    --color-orange-200: #DB7D12;
    --color-blue: #1077FA;

    --color-primary-hover: #F1B017;

    --color-border: #FDE68A;
    --color-border-hover: #FFF4C9;

    --shadow-black-md: 0px 4px 10px rgba(0,0,0, 0.05);
    --shadow-black-lg: 0px 4px 15px rgba(0,0,0, 0.15);

    --shadow-orange-100: 0px 2px 20px rgba(250, 191, 36, 0.15);
    --shadow-orange-200: 0px 2px 20px rgba(216, 178, 25, 0.1);


    /* 50,100,200,300,400,500,600,700 기본 */
    --color-gray-50: #fafafa;
    --color-gray-60: #f5f5f5;
    --color-gray-80: #F8F8F8; /* badge bg */
    --color-gray-100: #eeeeee;
    --color-gray-150: #e4e4e4;
    --color-gray-200: #cccccc;
    --color-gray-250: #CFCFCF;
    --color-gray-300: #ABABAB;
    --color-gray-350: #A8A29E; /* badge border/ text */
    --color-gray-400: #888888;
    --color-gray-500: #767676;
    --color-gray-550: #666666;
    --color-gray-600: #545454;
    --color-gray-700: #444444;


    /* iamge */
    --img-result: url('/assets/img/ex_img01.png');

    --img-logo: url('/assets/img/Logo02.svg');
    --icon-search: url('/assets/img/ico_search.svg');
    --icon-rocket: url('/assets/img/ico_rocket.svg');
    --icon-shoppingCart: url('/assets/img/ico_shopping-cart.svg');
    --icon-sparkles: url('/assets/img/ico_sparkles.svg');
    --icon-triangle: url('/assets/img/icon_triangle.svg');
    --icon-arrowup: url('/assets/img/ico_arrowup.svg');
    --icon-arrowLeft: url('/assets/img/ico_arrowLeft.svg');
    --icon-wallet: url('/assets/img/ico_wallet.svg');
    --icon-clock: url('/assets/img/ico_clock.svg');
    --icon-calendar: url('/assets/img/ico_calendar.svg');
    --icon-selectArrow: url('/assets/img/ico_selectArrow.svg');
    --icon-shoppingBag: url('/assets/img/ico_shopping-bag.svg');
    --icon-ticket: url('/assets/img/ico_ticket-check.svg');
    --icon-clockRed: url('/assets/img/ico_clock-red.svg');
    --icon-star: url('/assets/img/ico_star.svg');
    --icon-close: url('/assets/img/ico_close.svg');
}


/* align */
.is-hidden {display: none;}
.block {display: block;}
.grid {display: grid;}
.flex {display: flex;}
.flex-wrap {flex-wrap: wrap;}
.flex-nowrap {flex-wrap: nowrap;}

.justify-start {justify-content: flex-start;}
.justify-center {justify-content: center;}
.justify-end {justify-content: flex-end;}
.justify-between {justify-content: space-between;}
.justify-around {justify-content: space-around;}

.items-start {align-items: flex-start;}
.items-center {align-items: center;}
.items-end {align-items: flex-end;}
.items-stretch {align-items: stretch;}

.flex-col {flex-direction: column;}

/* position */
.relative {position: relative;}
.absolute {position: absolute;}

.overflow-hidden {overflow: hidden;}

/* background color */
.bg-primary {background-color: var(--color-primary);}
.bg-secondary {background-color: var(--color-secondary);}
.bg-white {background-color: var(--color-white);}
.bg-gray-100 {background-color: var(--color-gray-100);}

/* font color */
.text-black {color: var(--color-black);}
.text-primary {color: var(--color-primary);}
.text-danger {color: var(--color-danger);}
.text-success {color: var(--color-success);}
.text-white {color: var(--color-white);}
.text-blue {color: var(--color-blue);}
.text-orange-200 {color: var(--color-orange-200);}
.text-gray-200 {color: var(--color-gray-200);}
.text-gray-250 {color: var(--color-gray-250);}
.text-gray-300 {color: var(--color-gray-300);}
.text-gray-400 {color: var(--color-gray-400);}
.text-gray-500 {color: var(--color-gray-500);}
.text-gray-550 {color: var(--color-gray-550);}
.text-gray-600 {color: var(--color-gray-600);}
.text-gray-700 {color: var(--color-gray-700);}
.text-orange-100 {color: var(--color-orange-100);}

/* font weight  */
.text-light {font-weight: 400;}
.text-medium {font-weight: 500;}
.text-semibold {font-weight: 600;}
.text-bold {font-weight: 700;}
.text-extra {font-weight: 800;}

/* font align */
.text-center {text-align: center;}
.text-right {text-align: right;}
.text-left {text-align: left;}

/* border line */
.border {border: 1px solid;}
.border-b {border-bottom: 1px solid;}
/* border color */
.border-color-orange {border-color: var(--color-border);}
.border-gray-100 {border-color: var(--color-gray-100);}
.border-gray-60 {border-color: var(--color-gray-60);}

/* border radius */
.radius-sm {border-radius: 6px;}
.radius-md {border-radius: 8px;}
.radius-lg {border-radius: 10px;}
.radius-xl {border-radius: 12px;}
.radius-2xl {border-radius: 14px;}
.radius-3xl {border-radius: 16px;}
.radius-full {border-radius: 3333px;}


/* badge */
.badge { 
    font-size: 12px;
    padding: 3px 8px;
    min-width: 40px;
    height: 22px;
    border-radius: 100px;
}

.badge-gray {
    border: 1px solid var(--color-gray-350);
    color: var(--color-gray-350);
    background-color: var(--color-gray-80);
}

.badge-yellow {
    border: 1px solid var(--color-border);
    color: var(--color-orange-200);
    background-color: var(--color-secondary);
}


.main-wrap .bg-img {
    display: block;
    position: fixed;
    width: 100%;
    height: 100dvh;
    background: url('/assets/img/bg_icon.svg') no-repeat center;
    background-size: cover;
    top: 0;
    left: 0;
    z-index: -1;
}


.input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid var(--color-gray-150);
    border-radius: var(--space-1-5);
}

.input--focusable:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-orange-100);
}

.btn {
    display: block;
    width: 100%;
    height: 44px;
    border-radius: var(--space-1-5);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-orange {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-orange:hover {
    background-color: var(--color-primary-hover);
}

.btn-gray {
    background-color: var(--color-gray-60);
    color: var(--color-gray-600);
}

.btn:focus,
.btn:active {
    box-shadow: inset 4px 4px 2px rgba(0,0,0,0.1);
}

.btn-border {
    background-color: var(--color-secondary);
    color: var(--color-orange-200);
    border: 1px solid var(--color-orange-200);
    height: 32px;
    padding: 0 16px;
    border-radius: 333px;
    transition: all 0.3s;
}

.btn-border:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* icon 기본 사이즈 */
.icon {
    display: block;
    width: 26px;
    height: 26px;
    background-repeat: no-repeat;
    background-size: cover;
}

.icon-search {
    background-image: var(--icon-search);
}



/* header -------------------- */
header {
    padding-top: env(safe-area-inset-top);
    width: 100%;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

header .header-inner {
    max-width: 768px;
    width: 100%;
    padding: 0 16px 0 14px;
    height: 56px;
    margin: 0 auto;
}

header h2.logo {
    display: block;
    width: 100px;
    height: 18px;
    background: var(--img-logo) no-repeat;
    background-size: cover;
    cursor: pointer;
}

header .header-list {
    margin: 0 0 0 auto;
    gap: 12px;
    font-size: 14px;
}

header .header-list li.display-flex {
    font-size: 16px;
}

header .header-list li:nth-child(1):after {
    content: '';
    display: block;
    width: 1px;
    height: 10px;
    background-color: var(--color-gray-100);
    margin-left: 12px;
}




/* footer -------------------- */
footer {
    background-color: var(--color-deep-brown);
    padding: 38px 0 30px;
    font-size: 12px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

footer.is-slide-down {
    transform: translateY(10px);
    opacity: 0;
}

footer h2 {
    font-size: 14px;
    margin-bottom: 18px;
}

footer .footer-info {
    padding: 0 16px;
}

footer .footer-info .list-item {
    gap: 10px;
    margin-bottom: 8px;
}

footer .footer-info .list-item div:nth-of-type(1)::after {
    content: '';
    clear: both;
    display: block;
    width: 1px;
    height: 10px;
    background-color: var(--color-gray-100);
    margin: 0 0 0 10px;
}

footer .footer-info .list-item div {
    gap: 5px;
}

footer .footer-info .policy {
    margin: 40px 0;
    font-size: 13px;
    text-decoration: underline;
    gap: 26px;
}





/* 공통 -------------------- */
.section {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    min-height: 98dvh;
    height: 100%;
    position: relative;
}

/* top button */
.top-btn {
    position: sticky;
    bottom: 20px;
    right: 8px;
    margin: 0 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 444px;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.top-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.top-btn span.icon {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    background-image: var(--icon-arrowup);
}


/* signup checkbox */
.checkbox input[type="checkbox"] {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #AEAEAE;
    cursor: pointer;
    margin-right: 8px;
}

.checkbox input[type="checkbox"]:checked {
    background: url('/assets/img/ico_check.png') no-repeat;
    background-position: center;
    background-color: #FAAF00;
    border: none;
}


/* select */
.select-box {
    border: 1px solid #D2D2D2;
    background-color: #fff;
    border-radius: 6px;
    position: relative;
    width: 120px;
    height: 44px;
    overflow: hidden;
}

.select-box img {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.select-box select {
    width: 100%;
    height: 100%;
    padding: 0 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #191919;
    background-color: transparent;
}


/* modal popup ----------------- */
.popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 30;
}

.modal-popup .popup-wrap,
.terms-service .popup-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 52px 20px 16px 20px;
    width: calc(100% - 40px);
    max-width: 380px;
    border-radius: 20px;
    text-align: center;
    z-index: 30;
}

.modal-popup .popup-wrap .main-text {
    font-size: 18px;
    color: #191919;
    font-weight: 700;
}

.modal-popup .popup-wrap .sub-text {
    font-size: 15px;
    color: #888888;
    margin-top: 6px;
}

.modal-popup .popup-wrap .btn-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 35px;
}

.modal-popup .popup-wrap button {
    display: block;
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.modal-popup#cancel button.register-btn {
    background-color: var(--color-white);
    border: 1px solid var(--color-danger);
    color: var(--color-danger);
    transition: background-color 0.3s;
}
.modal-popup#cancel button.register-btn:hover {
    background-color: var(--color-gray-80);
}


/* 약관 */
.terms-service {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.terms-service.open {
    opacity: 1;
    visibility: visible;
}
.terms-service .popup-wrap {
    max-width: 600px;
    padding: 0;
    border-radius: 16px;
    transform: translate(-50%, 100vh);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.terms-service.open .popup-wrap {
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .terms-service .popup-wrap {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        top: auto;
        bottom: 0;
        transform: translate(-50%, 100%);
    }
    .terms-service.open .popup-wrap {
        transform: translate(-50%, 0);
    }
}
.terms-service .popup-wrap .terms-header {
    padding: 0 16px 0 20px;
    height: 50px;
    border-color: var(--color-gray-100);
}
.terms-service .popup-wrap .terms-header h3 {
    font-weight: 600;
    font-size: 16px;
    line-height: 50px;
}
.terms-service .popup-wrap .terms-header button {
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
}

.terms-service .popup-wrap .terms-header span.icon {
    background-image: var(--icon-close);
}

.terms-service .popup-wrap .terms-content {
    padding: 20px;
    max-height: 80dvh;
    overflow-y: auto;
    font-size: 13px;
}



/* toast popup */
#toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    display: none;
    z-index: 31;
}



/* 404 error -------------------- */
.error {font-size: 15px;}
.error .text-01 {font-size: 30px;}
.error .text-02 {
    font-size: 16px;
    margin-bottom: 16px;
}
.error .text-02 img {margin: 16px auto 6px;}
.error a {
    display: block;
    line-height: 48px;
    margin-top: 30px;
}



@media (max-width: 600px) {
    .input, .btn {
        font-size: 14px;
    }

    footer .footer-info .list-item:nth-child(1) {
        flex-wrap: wrap;
    }

}
