/* color pallete */
:root {
  --background-color: #712115;
  --notificatin-back-color: #e0a536;
  --state-done: #22ce7f;
  --state-in-progress: #cea022;
  --state-waiting: #ce2243;
  --hover-color: #ceb2a9;
}

*,
::after,
::before {
  box-sizing: border-box;
}

/* typography */

html {
  /* font size for root element=10px */
  font-size: 62.5%;
  --fontFamily: "Cairo", sans-serif;
  --border-radius: 3rem;
}

body {
  margin: 2rem;
  font-size: 3rem;
  font-family: var(--fontFamily);
}

p {
  font-family: var(--fontFamily);
  font-size: 3rem;
  font-weight: 600;
}
.mainCardArea {
  margin: 5rem;
}
/* grid */

.grid {
  display: grid;
  grid-gap: 3rem;
  grid-template-columns: repeat(3, 1fr);
}

/* Portrait */
@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1.5) {
  .grid {
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Landscape */
@media only screen and (min-width: 1024px) and (max-height: 1366px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 1.5) {
  .grid {
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* state */

.state {
  background-color: white;
  border-radius: 3rem;
  display: inline-block;
  font-family: var(--fontFamily);
  font-size: 2.5rem;
  font-weight: 600;
  padding: 0.95rem 2.5rem;
  width: fit-content;
  white-space: nowrap;
}

/* states */

.waiting {
  color: var(--state-waiting);
}

.done {
  color: var(--state-done);
}

.in-progress {
  color: var(--state-in-progress);
}

/* tableId */

.tableId {
  font-size: 5rem;
  font-weight: 500;
  font-family: var(--fontFamily);
}

.tableId--with-background {
  display: inline-block;
  color: var(--notificatin-back-color);
  background-color: white;
  border-radius: 50%;
  width: 85px;
  text-align: center;
  height: 85px;
  padding-top: 1rem;
}

/* button style */

.btn {
  background: 0;
  border: 0;
  color: var(--background-color);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background-color: white;
  border-radius: 2rem;
  padding: 1rem 3rem;
}

/* cancel */

.cancel {
  color: white;
  font-size: 4rem;
  position: absolute;
  top: 2rem;
  left: 2rem;
}

/* pop-up style */
/* put this class as a parent for your component */
.pop-up {
  position: fixed;
  background-color: rgb(219 219 219 / 85%);
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  /* for animation */
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s ease;
}

.loder {
  background-color: floralwhite;
}
.noti-pop-up {
  position: fixed;
  height: 40vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  margin: 15px;
  bottom: 0;
  left: 0;

  /* for animation */
}
.noti-pop-up::-webkit-scrollbar {
  width: 0.5rem;
}

.noti-pop-up::-webkit-scrollbar-thumb {
  background-color: #712115b5;
  border-radius: var(--border-radius);
}

#layer1 {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
#layer1.show {
  pointer-events: auto;
  opacity: 1;
}

#layer2 {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
#layer2.show {
  pointer-events: auto;
  opacity: 1;
}

#layer3 {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}
#layer3.show {
  pointer-events: auto;
  opacity: 1;
}
#addProducts {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}
#addProducts.show {
  pointer-events: auto;
  opacity: 1;
}

#loaderLayer {
  opacity: 0;
  pointer-events: 0;
  background-color: rgb(255, 255, 255);
  transition: opacity 0.15s ease;
  z-index: 100;
}
#loaderLayer.show {
  pointer-events: auto;
  opacity: 1;
}

.loader {
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid var(--background-color); /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.save {
  background-color: var(--state-done);
  justify-self: start;
}
.cancell {
  background-color: var(--state-waiting);
  justify-self: end;
}

.save,
.cancell {
  color: white;
  padding: 1.9rem 8.9rem;
  width: fit-content;
  border-radius: 3rem;
  font-size: 3rem;
}

#centerBlock {
  display: table;
  margin: 0 auto;
  width: 200px;
}

.total_cost_container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2.5rem;
  gap: 1.5rem;
}
