#barcode-search {
    display: none;
    position: fixed;
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    top: 0;
    left: 0;
    z-index: 10151;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0);
}

#barcode-search.active {
    display: block;
}

#barcode-search video {
    display: block;
    position: absolute;
    width: 100vw;
    height: 100dvh;
    top: 0;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
}

#barcode-search .barcode-search__content {
    width: 100vw;
    height: 100dvh;
    padding: 0;
    z-index: 10153;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

#barcode-search .barcode-search__close {
    cursor: pointer;
}

#barcode-search .barcode-search__close img {
    -o-object-fit: contain;
    object-fit: contain;
    width: 25px;
    height: 25px;
}

#barcode-search .barcode-search__header-wrapper {
    background-color: rgba(0, 0, 0, 0.4);
    height: 107px;
}

#barcode-search .barcode-search__header {
    margin: 20px;
}

#barcode-search .barcode-search__header .title {
    color: white;
    font-size: 20px;
}

#barcode-search .barcode-search__alert,
#barcode-search .barcode-search__error {
    text-align: center;
    color: #fff;
    font-weight: bolder;
    margin: 20px;
    line-height: 22px;
}

#barcode-search .barcode-search__error {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    margin: 0;
}

#barcode-search .barcode-search__scanner {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1
}

#barcode-search .barcode-search__scanner::before,
#barcode-search .barcode-search__scanner::after,
#barcode-search .barcode-search__area::before,
#barcode-search .barcode-search__area::after {
    display: block;
    content: '';
    position: absolute;
    border: 6px solid #6d198f;
    width: 30px;
    height: 30px;
    z-index: 10153;
}

#barcode-search .barcode-search__scanner::before {
    border-right-color: transparent;
    border-bottom-color: transparent;
    top: 0;
    left: 20px;
}

#barcode-search .barcode-search__scanner::after {
    border-left-color: transparent;
    border-bottom-color: transparent;
    top: 0;
    right: 20px;
}

#barcode-search .barcode-search__area::before {
    border-right-color: transparent;
    border-top-color: transparent;
    bottom: 0;
    left: 20px;
}

#barcode-search .barcode-search__area::after {
    border-left-color: transparent;
    border-top-color: transparent;
    bottom: 0;
    right: 20px;
}

#barcode-search .barcode-search__area {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    width: calc(100% - 40px);
}

.barcode-search__area-left,
.barcode-search__area-right {
    width: 20px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

#barcode-search .barcode-search__footer {
    background-color: rgba(0, 0, 0, 0.4);
    height: 165px;
    -webkit-box-flex: 0;
    -webkit-flex-grow: 0;
    -ms-flex-positive: 0;
    flex-grow: 0;
}

#barcode-search form {
    margin: 20px;
    position: relative;
}

#barcode-search form input {
    border: 1px solid #2d2b30;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 1.2;
    color: #2d2b30;
    padding: 13px 14px;
    width: 100%;
    font-size: 14px;
    border-radius: 8px;
}

#barcode-search form input[type="submit"] {
    width: 90px;
    padding: 0 8px;
    color: #2d2b30;
    border: none;
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    font-weight: bolder;
    height: 100%;
}

#barcode-search .barcode-search__tools {
    position: relative;
}

#barcode-search .barcode-search__flashlight {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 60px;
    height: 60px;
    background-color: rgba(45, 43, 48, 0.7);
    margin: 0 20px 20px 20px;
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
}

#barcode-search .barcode-search__flashlight .barcode-search__flashlight-icon {
    background: url(/local/templates/.default/components/ip/nx.plugin/svetsharov_barcode_1.0/images/flashlight.svg) no-repeat;
    width: 40px;
    height: 40px;
}

#barcode-search .barcode-search__flashlight.active .barcode-search__flashlight-icon {
    background: url(/local/templates/.default/components/ip/nx.plugin/svetsharov_barcode_1.0/images/flashlight_active.svg) no-repeat;
}

#barcode-search .barcode-search__flashlight.active {
    background-color: #ffffff;
}

#barcode-search .barcode-search__camera {
    color: #ffffff;
    background-color: rgba(45, 43, 48, 0.7);
    margin: 0 20px 20px 20px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

#barcode-search .barcode-search__camera span {
    margin-left: 10px;
    font-size: 12px;
}

#barcode-search .barcode-search__camera img {
    width: 40px;
    height: 40px;
}

#barcode-search .barcode-search__cameras {
    position: absolute;
    top: -90px;
    left: 20px;
    display: none;
    background-color: rgba(45, 43, 48, 0.7);
    border-radius: 8px;
}

#barcode-search .barcode-search__cameras.active {
    display: block;
}

#barcode-search .barcode-search__cameras p {
    color: #ffffff;
    padding: 5px 10px 5px 30px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

#barcode-search .barcode-search__cameras p.select:before {
    font-family: nx, Tahoma, Geneva, sans-serif;
    content: "У";
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 10px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#barcode-search .barcode-search__cameras p {
    color: #ffffff;
    padding: 5px 10px 5px 30px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
    position: relative;
}

#barcode-search .barcode-search__cameras p.select:before {
    font-family: nx, Tahoma, Geneva, sans-serif;
    content: "У";
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 10px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

#barcode-search canvas.drawingBuffer {
    display: block;
    position: absolute;
    z-index: 10152;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-product {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10154;
    background-color: #fff;
    width: 100%;
    height: 100%;
}

.modal-product__close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10155;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: url(/local/templates/.default/components/ip/nx.plugin/svetsharov_barcode_1.0/images/close_prpl.svg) no-repeat;
    background-size: 100%;

}