/*
56514B • E7E5DD • BDBBAD • 999990
E7E5DD • 56514B • 56514B • 56514B
*/
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Signika+Negative&display=swap");

body {
  color: #56514b;
  font-size: 17px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  font-family: "Signika Negative", sans-serif;
}
body.bill {
  flex-direction: column;
}

section.products {
  flex: 0 0 70%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
section.products > div {
  background-color: #e7e5dd;
  border-radius: 10px;
  box-sizing: border-box;
  padding: 1rem;
  position: relative;
  margin: 1rem;
  flex: 0 0 20%;
  text-align: center;
  cursor: pointer;
}
/* Solving click event bug */
section.products > div:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
section.products > div > img {
  max-height: 5rem;
  max-width: 5rem;
  margin-bottom: 1rem;
}
section.products > div > p {
  margin: 0;
  padding: 0;
}

section.bill {
  background-color: #e7e5dd;
  box-sizing: border-box;
  flex: 0 0 30%;
  padding: 2rem;
}
section.bill > .bill-products {
  border-bottom: 1px solid #bdbbad;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}
section.bill > .bill-products p {
  margin: 0;
}
section.bill form .hidden {
  display: none;
}
section.bill form > div {
  margin-bottom: 0.5rem;
}
section.bill form label {
  display: none;
}
section.bill form input[type="text"] {
  display: block;
  background: transparent;
  border: 1px solid #bdbbad;
  border-radius: 5px;
  box-sizing: border-box;
  color: #56514b;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  width: 100%;
}
section.bill form input[type="submit"] {
  display: block;
  background: #56514b;
  border: 1px solid #56514b;
  border-radius: 5px;
  box-sizing: border-box;
  color: #e7e5dd;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  transition: 0.3s ease-in-out;
  width: 100%;
}
section.bill form input[type="submit"]:hover {
  background: #e7e5dd;
  border: 1px solid #56514b;
  color: #56514b;
}

section.bill-print {
  display: block;
  border: 1px solid #56514b;
  box-sizing: border-box;
  margin: 2rem auto;
  max-width: 350px;
  padding: 2rem 1.5rem;
  width: 100%;
}
section.bill-print h1 {
  margin: 0;
}
section.bill-print p {
  margin: 0;
}
section.bill-print p span {
  display: inline-block;
}
section.bill-print .bill-print-user p span:last-of-type,
section.bill-print .bill-print-products p span:last-of-type,
section.bill-print .bill-print-total p span:last-of-type {
  font-weight: bold;
  text-align: right;
  float: right;
}
section.bill-print .bill-print-change p span:last-of-type {
  font-weight: bold;
  text-align: right;
  float: right;
}
section.bill-print .bill-print-products p:first-of-type {
  font-weight: bold;
}
section.bill-print .bill-print-header {
  text-align: center;
}
section.bill-print .bill-print-user {
  border-top: 1px solid #56514b;
  border-bottom: 1px solid #56514b;
  margin: 1rem 0;
  padding: 0.5rem 0;
}
section.bill-print .bill-print-total p {
  border-top: 1px solid #56514b;
  margin-top: 1rem;
  padding-top: 0.5rem;
}
section.bill-actions button {
  display: block;
  background: #56514b;
  border: 1px solid #56514b;
  border-radius: 5px;
  box-sizing: border-box;
  color: #e7e5dd;
  font-size: 1rem;
  margin: 1rem auto;
  max-width: 350px;
  padding: 0.5rem 1.5rem;
  transition: 0.3s ease-in-out;
  width: 100%;
}
section.bill-actions button:hover {
  background: #e7e5dd;
  border: 1px solid #56514b;
  color: #56514b;
}
@media print {
  body {
    min-height: unset;
  }
  section.bill-actions {
    display: none;
  }
}

.formContainer {
  display: block;
  max-width: 320px;
  margin: 30px auto 0 auto;
  background-color: #eee;
}

.formContainer:after,
.formContainer:before {
  content: " ";
  display: table;
}

.formContainer:after {
  clear: both;
}

form {
  width: 100%;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
/* 
#display,
#totalprice,
#change {
  width: 100%;
  min-height: 84px;
  display: block;
  padding: 0 15px;
  text-align: right;
  text-overflow: clip;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  background-color: #008a12;
  border: 0;
} */

input[type="button"],
#equal {
  width: 80px;
  height: 80px;
  display: block;
  float: left;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background-color: #eee;
  border: 0;
  border-bottom: 1px solid #bbb;
}

input[type="button"]:hover,
#equal:hover {
  cursor: pointer;
  background-color: #ddd;
}

input[type="button"]:active,
#equal:active {
  cursor: pointer;
  background-color: #bbb;
}

input:focus {
  box-shadow: 0;
  outline: 0;
  background-color: #eee;
}

.linkReferesh {
  display: block;
  max-width: 320px;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 30px auto;
}

@media screen and (max-width: 400px) {
  .formContainer {
    margin: 0 auto;
  }
}

@media screen and (max-width: 990px) {
  input[type="button"]:hover,
  #equal:hover {
    background-color: #eee;
  }
  input[type="button"]:active,
  #equal:active {
    background-color: #bbb;
  }
}
.modal-dialog {
  max-width: 80% !important;
}
.btnred:hover {
  border: 1px solid #7e2e36 !important;
  background-color: #7e2e36 !important;
  box-shadow: 0 0 10px #7e2e36 !important;
  color: #fff;
}
.btnred:active {
  background-color: #7e2e36 !important;
  box-shadow: 0 0 10px #7e2e36 !important;
  color: #fff;
}
.btnred {
  border: 1px solid #7e2e36 !important;
  background: #7e2e36 !important;
  color: #fff !important;
}
.btnred:focus {
  background-color: #7e2e36 !important;
  box-shadow: 0 0 10px #7e2e36 !important;
  color: #fff;
}
.color-red {
  color: #7e2e36 !important;
}
