﻿/* increase bootstrap default container width */

.fixed-top-responsive {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;    
}

.fixed-bottom-responsive {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;    
}

@media (min-width: 1200px) {
    .container {
        max-width: 1460px;
    }

    .kiosk-cart-margin {
        margin-right: 160px;
    }    
}

@media (max-height: 950px) {
    .fixed-top-responsive {
        position: relative;
        margin-right: 0 !important;
    }

    .fixed-body-responsive {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .fixed-bottom-responsive {
        position: relative;
        margin-right: 0 !important;
    }

    .page-scroll-button {
        display: none !important;
    }

    body {
        scrollbar-width: auto !important;
        /* old code to show scroll bar hidden by css padding */
        /*overflow-y: auto;*/
        /*overflow-x: hidden;*/
        /*padding-right: 0px !important;*/ /* restores scroll bar */
    }
}

@media (max-height: 950px) and (min-width: 992px) {
    #verticalKioskCartDiv {
        display: none !important;
    }

    #horizontalKioskCartDiv {
        display: block !important;
    }

    .kiosk-cart-margin {
        margin-right: 0px !important;
    }  
}

@media (max-height: 600px) and (min-width: 1024px) {
    #verticalKioskCartDiv {
        display: none !important;
    }

    #horizontalKioskCartDiv {
        display: block !important;
    }

    .kiosk-cart-margin {
        margin-right: 0px !important;
    }
}

/* bizgin store */

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    width: 100%;
    overflow-y: auto;
    /*padding-right: 0px;*/
    box-sizing: content-box;
}

#siteBodyDiv {
    /* position: relative;*/
}

.content {
    padding-top: 1.1rem;
}

.content-hidden {
    display: none;
}

.content-none {
    display: none;
}

.kiosk-min-height {
    min-height: 1000px !important;
}

.page-loader {
    display: none;
}

.item-card-image-cell {
    height: 16rem;
}

.item-details-image-cell {
    height: 40rem;
}

.bg-contain {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    height: 300px
}

.unselectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.no-resize {
    resize: none;
}

.large-switch {
    transform: scale(1.5) translate(0.5rem, 0);
    margin: 0.25rem 2.5rem 0.5rem 0;
}

.pill-hover:hover {
    color: rgba(0, 0, 0, .65);
    background-color: rgba(0, 0, 0, .15);
    border-radius: 0.2rem;
}

.fs-small {
    font-size: 0.8rem !important;
    line-height: 0.9rem !important;
}

.no-left-border {
    border-left: none !important;
}

.no-right-border {
    border-right: none !important;
}

.no-left-radius {
    -webkit-border-top-left-radius: 0 !important;
    -moz-border-radius-topleft: 0 !important;
    border-top-left-radius: 0 !important;
    -webkit-border-bottom-left-radius: 0 !important;
    -moz-border-radius-bottomleft: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.no-right-radius {    
    -webkit-border-top-right-radius: 0 !important;
    -moz-border-radius-topright: 0 !important;
    border-top-right-radius: 0 !important;
    -webkit-border-bottom-right-radius: 0 !important;
    -moz-border-radius-bottomright: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.darken {
    filter: brightness(0.85);
}

.lighten {
    filter: brightness(1.25);
}

.bg-match-border {
    border-width: 1px;
}

.btn-remove-hover-bounce:hover {
    cursor: default;
    color: white !important;
}

/* blazor default css rules */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* collapse menu */

.dropdown-toggle {
    outline: 0;
}

.nav-flush .nav-link {
    border-radius: 0;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: 0;
}

.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .65);
    background-color: rgba(0, 0, 0, .15);
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, .65);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {    
    background-color: rgba(0, 0, 0, .15);
}

.btn-toggle-dark {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    background-color: transparent;
    border: 0;
}

.btn-toggle-dark:hover,
.btn-toggle-dark:focus {
    color: rgba(255, 255, 255, .65);
    background-color: rgba(255, 255, 255, .15);
}

.btn-toggle-dark::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle-dark[aria-expanded="true"] {
    color: rgba(255, 255, 255, .65);
}

