﻿#selfinvoice {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 800px;
    padding: 30px 15px;
}

#selfinvoice .wrapper {
    margin-bottom: 30px;
    border: 1px solid #e3e8ec;
    padding: 20px;
    background-color: white;
}

#selfinvoice .wrapper:last-of-type {
    margin-bottom: 0;
}

#selfinvoice .wrapper-header {
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .65em;
    color: #16003a;
    opacity: .6;
}

.selfinvoice-logo {
    display: block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 40px;
    margin-bottom: 30px;
    width: 100%;
}

#receipt-details {
    margin-bottom: 30px !important;
}

.selfinvoice-row {
    display: flex;
    display: -ms-flexbox;
    align-items: center;
}

.selfinvoice-row-cell {
    flex-grow: 1;
}

.selfinvoice-row .selfinvoice-row-cell:last-of-type {
    text-align: right;
}

h2 {
    font-weight: bold;
    margin-bottom: 40px;
}

h4 {
    font-weight: 400;
    font-size: 1.5em;
}

.invoicing-methods {
    display: flex;
    display: -ms-flexbox;
    align-items: center;
    flex-direction: row;
}

.invoicing-method {
    flex-basis: 50%;
    height: 60px;
    text-align: center;
    font-weight: 400;
    background-color: #ffffff;
    border: 1px solid #e3e8ec;
    padding: 18px;
    cursor: pointer;
}

.invoicing-method.selected {
    background-color: #7766ff;
    border-color: rgba(119, 102, 255, .5);
    color: #ffffff;
    font-weight: 700;
}

.invoicing-method:not(.disabled):not(.selected):hover {
    background-color: rgba(119, 102, 255, .75);
    border-color: rgba(119, 102, 255, .5);
    color: #ffffff;
    z-index: 1;
}

.invoicing-method-show-for-type {
    display: none;
}

.invoicing-method-show-for-type.active {
    display: flex;
}

.new-invoicing-method {
    text-align: left;
}

#code, #amount, #email {
    width: 100%;
    padding: 10px;
    border: 1px solid #e3e8ec;
    outline: none;
    font-size: 1.25em;
    text-indent: .25em;
    letter-spacing: .25em;
    font-weight: 900;
    font-family: 'Courier New';
    text-align: center;
    text-transform: uppercase;
}

.d-flex #code {
    width: unset;
    flex-basis: 80%;
}

.d-flex a[data-scan-qrcode] {
    flex-basis: 20%;
}

#amount {
    width: 50%;
}

@media (max-width: 992px) {
    #selfinvoice .wrapper {
        margin-bottom: 15px;
    }

    .p-20.t-align-center {
        padding: 0 !important;
    }

    h2 {
        font-size: 1.35em;
        margin-bottom: 20px;
    }

    h4 {
        font-size: 1.15em;
    }

    #code, #amount, #email {
        padding: 10px;
        font-size: 1.15em;
        text-indent: .25em;
        letter-spacing: .25em;
    }

    .code-wrapper {
        flex-direction: column;
    }
}

#qrcode-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

a[data-close-qrcode] {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 1001;
    cursor: pointer;
    color: white;
    font-size: 1.5em;
}

a[data-close-qrcode] .fa {
    color: white;
}

#torch-btn {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 1001;
    cursor: pointer;
    font-size: 2em;
    color: white;
}

#qrcode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#qrcode-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/assets/media/bg/qrcode-scanner-overlay.png);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

#qrcode-container #qrcode-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: gray;
}

#qrcode-overlay {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px;
    padding-bottom: 60px;
}

#qrcode-canvas {
    display: none;
}

#qrcode-overlay-top {
    width: 100%;
    text-align: center;
    flex-grow: 1;
}

.therme-logo {
    height: 75px;
    width: 100%;
    background-image: url(/assets/media/logos/therme-bucharest.svg);
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
}

#qrcode-overlay-bottom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    font-size: 1.5em;
    color: white;
}

@media(max-width: 768px) {
    a[data-close-barcode] {
        top: 10px;
        right: 10px;
    }

    #torch-btn {
        top: 17.5px;
        left: 17.5px;
    }
}