/* =========================================================
   HELCU — QR SCANNER
   PREMIUM NAVBAR QR BUTTON + SCANNER POPUP

   QR BUTTON
   0px → 1199.98px

   DESKTOP HIDE
   1200px+
========================================================= */


/* =========================================================
   =========================================================
   NAVBAR QR SCANNER BUTTON
   =========================================================
========================================================= */


/* =========================================================
   QR BUTTON — BASE
========================================================= */

.hc-navbar-qr-toggle {

    width: 40px;

    height: 40px;

    flex: 0 0 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-left: auto;

    padding: 0;

    border: 1px solid #DCEAEA;

    border-radius: 10px;

    background: #F4FAFA;

    color: #20B2AA;

    font-family: inherit;

    font-size: 16px;

    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 2px 8px rgba(
            32,
            178,
            170,
            0.05
        );

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

}


/* =========================================================
   QR BUTTON ICON
========================================================= */

.hc-navbar-qr-toggle i {

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    line-height: 1;

    transition:
        transform 0.2s ease;

}


/* =========================================================
   QR BUTTON HOVER
========================================================= */

.hc-navbar-qr-toggle:hover {

    background: #EAF8F8;

    border-color: #CFE7E6;

    color: #169B95;

    box-shadow:
        0 4px 12px rgba(
            32,
            178,
            170,
            0.10
        );

    transform: translateY(-1px);

}


.hc-navbar-qr-toggle:hover i {

    transform: scale(1.05);

}


/* =========================================================
   QR BUTTON ACTIVE
========================================================= */

.hc-navbar-qr-toggle:active {

    transform: translateY(0);

    box-shadow:
        0 2px 7px rgba(
            32,
            178,
            170,
            0.08
        );

}


/* =========================================================
   QR BUTTON FOCUS
========================================================= */

.hc-navbar-qr-toggle:focus-visible {

    outline: 2px solid rgba(
        32,
        178,
        170,
        0.28
    );

    outline-offset: 2px;

}


/* =========================================================
   QR BUTTON — MOBILE
   0px → 767.98px
========================================================= */

@media (max-width: 767.98px) {

    .hc-navbar-qr-toggle {

        width: 38px;

        height: 38px;

        flex-basis: 38px;

        border-radius: 9px;

        font-size: 15px;

    }


    .hc-navbar-qr-toggle i {

        font-size: 15px;

    }

}


/* =========================================================
   QR BUTTON — TABLET
   768px → 1199.98px
========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .hc-navbar-qr-toggle {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        border-radius: 10px;

        font-size: 16px;

    }

}


/* =========================================================
   QR BUTTON — DESKTOP HIDDEN
   1200px+
========================================================= */

@media (min-width: 1200px) {

    .hc-navbar-qr-toggle {

        display: none !important;

    }

}


/* =========================================================
   =========================================================
   QR SCANNER POPUP
   =========================================================
========================================================= */


/* =========================================================
   POPUP
========================================================= */

.hc-qr-scanner-popup {

    position: fixed;

    inset: 0;

    z-index: 30000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px;

    background: rgba(
        20,
        39,
        38,
        0.52
    );

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);

}


/* =========================================================
   HIDDEN
========================================================= */

.hc-qr-scanner-popup[hidden] {

    display: none;

}


/* =========================================================
   MODAL
========================================================= */

.hc-qr-scanner-modal {

    width: min(
        100%,
        430px
    );

    max-height: calc(
        100vh - 36px
    );

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background: #FFFFFF;

    border: 1px solid #E2EEEE;

    border-radius: 18px;

    box-shadow:
        0 20px 60px rgba(
            20,
            55,
            53,
            0.20
        );

}


/* =========================================================
   HEADER
========================================================= */

.hc-qr-scanner-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 15px;

    border-bottom: 1px solid #E8F0F0;

    background: #FFFFFF;

}


/* =========================================================
   HEADING
========================================================= */

.hc-qr-scanner-heading {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;

}


/* =========================================================
   SCANNER ICON
========================================================= */

.hc-qr-scanner-icon {

    width: 40px;

    height: 40px;

    flex: 0 0 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #DCEFEF;

    border-radius: 10px;

    background: #EAF8F8;

    color: #20B2AA;

}


.hc-qr-scanner-icon i {

    font-size: 18px;

    line-height: 1;

}


