*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    width:100%;
    overflow-x:hidden;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f1eb;
    color:#111827;
    min-height:100vh;
    padding:22px;
    line-height:1.5;
}

.search-container,
.result-container,
.admin-container{
    width:100%;
    max-width:1100px;
    margin:24px auto;
    background:#fff;
    border-radius:22px;
    padding:34px;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.login-card{
    max-width:520px;
    text-align:center;
}

.logo-main{
    width:min(90vw,420px) !important;
    max-width:420px !important;
    height:auto !important;
    display:block !important;
    object-fit:contain !important;
    margin:0 auto 25px auto !important;
}

.logo-round{
    width:90px !important;
    height:90px !important;
    border-radius:50%;
    object-fit:cover;
    display:block;
}

h1,h2,h3{
    margin:0 0 18px;
}

p{
    margin:0 0 18px;
}

input,textarea,select{
    width:100%;
    padding:15px 16px;
    margin:0 0 16px;
    border:1px solid #d7d7d7;
    border-radius:14px;
    font-size:16px;
    background:#fafafa;
}

textarea{
    min-height:120px;
    resize:vertical;
}

label{
    display:block;
    font-weight:bold;
    margin:0 0 6px;
}

.btn-submit,
.btn-shop,
.logout-btn,
.btn-delete{
    display:block;
    width:100%;
    text-align:center;
    border:none;
    border-radius:14px;
    padding:15px 18px;
    margin:10px 0;
    color:#fff;
    background:#111827;
    font-weight:bold;
    font-size:16px;
    text-decoration:none;
    cursor:pointer;
}

.logout-btn{
    width:auto;
    min-width:160px;
}

.btn-delete{
    background:#b91c1c;
}

.grid-layout{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}

.card,
.record-card,
.notice-box,
.alert{
    border-radius:16px;
    padding:18px;
    margin-bottom:20px;
}

.card,
.record-card{
    background:#fafafa;
    border:1px solid #eee;
}

.notice-box{
    background:#fff3cd;
    border:1px solid #ffe69c;
}

.alert.success{
    background:#eef8e7;
    border:1px solid #cfe8bf;
}

.alert.error{
    background:#fdecec;
    border:1px solid #f5b5b5;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:24px;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.small-link{
    display:inline-block;
    margin-right:12px;
    font-weight:bold;
    color:#7c3f16;
}

/* 3CX LIVE CHAT CLICKABILITY FIX */
call-us-selector,
call-us,
#wp-live-chat-by-3CX,
#tcx-callus-js,
[class*="call-us"],
[class*="callus"]{
    z-index:2147483647 !important;
    pointer-events:auto !important;
    opacity:1 !important;
    visibility:visible !important;
}

body::before,
body::after{
    pointer-events:none !important;
}

@media(max-width:800px){
    body{
        padding:12px;
    }

    .search-container,
    .result-container,
    .admin-container{
        padding:22px;
        border-radius:18px;
    }

    .grid-layout{
        grid-template-columns:1fr;
    }

    .topbar,
    .topbar-left{
        flex-direction:column;
        align-items:flex-start;
    }

    .logout-btn{
        width:100%;
    }

    .logo-main{
        width:min(88vw,300px) !important;
        max-width:300px !important;
    }
}
