/* https://simplernerd.com/css-footer-bottom/ */
html, body {
    height: 100%;
}
.container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
section {
    flex: 1;
}

.footer {
    margin-bottom: 15px;
    text-align: center;
}

.footer img {
    width: 50%;
}

.fab-container {
    bottom: 15px;
    right: 15px;
    position: fixed;
}

    .fab-container .sub-button {
        display: inline-block;
        color: #fff !important;
    }

        .fab-container .sub-button a {
            color: #fff;
            text-decoration: none;
            background: #000;
            padding: 10px 20px;
            border-radius: 5px;
        }

            .fab-container .sub-button a svg {
                fill: #fff;
                width: 20px;
                margin-bottom: -1px;
                margin-right: 10px;
            }

            .fab-container .sub-button a i {
                margin-right: 10px;
            }

.selectBig {
    height: 80px !important;
}

.selectBig .col-8 {
    white-space: initial;
}

.customer-info {
    line-height: 1.3;
}


.product_name {
    font-size: 1.5rem;
    margin-left: 30px;
    color: #000 !important;
}


.product_tag {
    /* text-transform: lowercase; */
}

.product_name::first-letter {
    text-transform: uppercase !important;
}


/* (A) FULL SCREEN WRAPPER */
#spinner {
    position: fixed;
    top: 0; left: 0; z-index: 9999;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s;
  }
   
  /* (B) CENTER LOADING SPINNER */
  #spinner img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%);
  }
   
  /* (C) SHOW & HIDE */
  #spinner {
    visibility: hidden;
    opacity: 0;
  }
  #spinner.show {
    visibility: visible;
    opacity: 1;
  }

.document-link, .document-link:hover, .document-link:visited {
    text-decoration: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    /* padding-right: 25px!important;*/
    text-overflow: '';
  }

.big-index {
    z-index: 1000000;
}

.mask-image {
    width: 145px;
    height: 100px;
    overflow: hidden;
    display: flex;
    background-color: #fff;
    align-items: flex-start;
}

#reader__dashboard_section_csr button {
    background: #000;
    color: #fff;
    border-radius: 5px;
    border: none;
    padding: 5px 15px;
}

.scannOther,
.scannOther:hover,
.scannOther:focus,
.scannOther:active {
    background: #fff;
    border: 1px solid #000 !important;
    color: #000 !important;
    outline: none;
}

.close-scannerModal,
.close-scannerModal:hover,
.close-scannerModal:focus,
.close-scannerModal:active {
    background: #000 !important;
    border-color: #000 !important;
    outline: none;
}

.close.close-scannerModal,
.close.close-scannerModal:hover,
.close.close-scannerModal:focus,
.close.close-scannerModal:active{
    background: #fff !important;
    border-color: #fff !important;
    outline: none;
}

.mask-image img.portrait {
    width: 100% !important;
    height: auto;
    max-width: unset !important;
    text-align: center;
}

.mask-image img.landscape {
    height: auto !important;
    width: 100% !important;
}

.content-products-extra .mask-image{
    width: 100%;
    height: auto;
    max-width: 100%;
    background: #fff;
    align-items: center;
}

.content-products-extra .product_name {
    font-size: 1rem;
    margin-left: 7px;
    color: #000 !important;
    margin-top: 10px;
}