/* =========================================================
   TITLE WRAPPER
========================================================= */

.hc-qr-scanner-title-wrapper {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;

}


/* =========================================================
   TITLE
========================================================= */

.hc-qr-scanner-title-wrapper strong {

    overflow: hidden;

    color: #234C49;

    font-size: 15px;

    font-weight: 750;

    line-height: 1.2;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* =========================================================
   SUBTITLE
========================================================= */

.hc-qr-scanner-title-wrapper span {

    color: #718684;

    font-size: 11px;

    font-weight: 500;

    line-height: 1.3;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.hc-qr-scanner-close {

    width: 34px;

    height: 34px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 1px solid #E1EAEA;

    border-radius: 8px;

    background: #F7FAFA;

    color: #55716E;

    font-family: inherit;

    font-size: 22px;

    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.hc-qr-scanner-close:hover {

    background: #F1F7F7;

    border-color: #D5E5E4;

    color: #D9534F;

    transform: scale(1.03);

}


.hc-qr-scanner-close:focus-visible {

    outline: 2px solid rgba(
        32,
        178,
        170,
        0.25
    );

    outline-offset: 2px;

}


/* =========================================================
   BODY
========================================================= */

.hc-qr-scanner-body {

    min-height: 0;

    padding: 16px;

    background: #FFFFFF;

}


/* =========================================================
   QR READER
========================================================= */

.hc-qr-reader {

    width: 100%;

    min-height: 250px;

    overflow: hidden;

    border: 1px solid #DCEAEA;

    border-radius: 14px;

    background: #F5FAFA;

}


/* =========================================================
   QR READER VIDEO
========================================================= */

.hc-qr-reader video {

    width: 100% !important;

    height: auto !important;

    display: block;

    border-radius: 13px;

    object-fit: cover;

}


/* =========================================================
   QR READER TABLE
========================================================= */

.hc-qr-reader table {

    width: 100%;

}


/* =========================================================
   QR READER DEFAULT DASHBOARD
========================================================= */

.hc-qr-reader__dashboard {

    padding: 8px !important;

    font-size: 11px;

}


/* =========================================================
   SCANNER MESSAGE
========================================================= */

.hc-qr-scanner-message {

    margin-top: 12px;

    padding: 10px 12px;

    border: 1px solid #E2F0F0;

    border-radius: 9px;

    background: #F3FAFA;

    color: #466A67;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.45;

    text-align: center;

}


/* =========================================================
   ERROR
========================================================= */

.hc-qr-scanner-error {

    margin-top: 10px;

    padding: 10px 12px;

    border: 1px solid #F1D4D4;

    border-radius: 9px;

    background: #FFF7F7;

    color: #B94A48;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.45;

    text-align: center;

}


.hc-qr-scanner-error[hidden] {

    display: none;

}


/* =========================================================
   FOOTER
========================================================= */

.hc-qr-scanner-footer {

    padding: 10px 15px;

    border-top: 1px solid #E8F0F0;

    background: #FAFCFC;

    color: #718684;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.4;

    text-align: center;

}


.hc-qr-scanner-footer i {

    margin-right: 4px;

    color: #20B2AA;

}


/* =========================================================
   MOBILE POPUP
   0px → 767.98px
========================================================= */

@media (max-width: 767.98px) {

    .hc-qr-scanner-popup {

        align-items: flex-end;

        padding: 10px;

    }


    .hc-qr-scanner-modal {

        width: 100%;

        max-height: calc(
            100vh - 20px
        );

        border-radius: 18px;

    }


    .hc-qr-scanner-header {

        padding: 13px 12px;

    }


    .hc-qr-scanner-body {

        padding: 12px;

    }


    .hc-qr-reader {

        min-height: 220px;

        border-radius: 12px;

    }


    .hc-qr-reader video {

        border-radius: 11px;

    }


    .hc-qr-scanner-footer {

        padding: 9px 12px;

    }

}


/* =========================================================
   TABLET POPUP
   768px → 1199.98px
========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .hc-qr-scanner-modal {

        width: min(
            100%,
            430px
        );

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .hc-navbar-qr-toggle,
    .hc-navbar-qr-toggle *,
    .hc-qr-scanner-popup *,
    .hc-qr-scanner-popup *::before,
    .hc-qr-scanner-popup *::after {

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

    }

}