* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

    background: white;
    color: #222;
}

body {
    min-height: 100vh;
}


/* 페이지 */

.page {
    width: 100%;
    min-height: 100vh;
}


/* 숨김 */

.hidden {
    display: none;
}


/* =========================
   로그인
========================= */

.login-container {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 12px;

    padding: 20px;
}

.login-container input,
.login-container button {
    max-width: 360px;
}


/* =========================
   주문 페이지
========================= */

.order-container {
    width: 100%;
    max-width: 600px;

    margin: 0 auto;

    padding: 25px 18px 60px;
}


/* 제목 */

h1 {
    margin: 0 0 30px;

    font-size: 27px;
    line-height: 1.3;
}

h2 {
    margin: 0 0 15px;

    font-size: 20px;
    line-height: 1.3;
}


/* =========================
   각 영역
========================= */

.option-section,
.cart-section,
.customer-section {
    margin-bottom: 38px;
}


/* 라벨 */

label {
    display: block;

    margin: 20px 0 8px;

    font-size: 14px;
    font-weight: 500;
}


/* =========================
   입력창 / 선택창
========================= */

input,
select {
    width: 100%;
    min-height: 48px;

    padding: 0 12px;

    font-size: 16px;

    border: 1px solid #ccc;
    border-radius: 7px;

    background: white;
    color: #222;

    outline: none;
}


/*
아이폰에서 input 선택 시
자동 확대되는 현상을 방지하기 위해
16px 이상 유지
*/

input:focus,
select:focus {
    border-color: #666;
}


/* 직접 입력창 */

#customSubOptionInput {
    margin-top: 0;
}


/* 수량 */

#quantityInput {
    width: 100%;
}


/* =========================
   기본 버튼
========================= */

button {
    width: 100%;
    min-height: 48px;

    padding: 0 15px;

    border: none;
    border-radius: 7px;

    font-size: 16px;

    background: #222;
    color: white;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

button:active {
    opacity: 0.7;
}


/* 비활성화된 버튼 */

button:disabled {
    opacity: 0.5;
    cursor: default;
}


/* 주문 목록에 추가 */

#addButton {
    margin-top: 22px;
}


/* =========================
   주문 목록
========================= */

#orderList {
    border-top: 1px solid #ddd;
}


/* 개별 주문 */

.order-item {
    padding: 18px 0;

    border-bottom: 1px solid #ddd;
}


/* 키트 이름 */

.order-item-name {
    font-size: 16px;
    font-weight: 600;

    line-height: 1.4;
}


/* 선택 항목 */

.order-item-detail {
    margin-top: 6px;

    font-size: 14px;
    line-height: 1.5;

    color: #666;

    overflow-wrap: anywhere;
}


/* 수량 */

.order-item-quantity {
    margin-top: 7px;

    font-size: 14px;
}


/* =========================
   삭제 버튼
========================= */

.delete-button {
    width: auto;
    min-width: 70px;
    min-height: 38px;

    margin-top: 12px;

    padding: 0 15px;

    font-size: 14px;

    background: #eee;
    color: #333;
}


/* =========================
   전체 초기화
========================= */

.reset-button {
    margin-top: 18px;

    min-height: 42px;

    font-size: 14px;

    background: white;
    color: #555;

    border: 1px solid #ccc;
}


/* 주문이 없을 때 */

.empty-message {
    margin: 18px 0;

    font-size: 14px;
    color: #999;
}


/* =========================
   주문자 정보
========================= */

.customer-section input {
    margin-bottom: 11px;
}


/* =========================
   최종 주문
========================= */

.order-button,
#orderButton {
    min-height: 56px;

    margin-top: 10px;

    font-size: 18px;
    font-weight: 600;
}


/* =========================
   모바일
========================= */

@media (max-width: 480px) {

    .order-container {
        padding:
            22px
            16px
            50px;
    }

    h1 {
        font-size: 25px;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 19px;
    }

    .option-section,
    .cart-section,
    .customer-section {
        margin-bottom: 34px;
    }

    input,
    select {
        min-height: 50px;
    }

    button {
        min-height: 50px;
    }

    .delete-button {
        min-height: 40px;
    }

}