:root {
    --color-black: #101010;
    --color-gray: #909090;
    --color-white: #ffffff;

    --color-background: #FAFAFA;
    --color-background-2: #F0F0F0;
    --color-line: #DCDCDC;

    --color-highlight: #FF6400;
    --color-highlight-sub: #FFF1DD;
    
    --font-xl: 32px;
    --font-l: 28px;
    --font-m: 24px;
    --font-s: 20px;
    --font-xs: 16px;

    --size-l: 60px;
    --size-m: 40px;
    --size-s: 20px;
    --size-xs: 12px;

    --header-height: 72px;
}

/* ---------------- COMMON ---------------- */

::selection {
    background-color: var(--color-highlight);
    color: var(--color-white);
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-width: 360px;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-background);
}

/* ---------------- HEADER ---------------- */

header{
    max-width: 720px;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--size-s);
    background-color: var(--color-white);
}

header > .logo > img{
    height: 40px;
    object-fit: contain;
}

header .chat > img{
    width: 40px;
    object-fit: contain;
}


header > div{
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

header .check-order{
	font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--color-white);
	background-color: var(--color-highlight);
	padding: 4px 8px;
	border-radius: 2px;
	margin-right: 12px;
	transition: 0.2s;
}

header .check-order:hover{
	background-color: var(--color-black);
}

/* ---------------- OVERVIEW ---------------- */

body > img{
    max-width: 720px;
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

section{
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--size-m) var(--size-s);
    background-color: var(--color-white);
}

#overview > h1{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--size-s);
    word-break: keep-all;
}

#overview > p{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 300;
    color: var(--color-gray);
    word-break: keep-all;
    line-height: 135%;
}

#overview > div:nth-of-type(1){
    margin-top: calc(var(--size-s) + var(--size-xs));
    margin-bottom: var(--size-m);
}

.discount{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 700;
    color: var(--color-highlight);
    margin-right: var(--size-xs);
}

.price{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-black);
}

.price > span{
    font-size: var(--font-m);
    font-weight: 500;
}

#overview > div:nth-of-type(2){
    background-color: #F5F5F5;
    padding: calc(var(--size-s) + var(--size-xs));
    border-radius: var(--size-xs);
}

#overview > div:nth-of-type(2) > div{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: var(--size-s);
}

#overview > div:nth-of-type(2) > div > img{
    width: 28px;
    object-fit: contain;
    margin-right: var(--size-xs);
}

#overview > div:nth-of-type(2) > div > span{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 700;
    color: var(--color-highlight);
}

#overview > div:nth-of-type(2) > p{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 400;
    color: var(--color-black);
    line-height: 150%;
    word-break: keep-all;
}

/* ---------------- DETAIL ---------------- */

#detail{
    padding: 0;
}

#detail > p{
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 700;
    color: var(--color-highlight);
    background-color: var(--color-highlight-sub);
    text-align: center;
    padding: var(--size-s);
}

#detail > div{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
#detail > div img{
    min-width: 360px;
    max-width: 720px;
    width: 100%;
    object-fit: contain;
}

#detail *{
    font-family: 'Pretendard Variable', sans-serif;
}

#detail .post-content > p{
	    font-family: 'Pretendard Variable', sans-serif;
    	font-size: var(--font-m);
	text-align: center;
	line-height: 150%;
	padding: 0 var(--size-xs) var(--size-xs) var(--size-xs);
}

#detail .post-content > p:nth-of-type(1){
	padding-top: var(--size-m);
}

#detail .post-content > p:last-of-type{
	padding-bottom: var(--size-m);
}

/* ---------------- FORM ---------------- */

.order-btn-bg{
    min-width: 360px;
    position: fixed;
    bottom: 0;
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--size-s);
    background-color: var(--color-white);
    border-top-left-radius: var(--size-s);
    border-top-right-radius: var(--size-s);
    z-index: 5;
}

.order-btn-bg > .order-title{
	width: 100%;
}

.order-btn-bg > .order-title > img{
    height: var(--font-xl);
    object-fit: contain;
    margin-top: var(--size-s);
}

.order-btn-bg > .order-title > p{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 700;
    color: var(--color-black);
    margin-top: 8px;
 	margin-bottom: var(--size-s);
}

.order-btn-bg > .order-title > #price-select{
	width: 100%;
	margin-bottom: var(--size-s);
}

