
@import "https://meyerweb.com/eric/tools/css/reset/reset.css";

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  background-color: #7a909c;
}

.root {
  max-width: 1024px;
  margin: 0 auto;
}

header {
  margin-top: 10px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  line-height: 40px;
}

main {
  display: flex;
  flex-direction: row;
  background-color: #d1e3f4;
  height: 768px;
  position: relative;
}

.cart {
  flex: 1;
  flex-direction: column;
  height: 100%;
  display: flex;
}

.cart__top {
  flex: 1;
  flex-direction: column;
  background-color: #ffffff;
  display: flex;
  padding: 15px;
}

.cart__title {
  padding: 30px;
  font-size: 2em;
}

.cart__items {
  flex: 1;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  padding: 20px 0;
}

.cart__item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-auto-rows: 40px;
}

.cart__subtotal {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  line-height: 40px;
}

.cart__vat {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  line-height: 20px;
  font-size: 0.8em;
}

.cart__bottom {
  background-color: none;
  display: flex;
  justify-content: end;
}

.cart__total {
  flex: 1;
  margin: 5px 0;
  border: 1px solid #aaa;
  padding: 50px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 300px;
  font-size: 1.4em;
}

.controls {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.controls__top {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  padding: 10px;
  grid-auto-rows: 80px;
  direction: rtl;
}

.controls__bottom {
  display: flex;
  flex-direaction: row;
  justify-content: end;
  padding: 15px;
}

.button {
  box-shadow: 2px 2px 8px #333;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
}

.button--6 {
  grid-column: span 6;
}

.button--4 {
  grid-column: span 4;
}

.button--2 {
  grid-column: span 2;
}
.button--3 {
  grid-column: span 3;
}

.checkout {
  color: #ffffff;
  background-color: #5cc62d;
  font-size: 1.4em;
  font-weight: bold;
  padding: 50px;
  width: 300px;
}

#chimpy {
  background-color: #8dc63e;
  background-image: url(https://avatars.githubusercontent.com/u/9450507?s=400&u=c46182075571d216cc594c5ca975eb11dc762db7&v=4);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

#scanner {
  opacity: 0;
}

.login {
  background: rgba(0, 0, 0, 70%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.login__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.login__title {
  font-size: 1.3em;
}

.login__form {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid;
  display: flex;
  flex-direction: column;
}

.login__row {
  display: flex;
  padding-top: 20px;
}

.login__row--right {
  justify-content: end;
}

.login__label {
  display: flex;
  flex-direction: column;
  padding: 0 5px;
  font-size: 12px;
}

.login__label input {
  font-size: 1rem;
  padding: 5px;
}

.checkout-popup {
  background: rgba(0, 0, 0, 70%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.checkout-popup__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.checkout-popup__form {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.checkout-popup__buttons {
  display: flex;
  padding-top: 20px;
  gap: 25px;
}

.checkout-popup__buttons > * {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  width: 300px;
  height: 100px;
}
