@import 'style/button.css';
@import 'style/checkbox.css';
@import 'style/font.css';
@import 'style/grid.css';
@import 'style/input.css';
@import 'style/modal.css';
@import 'style/radio.css';
@import "style/row.css";
@import 'style/menu.css';

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

[hidden] {
    display: none !important;
}

html {
    height: 100%;
}

body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    font-family: Verdana, Arial, sans-serif;
    background-color: #FFF;
}

section, .section {
    width: 100%;
    max-width: 50em;
    margin: 0 auto;
    padding-left: .5em;
    padding-right: .5em;
}

/* Header */

.closed-header[closed] {
    padding: .5em 0;
    background: red;
    color: white;
    text-align: center;
    font-weight: bold;
}

.header-background {

}

.header-foreground {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1em;
    padding: .5em 0;
}

[app='pos'] .header-foreground {
    display: flex;
    align-items: center;
    gap: 1em;
}

.header-content {

}

/* Secondary Action */

.secondary-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5em;
    height: 5em;
    border-radius: 50%;
    padding: .25em;
    color: #fff;
    font-weight: bold;
    background: #0174ad;
    border: .25em solid #008cd8;
}

.secondary-action:active,
.secondary-action:hover,
.secondary-action:focus,
.secondary-action:visited,
.secondary-action:link {
    color: #fff;
}

/* Primary Action */

.primary-action {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5em;
    height: 5em;
    border-radius: 50%;
    padding: .25em;
    color: #fff;
    background: #0174ad;
    border: .25em solid #008cd8;
}

.primary-action:active,
.primary-action:hover,
.primary-action:focus,
.primary-action:visited,
.primary-action:link {
    color: #fff;
}

.primary-action .action-count {
    position: absolute;
    top: .1em;
    right: .1em;
    height: 1.8em;
    width: 1.8em;
    line-height: 1.8em;
    background-color: darkblue;
    border-radius: 50%;
    font-size: .8em;
    font-weight: bold;
    text-align: center;
}

.empty-cart {
    padding: 1em;
    text-align: center;
}

.store-closed {
    padding: 1em;
    text-align: center;
}

[app='pos'] header {
    padding: .5em 0;
    background: black;
    color: white;
}

[app='pos'] main {
    background: black;
    color: white;
}

/* Lock */

.pos-lock-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    color: #666;
}