.order-btn{
    text-align: center;
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 700;
    color: var(--color-white);
    padding: var(--size-s);
    background-color: var(--color-highlight);
    border-radius: 8px;
    border: 1px solid var(--color-highlight);
    cursor: pointer;
}

.waiting-btn{
    text-align: center;
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 700;
    color: var(--color-white);
    padding: var(--size-s);
    background-color: var(--color-black);
    border-radius: 8px;
    border: 1px solid var(--color-black);
    cursor: pointer;
}

form input{
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 400;
    color: var(--color-black);
    padding: var(--size-s);
    background-color: var(--color-background);
    border: 1px solid var(--color-line);
    border-radius: 4px;
    outline: none;
}

form input:focus{
    border: 1px solid var(--color-highlight);
}

form .input-wrapper > p > br{
    display: none;
}

form .input-wrapper > p{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--size-xs);
}

form .input-wrapper {
    margin: var(--size-xs) 0;
}

form span{
    margin: 0 !important;
}

form .to-go{
    margin-bottom: var(--size-xs);
}
form select.to-go {
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 400;
    color: var(--color-black);
    padding: var(--size-s);
    background-color: var(--color-background);
    border: 1px solid var(--color-line);
    border-radius: 4px;
    outline: none;
    appearance: none; /* 기본 화살표 제거 */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23909090" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    cursor: pointer;
}


form select.to-go:focus {
    border: 1px solid var(--color-highlight);
}

.privacy-agree{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 300;
    color: var(--color-gray);
    display: flex;
    justify-content: flex-start;
    align-items: center;
	padding-top: var(--size-xs);
}

.privacy-agree br{
    display: none;
}

.privacy-agree a{
    font-weight: 600;
    color: var(--color-gray);
    margin-left: 8px;
}

.privacy-agree input{
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: var(--color-gray);
    margin-right: 8px;
}

form .submit-btn{
    width: 100%;
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 700;
    color: var(--color-white);
    padding: var(--size-s);
    background-color: var(--color-highlight);
    border-radius: 8px;
    border: 1px solid var(--color-highlight);
    cursor: pointer;
    margin-top: var(--size-m);
}

.hidden-btn{
    display: none ;
}

form .wpcf7-spinner, .wpcf7-response-output, .wpcf7-not-valid-tip{
    display: none !important;
}

.background-overlay{
    position: absolute;
    top: 0;
    max-width: 720px;
    width: 100%;
    height: 100%;
    background-color: #101010CC;
    z-index: 1;
}


/* ---------------- FOOTER ---------------- */

footer{
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: var(--color-background-2);
    padding: var(--size-m) var(--size-s) 120px var(--size-s);
}

footer > a{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--size-s);
}

footer > p{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--color-gray);
    line-height: 150%;
}

footer > p:last-of-type{
    font-weight: 300;
    color: #C0C0C0;
    margin-top: var(--size-s);
}

footer > p a{
    color: #C0C0C0;
}

.quantity-wrapper{
	width: 100%;
}

.quantity-wrapper > p {
	width: 100%;
	display: flex;
	justify-content: center;
    align-items: center;
    gap: 5px;
}

.quantity-wrapper > p > span{
	width: 100%;
}

.qty-btn {
	width: 40px !important;
	height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #ccc;
	border-radius: 4px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
}

.order-quantity {
    width: 100%;
    text-align: center;
}



@media screen and (max-width: 720px) {
    :root {
        --font-xl: 30px;
        --font-l: 26px;
        --font-m: 22px;
        --font-s: 18px;
        --font-xs: 15px;
    
        --size-l: 54px;
        --size-m: 36px;
        --size-s: 18px;
        --size-xs: 11px;
    
        --header-height: 64px;
    }

    header > .logo > img{
        height: 36px;
    }

    body > img{
        height: calc(100vw / 16 * 9);
    }

    #overview > div:nth-of-type(2){
        padding: var(--size-s);
    }

    #overview > div:nth-of-type(2) > div{
        margin-bottom: var(--size-xs);
    }
    
    header .chat > img{
        width: 32px;
    }
}

@media screen and (max-width: 576px) {

    :root {
        --font-xl: 22px;
        --font-l: 19px;
        --font-m: 17px;
        --font-s: 15px;
        --font-xs: 14px;
    
        --size-l: 48px;
        --size-m: 32px;
        --size-s: 16px;
        --size-xs: 10px;
    
        --header-height: 56px;
    }

    header > .logo > img{
        height: 32px;
    }
    
    header .chat > img{
        width: 28px;
    }

    footer > p{
        font-size: 12px;
    }
}