a{text-decoration: none;}
*{box-sizing: border-box;margin: 0;padding: 0;}
ul,ol,li{margin: 0;padding: 0;list-style: none;}
button{font-size: 14px; cursor: pointer; font-family: 'Pretendard';background-color: transparent;border: 0;}
body{height: 100%; 	font-family: 'Pretendard';-ms-overflow-style: none;}

input{font-family: 'Pretendard';outline: none;}
html, body {
	overscroll-behavior:none; 
    background-color: #fff;
}

html{height: 100%;}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GMarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* 
-색상표-
#26426C
#607696
#8A9BB0
#D0D6DE
#F6F6F6

-경고색상-
#FFC107
*/

.popup-wrap{ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5);z-index: 9}
.popup-inner{position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 380px;background-color: #fff;border-radius: 12px;padding: 16px;}
.popup-close{position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #607696; cursor: pointer;}
.popup-close>svg{width: 18px; height: 18px;}
.popup-close:hover{background-color: #F6F6F6; color: #26426C;}
.popup-item{display: flex;justify-content: center; align-items: center; gap: 10px; padding: 16px 0;}
.popup-item>svg{flex: none; width: 32px; height: 32px; color: #FFC107;}
.popup-item>p{text-align: left; font-size: 18px; line-height: 20px; color: #000;}
.popup-button{margin-top: 16px;}
.popup-button>button{font-size: 16px; width: 100%; height: 40px; background-color: #26426C; color: #fff; border-radius: 8px;}
.popup-button>button:hover{background-color: #1f385b;}

.main-section{text-align: center; padding: 64px 16px; background-color: #F6F6F6;width: 100%;max-width: 880px;margin: 0 auto; height: auto;}
.main-section>div{margin: 64px auto;max-width: 700px;}
.main-section>div:last-child{margin-bottom: 0;}
.main-section>div.main-header{margin-top: 0;margin-bottom: 64px;}

.main-title{font-family: 'GMarketSans';font-weight: 700; font-size: 36px;font-weight: 900;color: #000;}

.sub-title{font-family: 'GMarketSans';font-weight: 500; letter-spacing: -0.02em; margin-bottom: 16px;font-size: 20px;font-weight: 500;color: #000;}


.area-wrap{ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
    border: 1px solid #D0D6DE; max-width: 320px; margin: 0 auto; border-radius: 8px;overflow: hidden;}
.area-item{background-color: #fff; display: flex; align-items: stretch;border-bottom: 1px solid #D0D6DE;}
.area-item:last-child{border-bottom: 0;}
.area-item p{min-height: 40px; display: flex; align-items: center;justify-content: center; font-size: 16px;width: 50%;background-color: #26426C;color: #fff;padding: 8px 16px;border-right: 1px solid rgba(255, 255, 255, 0.3);}
.area-item input{text-align: center; font-size: 16px;width: 50%;padding: 8px; font-family: 'Pretendard';outline: none;border: 0;background-color: #fff;}

.product-wrap{
    max-height: 242px;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #D0D6DE;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);


}

.product-wrap>ul{font-size: 16px;height: 40px;display: flex;align-items: center;}

.product-wrap>ul.product-title{background-color: #26426C;color: #fff; position: sticky; top: 0; z-index: 3;}
.product-wrap>ul.product-item{background-color: #fff;}
.product-wrap>ul>li{min-height: 40px; display: flex;align-items: center;justify-content: center; flex: 1;height: 100%;border-right: 1px solid #D0D6DE;border-bottom: 1px solid #D0D6DE;}
.product-wrap>ul>li:first-child{width: 55px; flex: none;border-left: 0;}
/* .product-wrap>ul>li:nth-child(2){width: 120px; flex: none;} */
.product-wrap>ul>li:nth-child(2){max-width: 190px;}

.product-wrap>ul>li:last-child{width: 120px; flex: none;border-right: 0;}
.product-wrap>ul>li>input[type="checkbox"]{cursor: pointer; accent-color: #fff; width: 20px;height: 20px;}

.product-wrap>ul.product-item>li>input[type="checkbox"]{accent-color: #26426C;}
.product-wrap>ul>li>input{background-color: transparent; font-size: 16px; text-align: center;width: 100%;height: 100%;border: 0;}
.product-wrap>ul>li>input[type="number"]{-moz-appearance: textfield;text-align: center;padding-left: 0;}
.product-wrap>ul>li>input[type="number"]::-webkit-outer-spin-button,
.product-wrap>ul>li>input[type="number"]::-webkit-inner-spin-button{-webkit-appearance: none;margin: 0;}

.product-wrap>ul:last-of-type>li{border-bottom: 0;}


/* 가로 스크롤 가능 */
/* .product-wrap{overflow-x: auto; -webkit-overflow-scrolling: touch;} */
/* .product-wrap>ul{min-width: 640px; display: flex;} */


.product-button-wrap{display: flex;max-width: 680px; gap: 32px; margin: 32px auto;}
.product-button-wrap>div{flex: 1;}

.product-button-item-button{display: flex;gap: 16px;}
.product-button-item-button>button{transition: all 0.3s ease; border: 1px solid #D0D6DE;font-family: 'GMarketSans';font-weight: 500; letter-spacing: -0.02em;display: flex; align-items: center;gap: 8px; justify-content: center;  min-height: 40px; font-size: 18px; padding: 8px;border-radius: 6px; width: 100%;background-color: #8A9BB0;color: #fff;}
.product-button-item-text{letter-spacing: -0.02em; margin-top: 16px;font-size: 16px;color: #000;display: flex;text-align: left;}
.product-button-item-text>span{margin-right: 8px;color: #FF0000;}

.product-button-item>button{transition: all 0.3s ease;border: 1px solid #D0D6DE; font-family: 'GMarketSans';font-weight: 500; letter-spacing: -0.02em;gap: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; height: 100%; padding: 8px;border-radius: 6px; width: 100%;background-color: #607696;color: #fff;}

.reset-button{display: none;}
.reset-button>svg{margin-right: 6px; width: 20px;height: 20px;}

.product-button-item-button>button>svg{width: 20px;height: 20px;}

.product-button-item-button>button:hover{box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25); transform: translateY(-2px); background-color: #26426C;}
.product-button-item>button:hover{box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25); transform: translateY(-2px); background-color: #26426C;}

.product-button-item>button>svg{width: 30px;height: 30px;}

/* 
-색상표-
#26426C
#607696
#8A9BB0
#D0D6DE
#F6F6F6
*/




.delivery-wrap{box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25); border-radius: 8px; border: 1px solid #D0D6DE; margin: 32px auto; overflow-y: auto; -webkit-overflow-scrolling: touch;}

.delivery-wrap>ul{border-bottom: 1px solid #D0D6DE; font-size: 16px;min-height: 45px;display: flex; align-items: stretch;}
.delivery-wrap>ul:last-child{border-bottom: 0;}

.delivery-wrap>ul.delivery-title{background-color: #26426C;color: #fff; position: sticky; top: 0; z-index: 3;}
.delivery-wrap>ul.delivery-item{background-color: #fff;}
.delivery-wrap>ul>li{padding: 8px; min-height: 50px; display: flex;justify-content: center; flex: 1;border-right: 1px solid #D0D6DE;}
.delivery-wrap>ul>li:last-child{border-right: 0;}
.delivery-wrap>ul:last-of-type>li{border-bottom: 0;}

.delivery-wrap>ul>li>p{word-break: break-all;display: flex;align-items: center;justify-content: center; width: 100%;}

.delivery-sub-title{border-top: 1px solid #D0D6DE; padding-top: 16px; font-weight: 400;font-size: 16px;display: flex;align-items: center;justify-content: center;gap: 8px;position: relative;}
.delivery-sub-title .mo-toggle-btn{display: block;cursor: pointer;padding: 4px;display: flex;align-items: center;justify-content: center;}
.delivery-sub-title .mo-toggle-btn .toggle-icon{width: 18px;height: 18px;transition: transform 0.3s ease;}
.delivery-item{font-weight: 600;}

.delivery-sub-title .mo-toggle-btn:hover{background-color: #8A9BB0;color: #fff;border-radius: 5px;}

/* 토글 버튼 기본 스타일 - 데스크톱 */
.toggle-delivery{display: flex;align-items: center;justify-content: center;gap: 8px;cursor: pointer;transition: all 0.3s ease;}
.toggle-delivery:hover{color: #26426C;}
.toggle-delivery svg{display: none;transition: transform 0.3s ease;}

/* 모든 배송 방법 숨김 상태 */
.delivery-all-wrap.hidden{display: none;}

.delivery-all-wrap>ul.delivery-title{background-color: #8A9BB0;}
.delivery-all-wrap>ul.delivery-item{font-weight: normal;}


.footer-wrap{text-align: left;font-size: 16px;}
.footer-item{display: flex;margin-bottom: 5px;line-height: 22px;}
.footer-item>span{margin-right: 5px;color: #FFB800;}


/* @media screen and (max-width: 440px) {
    .product-button-wrap{flex-direction: column;}
    .product-button-item>button{min-height: 65px;}
}

@media screen and (max-width: 360px) {
    .footer-wrap{font-size: 13px;}
} */


/* datalist 화살표 없애기 */
input[list]::-webkit-calendar-picker-indicator,
input[list]::-webkit-list-button {
    display: none !important;
}
input[list]::-ms-expand {
    display: none !important;
}
input[list]::-moz-focus-inner {
    border: 0;
}
input[list] {
    appearance: textfield !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

datalist{appearance: none !important;}


/* 1차수정 반응형 */





.mo-title{display: none;}

@media screen and (max-width: 580px) {
    .sub-title{font-size: 18px;}
    .delivery-sub-title{font-size: 15px;}
    .product-button-wrap{gap: 24px;}
    .product-button-item-button>button{font-size: 16px;}
    .product-button-item>button{font-size: 24px;}
    .delivery-wrap>ul>li{padding: 0px;}

}




@media screen and (max-width: 550px) {
    .product-button-wrap{flex-direction: column;}
    .product-button-item>button{min-height: 70px;}
    
    .mo-title{display: block;}
    .mo-toggle-btn{display: block;}
    
    /* delivery-sub-title 토글 버튼 스타일 */
    .delivery-sub-title .mo-toggle-btn{
        display: block;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .delivery-sub-title .mo-toggle-btn .toggle-icon{
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }
    
    /* 제품 테이블 반응형 디자인 */
    .product-wrap{
        max-height: 100%;
        height: auto;
        overflow: visible;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 16px;
        border-radius: 0;
        box-shadow: none;
    }

    .product-wrap>ul{height: auto;}
    
    .product-wrap>ul.product-title{
        display: none;
    }
    
    .product-wrap>ul.product-item{
        display: block;
        background-color: #fff;
        border: 1px solid #D0D6DE;
        padding: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
    }
    
    .product-wrap>ul.product-item:last-child{
        margin-bottom: 0;
    }
    .product-wrap>ul>li{border-right: 0;}
    .product-wrap>ul.product-item>li{
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 8px;
        min-height: auto;
        flex: none;
        width: 100%;
        min-height: 45px;
        border-bottom: 1px solid #D0D6DE;
    }
    .product-wrap>ul.product-item>li:last-child{
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .product-wrap>ul.product-item>li:first-child{
        padding: 8px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #D0D6DE;
        background-color: #26426C;
    }
    
    .product-wrap>ul.product-item>li>input[type="checkbox"]{accent-color: #fff;}
    /* .product-wrap>ul>li>input[type="number"]{padding-right: 10px;} */
    .product-wrap>ul>li:nth-child(2){max-width: 100%;}
    .product-wrap>ul>li>p{min-width: 100px;text-align: left;}
    


    
    /* 배송 정보 반응형 디자인 */
    .delivery-wrap{border: none;overflow-y: visible;box-shadow: none;}
    .delivery-wrap>ul{
        display: block;
        border-bottom: none;
    }
    
    .delivery-wrap>ul.delivery-title{
        display: none;
    }
    
    .delivery-wrap>ul.delivery-item{
        border: 1px solid #D0D6DE;
        margin-bottom: 12px;
        background-color: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
    }
    
    .delivery-wrap>ul.delivery-item:last-child{
        margin-bottom: 0;
    }
    
    .delivery-wrap>ul>li{
        padding: 0px;
        display: flex;
        align-self: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #D0D6DE;
        min-height: 53px;
        
    }
    
    .delivery-wrap>ul>li:last-child{
        border-bottom: none;
    }
    
    .delivery-wrap>ul>li:first-child{
        /* background-color: #26426C; */
        color: #000;
        font-weight: 600;
        border-bottom: 1px solid #D0D6DE;
    }

    /* 접혀있을 때 첫 번째 li의 테두리 제거 */
    .delivery-all-wrap[style*="display: none"] ul.delivery-item>li:first-child{
        border-bottom: none !important;
    }
    
    /* 펼쳐져 있을 때 첫 번째 li에 테두리 표시 */
    .delivery-all-wrap:not([style*="display: none"]) ul.delivery-item>li:first-child{
        border-bottom: 1px solid #D0D6DE;
    }

 
    
 
    .delivery-wrap>ul>li:first-child p{
        font-size: 16px;
    }
    .delivery-wrap>ul>li>span{
        background-color: #26426C;
        width: 100%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .delivery-wrap>ul>li>p{
        text-align: left;
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    .delivery-all-wrap>ul.delivery-item>li span{
        background-color: #8A9BB0;
    }
    .delivery-wrap>ul:last-of-type>li{
        border-bottom: 1px solid #D0D6DE;
    }
    .delivery-wrap>ul:last-of-type>li:last-child{
        border-bottom: none;
    }

    .product-button-item-text{margin-top: 8px;}

    /* 토글 아이콘 스타일 */
    .mo-toggle-btn{
        display: block;
        flex: none;
        transition: transform 0.3s ease;
    }

    /* 반응형에서 delivery-item-header 스타일 */
    .delivery-item-header{
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        position: relative;
    }
    .delivery-item-header:hover{
        background-color: #F6F6F6;
    }

    /* 반응형에서 delivery-item-content 기본 숨김 */
    .delivery-item-content{
        display: none;
        border-bottom: 1px solid #D0D6DE;
    }

    /* 펼쳐진 상태일 때 content 표시 */
    .delivery-item.expanded .delivery-item-content{
        display: flex;
    }

    /* 펼쳐진 상태에서만 테두리 표시 */
    .delivery-item.expanded .delivery-item-header{
        border-bottom: 1px solid #D0D6DE !important;
    }

    /* 마지막 content는 테두리 없음 */
    .delivery-item.expanded .delivery-item-content:last-child{
        border-bottom: none;
    }
}


@media screen and (max-width: 360px) {
    .sub-title {font-size: 16px;}
    .area-item p{font-size: 14px;}
    .area-item input{font-size: 14px;}
    .product-wrap>ul>li>p{font-size: 14px;}
    .product-wrap>ul>li>input{font-size: 14px;}
    .product-button-item-button>button{font-size: 14px;}
    .product-button-item-text{font-size: 14px;}
    .product-button-item>button {font-size: 22px;}
    .product-button-item>button>svg {width: 28px;height: 28px;}
    .delivery-wrap>ul>li:first-child p{font-size: 14px;}
    .delivery-wrap>ul>li p{font-size: 14px;}
    .delivery-wrap>ul>li>span{font-size: 14px;}
    .delivery-sub-title{font-size: 14px;}
    .footer-wrap{font-size: 14px;}
}