/* ==========================================================================
   GCC QR Scanner — qr-scanner.css  (minimal)
   No color palette — black, white, grey only.
   ========================================================================== */

.gcc-qr-trigger,
.gcc-qr-modal {
    display: none !important;
}

@media (max-width: 768px) {

/* ── Trigger button ── */
.gcc-qr-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 6px;
    margin: 0;
    cursor: pointer;
    color: inherit;
    line-height: 1;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s ease;
    vertical-align: middle;
}
.gcc-qr-trigger:hover,
.gcc-qr-trigger:focus-visible { opacity: 0.6; outline: none; }
.gcc-qr-trigger:active { opacity: 0.4; transform: scale(0.92); }
.gcc-qr-icon { display: block; flex-shrink: 0; }

/* ── Modal overlay ── */
.gcc-qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.6);
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.gcc-qr-modal.gcc-qr-open {
    display: flex !important;
    animation: gcc-qr-fade-in 0.2s ease;
}
@keyframes gcc-qr-fade-in {
    from { opacity: 0; } to { opacity: 1; }
}

/* ── Bottom sheet ── */
.gcc-qr-modal-inner {
    width: 100%;
    max-height: 92dvh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    border-top: 2px solid #111;
    padding-bottom: env(safe-area-inset-bottom, 16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: gcc-qr-sheet-up 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes gcc-qr-sheet-up {
    from { transform: translateY(100%); } to { transform: translateY(0); }
}

/* ── Header ── */
.gcc-qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}
.gcc-qr-title { font-size: 16px; font-weight: 700; color: #111; letter-spacing: -0.2px; }
.gcc-qr-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #111;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}
.gcc-qr-close:active { background: #e5e5e5; }

/* ── Viewfinder ── */
.gcc-qr-viewfinder-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    margin: 16px auto 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 2px solid #333;
}
.gcc-qr-reader { width: 100% !important; height: 100% !important; border: none !important; }
.gcc-qr-reader > div { display: none !important; }
.gcc-qr-reader > video { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
#qr-shaded-region { border: none !important; }

/* ── Corner frame ── */
.gcc-qr-frame { position: absolute; inset: 14px; pointer-events: none; z-index: 2; }
.gcc-qr-corner { position: absolute; width: 22px; height: 22px; border-color: #fff; border-style: solid; border-width: 0; }
.gcc-qr-corner.tl { top: 0;    left: 0;   border-top-width: 3px;    border-left-width: 3px;  border-radius: 3px 0 0 0; }
.gcc-qr-corner.tr { top: 0;    right: 0;  border-top-width: 3px;    border-right-width: 3px; border-radius: 0 3px 0 0; }
.gcc-qr-corner.bl { bottom: 0; left: 0;   border-bottom-width: 3px; border-left-width: 3px;  border-radius: 0 0 0 3px; }
.gcc-qr-corner.br { bottom: 0; right: 0;  border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 3px 0; }

/* ── Scan line ── */
.gcc-qr-scan-line {
    position: absolute; left: 0; right: 0; height: 2px; top: 0;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: gcc-qr-scan 2.2s ease-in-out infinite;
}
@keyframes gcc-qr-scan {
    0%   { top: 0; }
    50%  { top: calc(100% - 2px); }
    100% { top: 0; }
}

/* ── Hint ── */
.gcc-qr-hint { text-align: center; font-size: 13px; color: #888; margin: 12px 20px 4px; flex-shrink: 0; line-height: 1.5; }

/* ── Result ── */
.gcc-qr-result { margin: 8px 16px 16px; flex-shrink: 0; }
.gcc-qr-result:empty { display: none; }

.gcc-qr-result-success {
    display: flex; align-items: center; gap: 10px;
    background: #f5f5f5; border: 1px solid #e5e5e5;
    border-radius: 10px; padding: 12px 14px;
}
.gcc-qr-result-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: #111; color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 14px; font-weight: 700;
}
.gcc-qr-result-text { flex: 1; min-width: 0; }
.gcc-qr-result-label { font-size: 11px; color: #555; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.gcc-qr-result-url {
    font-size: 13px; color: #111; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%; display: block; text-decoration: none;
}
.gcc-qr-result-open {
    display: block; width: 100%; margin-top: 10px; padding: 11px;
    background: #111; color: #fff; text-align: center;
    border-radius: 8px; font-size: 14px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer;
    transition: opacity 0.15s; box-sizing: border-box;
}
.gcc-qr-result-open:active { opacity: 0.8; }

.gcc-qr-result-error {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; padding: 10px 14px;
    font-size: 13px; color: #dc2626; text-align: center;
}

.gcc-qr-result-plain {
    background: #f5f5f5; border: 1px solid #e5e5e5;
    border-radius: 10px; padding: 10px 14px;
    font-size: 13px; color: #555; word-break: break-all;
}

} /* end @media (max-width: 768px) */