.product-extra-element {
    background: #eee;
    padding: 5px;
    /* margin-bottom: 15px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.row.content-products-extra {
    max-height: 70vh;
    overflow: auto;
    margin-top: 30px;
}

.row.content-products-extra > div{
    margin-bottom: 15px;
}

input.search-product-extra {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.product-extra-element.active {
    background: #28a745;
}

.content-products-extra .product-extra-element.active .product_name {
    color: #fff !important;
}

span.remove-all {
    text-decoration: none;
    background: #fff;
    padding: 6px 10px 6px 9px;
    border-radius: 5px;
    font-weight: normal;
    border: 1px solid #212529;
    height: 37px;
    display: block;
    width: 39px;
    float: right;
    font-size: 1rem;
}

    span.remove-all svg {
        width: 18px;
        height: 18px;
        fill: #fff;
    }

span.remove-all.aux {
    width: 100%;
    text-align: center;
}

    span.remove-all.aux svg {
        margin-top: -5px;
        margin-left: 8px;
    }
.active .quantity{
    opacity: 1;
}

    .active .quantity span{
        color: #fff;
    }

    .active .quantity input, .active .quantity select{
        color: #000;
    }

.quantity {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    opacity: 0.3;
}
    .quantity span{
        cursor: pointer;
    }

    .quantity span, .quantity input {
        width: 40%;
        display: inline-block;
        text-align: center;
    }

    .quantity input{
        padding: 0;
        color: #fff;
    }

    .quantity select{
        color: #fff;
    }

    .quantity input[type='number']::-webkit-inner-spin-button, 
    .quantity input[type='number']::-webkit-outer-spin-button { 
        -webkit-appearance: none;
        margin: 0;
    }

#termsPolicyModal td {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
}

#termsPolicyModal .content-btn-terms{
    width: 100%;
    display: block;
    text-align: right;
}
#shoppingCart .highlight {
    display: inline-block;
    padding: 0.25em 0.9em;
    background: linear-gradient(90deg, #ffbe5a 60%, #ffc969 100%);
    color: #835800;
    font-weight: 600;
    border-radius: 999px;
    font-size: 1.05em;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    margin-top: 0.6em;
    margin-bottom: 0.2em;
    text-align: center;
    transition: background 0.2s;
    margin-left: 30px;
    white-space: nowrap;
}

.banner-mobile{
    display: none;
}
.banner-desktop img, .banner-mobile img{
    width: 100%;
}

.preview{
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    display: inline-block;
    opacity: 0.8;
}

.preview:focus {
    outline: none;
    box-shadow: none !important;
}

.preview.active, .preview.active:hover, .preview:hover {
    opacity: 1;
}

.preview-mobile{
    width: 480px;
    margin: auto;
    background: url(/web/images/iphone_mockup.png);
    background-size: 489px auto;
    padding: 80px 25px 89px 35px;
    background-repeat: no-repeat;
    overflow: hidden;
    height: 1000px;
}

    .preview-mobile .fab-container {
        bottom: 0px;
        right: 0;
        position: fixed;
        left: 0;
        background: #fff;
        padding: 10px 0;
    }

    .preview-mobile .fab-container .sub-button {
        width: 48vw;
        margin: 0;
        text-align: center;
    }

    .preview-mobile .fab-container .sub-button a {
        width: 100%;
        display: block;
        padding: 10px 5px;
        font-size: 0.9rem;
    }

    .preview-mobile .sub-button.shadow.add-product {
        margin-left: 5px;
    }

    .preview-mobile .sub-button.shadow.finish-order {
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-top: 10px;
    }

    .preview-mobile .mask-image {
        width: 120px;
        height: auto;
    }

    .preview-mobile .product_name {
        font-size: 1rem;    
        margin-left: 72px;
    }

    .preview-mobile footer {
        padding-bottom: 130px;
    }

    .preview-mobile #scannerModal .mask-image {
        width: 150px;
        height: auto;
    }

    .preview-mobile #scannerModal .product_name {
        font-size: 1rem;
        margin-left: 19px;
        margin-top: 10px;
    }

    .preview-mobile #scannerModal .table {
        margin-bottom: 0;
    }

    .preview-mobile #reader__dashboard_section_csr span {
        width: 100%;
        display: block;
        margin: 10px 0;
    }

    .preview-mobile .row.content-products-extra {
        max-height: 55vh;
    }

    .preview-mobile .sub-button.shadow.refund.finish-order {
        width: 48vw;
        margin-left: 2px;
    }

    .preview-mobile .banner-mobile{
        display: block;
    }
    .preview-mobile .banner-desktop{
        display: none;
    }

    .preview-mobile #shoppingCart .highlight {
        margin-left: 72px;
        font-size: 0.8rem;
    }

    .preview-mobile .container-page-commerce {
        height: 827px;
        overflow-y: auto;
        overflow-x: hidden;
    }
        .preview-mobile .container-page-commerce::-webkit-scrollbar {
            display: none;
        }



.button-banner{
    position: absolute;
    bottom: 20px;
    right: 30px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: 500;
    box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.5);
    border: 0.1px solid #ccc;
}

tr.item-highlight {
    background: rgba(255, 190, 90, 0.5);
    transition: all 1s ease;
}

    tr.item-highlight.added {
        background: rgba(212, 237, 218, 0.5);
    }

    tr.item-highlight.added .highlight{
        background: rgb(212, 237, 218) !important;
        color: #155724 !important;
        border-color: #c3e6cb;
    }

    tr.item-highlight .mask-image{
        border-radius: 5px;
    }

    tr.item-highlight .addLine{
        padding: 6px 9px;
    }

        tr.item-highlight .addLine svg{
            width: 20px;
            height: 20px;
            fill: #000;
        }

@media(max-width: 1024px) {
    .product_name {
        font-size: 1.2rem;
        margin-left: 90px;
    }
}

@media(max-width: 768px) {

    .fab-container {
        bottom: 0px;
        right: 0;
        position: fixed;
        left: 0;
        background: #fff;
        padding: 10px 0;
    }
    
    .fab-container .sub-button {
        width: 48vw;
        margin: 0;
        text-align: center;
    }

    .fab-container .sub-button a {
        width: 100%;
        display: block;
        padding: 10px 5px;
        font-size: 0.9rem;
    }

    .sub-button.shadow.add-product {
        margin-left: 5px;
    }

    .sub-button.shadow.finish-order {
        width: calc(100% - 10px);
        margin-left: 5px;
        margin-top: 10px;
    }

    .mask-image {
        width: 120px;
        height: auto;
    }

    .product_name {
        font-size: 1rem;
        margin-left: 50px;
    }

    footer {
        padding-bottom: 130px;
    }

    #scannerModal .mask-image {
        width: 150px;
        height: auto;
    }

    #scannerModal .product_name {
        font-size: 1rem;
        margin-left: 19px;
        margin-top: 10px;
    }

    #scannerModal .table {
        margin-bottom: 0;
    }

    #reader__dashboard_section_csr span {
        width: 100%;
        display: block;
        margin: 10px 0;
    }

    .row.content-products-extra {
        max-height: 55vh;
    }

    .sub-button.shadow.refund.finish-order {
        width: 48vw;
        margin-left: 2px;
    }

    .banner-mobile{
        display: block;
    }
    .banner-desktop{
        display: none;
    }

    #shoppingCart .highlight {
        margin-left: 50px;
        font-size: 0.8rem;
    }
}