.wrap-qrcode-scanner {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;		
}

#loadingMessage {
    text-align: center;
    padding: 40px;
    background-color: #eee;
}

#canvas {
    width: 100%;
    border: 2px solid #D9D9D9;
    border-radius: 25px;
}

#output div {
    padding-bottom: 10px;
    word-wrap: break-word;
}

#beepsound {
    width: 0px;
    height: 1px;
}

.imgCaptures {
    display: none;
    border: 1px solid #ccc;
}

/* ลายเซ็น */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.signature-pad {
    position: relative;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    width: 100%;
    height: 100%;
    max-width: 700px;
    max-height: 460px;
    border: 1px solid #e8e8e8;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 
        0 0 40px rgba(0, 0, 0, 0.08) inset;
    border-radius: 4px;
    padding: 16px;
}
.signature-pad::before,
.signature-pad::after {
    position: absolute;
    z-index: -1;
    content: "";
    width: 40%;
    height: 10px;
    bottom: 10px;
    background: transparent;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}
.signature-pad::before {
    left: 20px;
    transform: skew(-3deg) rotate(-3deg);
}
.signature-pad::after {
    right: 20px;
    transform: skew(3deg) rotate(3deg);
}
.signature-pad--body {
    position: relative;
    flex: 1;
    border: 1px solid #f4f4f4;
}
.signature-pad--body canvas,
.signature-pad--body .signature-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}
.signature-pad--footer {
    color: #C3C3C3;
    text-align: center;
    font-size: 1.2em;
    margin-top: 8px;
}
.signature-pad--actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

#github img {
    border: 0;
}
@media (max-width: 940px) {
    #github img {
        width: 90px;
        height: 90px;
    }
}

/* css อักษรใต้ logo */
div.figure {
    float: right;
    width: 100%;
    margin: 1em;
    padding: 1em;
}
div.figure p {
    font-style: italic;
    font-size: 14px;
    text-indent: 0;
}
/* end css อักษรใต้ logo */

/* ถ่ายภาพ */
#start-camera {
    margin-top: 50px;
}
#img_video {
    display: none;
    margin: 50px auto 0 auto;
}
#click-photo {
    display: none;
}
#dataurl-container {
    display: none;
}
#img_canvas {
    display: block;
    margin: 0 auto 20px auto;
}
#dataurl-header {
    text-align: center;
    font-size: 15px;
}
#dataurl {
    display: block;
    height: 100px;
    width: 320px;
    margin: 10px auto;
    resize: none;
    outline: none;
    border: 1px solid #111111;
    padding: 5px;
    font-size: 13px;
    box-sizing: border-box;
}
/* end ถ่ายภาพ */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* ยืดอัตโนมัติ */
    gap: 16px;
    padding: 20px;
}
.menu-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-decoration: none;
    background: #f6f9f6;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    transition: 0.2s;
}
.menu-grid a:hover {
    background: #e3f2ee;
    transform: scale(1.03);
}


#shop_qr_back {
    display: flex;
    justify-content: center;  /* จัดกลางแนวนอน */
    align-items: center;      /* จัดกลางแนวตั้ง (ถ้ามีความสูงกำหนดไว้) */
    text-align: center;
    padding: 10px;
}

#shop_qr_back img {
    max-width: 150px;
    height: auto;
}
