*{
    box-sizing:border-box;
}

html{
    -webkit-text-size-adjust:100%;
}

body{
    margin:0;
    font-family:"Noto Sans Thai","Segoe UI",Arial,sans-serif;
    background:#f5f7fa;
    color:#222;
}

.container{
    width:min(760px,92%);
    margin:auto;
    padding:28px 0 70px;
}

.hero{
    font-size:72px;
    text-align:center;
    margin-bottom:8px;
}

h1{
    margin:0;
    text-align:center;
    font-size:48px;
    font-weight:800;
}

.tagline{
    text-align:center;
    color:#777;
    margin:10px 0 28px;
    font-size:17px;
}

.card{
    background:white;
    border-radius:22px;
    padding:22px;
    margin-bottom:22px;
    box-shadow:
        0 4px 18px rgba(0,0,0,.08);
}

h2{
    margin-top:0;
    font-size:22px;
    color:#222;
}

input{
    width:100%;
    height:52px;
    margin-top:10px;
    margin-bottom:14px;
    border:1px solid #dcdcdc;
    border-radius:14px;
    padding:0 16px;
    font-size:16px;
    transition:.2s;
}

input:focus{
    outline:none;
    border-color:#06C755;
    box-shadow:0 0 0 4px rgba(6,199,85,.15);
}

button{
    width:100%;
    height:52px;
    border:none;
    border-radius:14px;
    background:#06C755;
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

button:hover{
    background:#04b64c;
}

button:active{
    transform:scale(.98);
}

.code{
    text-align:center;
    font-size:42px;
    font-weight:900;
    letter-spacing:5px;
    color:#06C755;
}

.qr{
    width:min(240px,80vw);
    display:block;
    margin:20px auto;
}

.receipt{
    width:100%;
    border-radius:16px;
    margin-top:16px;
}

.row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid #efefef;
    gap:12px;
}

.item-box{
    background:#fafafa;
    border-radius:16px;
    padding:16px;
    margin-top:16px;
}

.item-box strong{
    display:block;
    font-size:18px;
}

.item-box span{
    display:block;
    color:#666;
    margin-bottom:12px;
}

.item-box label{
    display:flex;
    align-items:center;
    gap:10px;
    margin:8px 0;
}

.item-box input[type=checkbox]{
    width:20px;
    height:20px;
    margin:0;
}

.big-total{
    text-align:center;
}

.amount{
    font-size:56px;
    font-weight:900;
    color:#06C755;
    margin:18px 0;
}

.paid{
    color:#06C755;
    font-size:22px;
    font-weight:700;
}

@media(max-width:600px){

.container{
    width:94%;
}

.hero{
    font-size:58px;
}

h1{
    font-size:38px;
}

.card{
    padding:18px;
}

.code{
    font-size:34px;
}

.amount{
    font-size:48px;
}

}

.card-spacer{
    height:2px;
}