.btn-toggle-dark[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-dark-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-dark-nav a:hover,
.btn-toggle-dark-nav a:focus {
    background-color: rgba(255, 255, 255, .15);
}

.btn-hover-hand:hover {
    cursor: pointer;
}

.btn-remove-hover-bounce:hover {
    margin-top: 0 !important;
    text-decoration: none;    
}

.brighten {
    filter: brightness(150%);
}

.scrollarea {
    overflow-y: auto;
}

.fw-semibold {
    font-weight: 600;
}

.lh-tight {
    line-height: 1.25;
}

.remove-focus {
    outline: none;
}

.nav-breadcrumb-divider {
    --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='currentColor'/%3E%3C/svg%3E");
}

input[type=number]::-webkit-inner-spin-button {
    opacity: 1;
}

.mix-blend {
    mix-blend-mode: difference;
}

/* product nav */

.product-nav-container {
    max-height: 30rem;
    overflow-y: auto;
}

.product-nav-container::-webkit-scrollbar-track {
    border: 1px solid #FFF;
    padding: 0.2rem 0;
    background-color: #E0E0E0 ;
}

.product-nav-container::-webkit-scrollbar {
    width: 0.65rem;
}

.product-nav-container::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    box-shadow: inset 0 0 0.5rem rgba(255,255,255,.3);
    background-color: #BABBBD;
    border: 1px solid #FFF;
}

.product-dark-nav-container
{
    max-height: 30rem;
    overflow-y: auto;
}

.product-dark-nav-container::-webkit-scrollbar-track {
    border: 1px solid #000;
    padding: 0.2rem 0;
    background-color: #404040;
}

.product-dark-nav-container::-webkit-scrollbar {
    width: 0.65rem;
}

.product-dark-nav-container::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    box-shadow: inset 0 0 0.5rem rgba(0,0,0,.3);
    background-color: #737272;
    border: 1px solid #000;
}

/* end product nav */

/* step progress bar */

.step-progress-container {
    display: flex;
    justify-content: space-between;
    margin: auto;
}

.step-progress-item {
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-progress-item::before {
    content: '';
    position: absolute;
    width: 100%;
    top: 0.95rem;
    left: -50%;
    z-index: 2;
    border-bottom: 0.25rem solid gray;
}

.step-progress-item::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 0.95rem;
    left: 50%;
    z-index: 2;
    border-bottom: 0.25rem solid gray;
}

.step-progress-item .step-progress-bullet {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: gray;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-progress-item.step-current {
    font-weight: bold;
}

.step-progress-item.step-done .step-progress-bullet {
    background-color: green;
    color: white;
}

.step-progress-item.step-cancel .step-progress-bullet {
    background-color: red;
    color: white;
}

.step-progress-item.step-hold .step-progress-bullet {
    background-color: orange;
    color: white;
}

.step-progress-item.step-done::after {
    position: absolute;
    content: '';
    width: 100%;
    top: 0.95rem;
    left: 50%;
    z-index: 3;
    border-bottom: 0.25rem solid green;
}

.step-progress-item.step-cancel::after {
    position: absolute;
    content: '';
    width: 100%;
    top: 0.95rem;
    left: 50%;
    z-index: 3;
    border-bottom: 0.25rem solid red;
}

.step-progress-item.step-hold::after {
    position: absolute;
    content: '';
    width: 100%;
    top: 0.95rem;
    left: 50%;
    z-index: 3;
    border-bottom: 0.25rem solid orange;
}

.step-progress-item:first-child::before {
    content: none;
}

.step-progress-item:last-child::after {
    content: none;
}

/* end step progress bar */

/* timeline */

ul.timeline {
    position: relative;
    list-style-type: none;
}

ul.timeline:before {
    position: absolute;
    display: inline-block;
    background: green;
    left: 1.75rem;
    width: 0.25rem;
    height: 100%;
    content: '';
    z-index: 1;
}

ul.timeline > li {
    margin: 1rem 0;
    padding-top: 0;
    padding-left: 1.5rem;
}

ul.timeline > li:before {
    position: absolute;
    display: inline-block;
    left: 1.05rem;
    width: 1.6rem;
    height: 1.6rem;
    color: white;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='white' class='bi bi-check' viewBox='0 0 17 15'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
    text-align: center;    
    background: green;
    border-radius: 50%;
    border: 0.2rem solid green;
    z-index: 2;
}

/* end timeline */

/* drag and drop */

.drag-anchor {
    cursor: move;
    user-select: none;
}

.drag-over {
    border-top: 2px solid #007bff !important;
}

tr[draggable="true"] {
    cursor: default;
}

/* end drag and drop */

.table-responsive {
    overflow-x: auto;
}

.min-width-tablet {
    min-width: 768px; /* Minimum width for a small tablet */
}

@media (max-width: 767px) {
    .table-responsive {
        overflow-x: scroll;
    }
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.cursor-move {
    cursor: move;
}

.drag-over {
    border-top: 2px solid #007bff !important;
}

tr[draggable="true"] {
    cursor: move;
}