/* =========================================
   PRODUCT SCANNER
========================================= */

.product-scanner {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.2s ease;
}


.product-scanner--visible {
    opacity: 1;

    pointer-events: auto;
}


/* =========================================
   OVERLAY
========================================= */

.product-scanner__overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.45);
}


/* =========================================
   DIALOG
========================================= */

.product-scanner__dialog {
    position: relative;

    width: 100%;
    max-width: 420px;

    padding: 28px;

    border-radius: 16px;

    background: white;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);
}


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

.product-scanner__header {
    margin-bottom: 24px;
}


.product-scanner__title {
    margin: 0 0 8px;

    font-size: 22px;
}


.product-scanner__message {
    margin: 0;

    line-height: 1.5;

    opacity: 0.7;
}


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

.product-scanner__body {
    margin-bottom: 24px;
}


.product-scanner__input {
    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid #d5d5d5;

    border-radius: 10px;

    font-size: 16px;

    outline: none;
}


.product-scanner__input:focus {
    border-color: #888;
}


/* =========================================
   ACTIONS
========================================= */

.product-scanner__actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;
}


.product-scanner__button {
    padding: 11px 18px;

    border: none;

    border-radius: 9px;

    font-size: 15px;

    cursor: pointer;
}


.product-scanner__button--cancel {
    background: #eeeeee;
}


.product-scanner__button--confirm {
    background: #222;
    color: white;
}