/* GoPOS login palette; every rule is scoped to the customer box. */
.gopos-qc-overlay[hidden], .gopos-qc-overlay [hidden] { display:none !important; }
.gopos-qc-overlay {
    --qc-navy:#071426; --qc-blue:#1264e8; --qc-orange:#f3703c; --qc-muted:#a9b8cd;
    position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center;
    padding:24px; background:rgba(4,12,25,.65); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
    font-family:inherit; color:#e7edf7; box-sizing:border-box; overflow:auto;
}
.gopos-qc-card {
    position:relative; width:100%; max-width:470px; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px);
    overflow:auto; padding:30px 32px; border:1px solid rgba(255,255,255,.16); border-radius:26px;
    background:radial-gradient(ellipse at 95% 0,rgba(18,100,232,.12),transparent 55%),rgba(12,27,49,.98);
    box-shadow:0 30px 80px rgba(0,0,0,.38); text-align:start; line-height:1.5;
}
.gopos-qc-card, .gopos-qc-card * { box-sizing:border-box; }
body.gopos-qc-open { overflow:hidden; }
.gopos-qc-brand { display:flex; align-items:center; justify-content:center; margin:2px 0 20px; }
.gopos-qc-brand img { display:block; max-width:155px; max-height:48px; width:auto; height:auto; object-fit:contain; }
.gopos-qc-brand-text { font-size:36px; font-weight:800; color:white; letter-spacing:-1px; line-height:1.2; }
.gopos-qc-brand-text b { color:var(--qc-orange); }
.gopos-qc-close { position:absolute; inset-inline-end:15px; top:10px; border:0; background:transparent; color:#a9b8cd; font-size:27px; padding:3px 10px; cursor:pointer; }
.gopos-qc-header { text-align:center; margin:0 0 22px; }
.gopos-qc-header h2 { margin:0 0 7px; font-size:26px; font-weight:700; color:#fff; line-height:1.35; }
.gopos-qc-header p { margin:0; color:var(--qc-muted); font-size:13px; }
.gopos-qc-required { display:inline-block; margin-top:10px; padding:3px 10px; border-radius:99px; background:rgba(243,112,60,.12); color:#ffb391; font-size:12px; }
.gopos-qc-types { display:flex; gap:5px; border:1px solid rgba(255,255,255,.1); background:rgba(0,0,0,.13); border-radius:12px; padding:5px; margin:0 0 20px; min-width:0; }
.gopos-qc-types label { position:relative; flex:1; margin:0; border-radius:8px; cursor:pointer; text-align:center; font-weight:500; }
.gopos-qc-types input { position:absolute; opacity:0; width:1px; height:1px; }
.gopos-qc-types span { display:block; padding:8px; color:var(--qc-muted); font-size:14px; }
.gopos-qc-types label.is-active { background:rgba(56,163,255,.14); box-shadow:inset 0 0 0 1px rgba(56,163,255,.27); }
.gopos-qc-types label.is-active span { color:#eef7ff; }
.gopos-qc-types label:focus-within { outline:2px solid #38a3ff; outline-offset:2px; }
.gopos-qc-field { margin:0 0 15px; }
.gopos-qc-field label { display:block; margin:0 0 7px; font-size:13px; font-weight:500; color:#e7edf7; }
.gopos-qc-field label span { color:#ffab85; }
.gopos-qc-field input { display:block; width:100%; min-height:50px; padding:10px 13px; margin:0; color:#fff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16); border-radius:12px; font-family:inherit; font-size:16px; outline:none; box-shadow:none; }
.gopos-qc-field input:focus { border-color:#38a3ff; background:rgba(255,255,255,.10); box-shadow:0 0 0 4px rgba(56,163,255,.13); }
.gopos-qc-field input#gopos-qc-phone { font-size:18px; letter-spacing:0; text-align:start; }
.gopos-qc-field small { display:block; margin-top:7px; font-size:11px; color:#98aac1; }
.gopos-qc-add-name { border:0; background:none; color:#80bdff; padding:0 0 12px; font-size:13px; font-family:inherit; cursor:pointer; }
.gopos-qc-status { min-height:0; margin:0 0 10px; color:#a9b8cd; font-size:12px; }
.gopos-qc-status:empty { display:none; }
.gopos-qc-results { list-style:none; margin:0 0 16px; padding:0; max-height:180px; overflow:auto; border:1px solid rgba(56,163,255,.2); border-radius:12px; background:rgba(4,12,25,.35); }
.gopos-qc-results li { display:flex; flex-wrap:wrap; align-items:stretch; margin:0; padding:0; border-bottom:1px solid rgba(255,255,255,.06); }
.gopos-qc-results li > button:first-child { flex:1 1 0; min-width:0; }
.gopos-qc-results .gopos-qc-phone-row { flex:1 0 100%; display:flex; gap:8px; padding:4px 13px 11px; }
.gopos-qc-results .gopos-qc-phone-row input { flex:1 1 auto; min-width:0; min-height:38px; border-radius:9px; border:1px solid rgba(56,163,255,.35); background:rgba(4,12,25,.55); color:#f2f7ff; padding:6px 10px; font-family:inherit; font-size:14px; }
.gopos-qc-results .gopos-qc-phone-row button { flex:0 0 auto; width:auto; display:block; border-radius:9px; padding:0 16px; color:#fff; background:#1264e8; font-weight:600; }
.gopos-qc-results .gopos-qc-edit { flex:0 0 auto; width:auto; color:#80bdff; font-size:12px; font-weight:600; padding:0 14px; border-inline-start:1px solid rgba(255,255,255,.08); }
.gopos-qc-results li:last-child { border-bottom:0; }
.gopos-qc-results button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; text-align:start; color:#f2f7ff; background:transparent; border:0; padding:11px 13px; cursor:pointer; font-family:inherit; }
.gopos-qc-results button:hover, .gopos-qc-results button:focus { outline:none; background:rgba(56,163,255,.13); }
.gopos-qc-results button strong { flex:1 1 auto; min-width:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.gopos-qc-results button small { flex:0 0 auto; color:#99b8d8; font-size:12px; direction:ltr; white-space:nowrap; unicode-bidi:isolate; }
.gopos-qc-error { border:1px solid rgba(255,130,100,.27); border-radius:10px; padding:10px 12px; margin:4px 0 14px; font-size:13px; color:#ffc2af; background:rgba(211,65,39,.11); }
.gopos-qc-actions { display:flex; gap:10px; margin-top:10px; }
.gopos-qc-actions button { font-family:inherit; font-size:14px; font-weight:600; min-height:50px; border-radius:12px; padding:10px 18px; cursor:pointer; }
.gopos-qc-save { flex:1; color:#fff; border:0; background:linear-gradient(100deg,#1264e8,#218bff); box-shadow:0 12px 28px rgba(18,100,232,.25); }
.gopos-qc-skip { border:1px solid rgba(255,255,255,.16); color:#c0ccdb; background:rgba(255,255,255,.04); }
.gopos-qc-card button:focus-visible { outline:2px solid #80bdff; outline-offset:3px; }
.gopos-qc-card button:disabled { cursor:default; opacity:.45; }
.gopos-qc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:520px) {
    .gopos-qc-overlay { padding:16px; }
    .gopos-qc-card { max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); padding:25px 21px; border-radius:22px; }
    .gopos-qc-header h2 { font-size:23px; }
    .gopos-qc-brand { margin-bottom:17px; }
}

/* Keep the next-sale customer prompt out of browser print and Save as PDF. */
@media print {
    html body #gopos-qc.gopos-qc-overlay,
    html body #gopos-qc.gopos-qc-overlay * {
        display:none !important;
        visibility:hidden !important;
    }
    body.gopos-qc-open { overflow:visible !important; }
}
