* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Rubik", sans-serif;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

a, a:visited {
  text-decoration: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
  padding-inline: clamp(0.625rem, 3vw + 1rem, 3.125rem);
  padding-block: clamp(10px, 2vw, 20px);
  background-color: hsl(13, 31%, 94%);
}
@media (min-width: 992px) {
  .wrapper {
    display: grid;
    grid-template-columns: 3fr 30%;
    gap: 40px;
  }
}

.overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-out;
}
.overlay.showOverlay {
  opacity: 1;
  visibility: visible;
}

.cartItems__header {
  padding-inline: 10px;
  padding-block: clamp(10px, 2vw, 20px);
  color: hsl(14, 65%, 9%);
}
.cartItems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5625rem;
}
.cartItems__grid .card {
  display: flex;
  flex-direction: column;
}
.cartItems__grid .card .picture {
  width: 100%;
  display: grid;
}
.cartItems__grid .card .picture picture {
  grid-column: 1/-1;
  grid-row: 1/-1;
}
.cartItems__grid .card .picture picture img {
  border-radius: 0.9375rem;
}
.cartItems__grid .card .picture picture img.imgBorder {
  border: 2px solid hsl(14, 86%, 42%);
}
.cartItems__grid .card .picture .card__addButton,
.cartItems__grid .card .picture .card__interActButton {
  grid-column: 1/-1;
  grid-row: 1/-1;
  justify-self: center;
  align-self: flex-end;
  padding-block: 0.75rem;
  background-color: hsl(20, 50%, 98%);
  border-radius: 1.25rem;
  position: relative;
  bottom: -19.5px;
  transition: all 0.3s;
}
.cartItems__grid .card .picture .card__addButton {
  cursor: pointer;
  padding-inline: 1.5625rem;
  display: flex;
  gap: 0.625rem;
  color: hsl(14, 65%, 9%);
  font-weight: 500;
  box-shadow: 0 0 1px hsl(14, 65%, 9%);
}
.cartItems__grid .card .picture .card__addButton.hideAddButton {
  opacity: 0;
  visibility: hidden;
}
.cartItems__grid .card .picture .card__addButton:hover {
  border: 1px solid hsl(14, 86%, 42%);
  box-shadow: none;
}
.cartItems__grid .card .picture .card__interActButton {
  cursor: pointer;
  background-color: hsl(14, 86%, 42%);
  width: 170px;
  height: 44px;
  justify-content: space-between;
  color: white;
  padding-inline: 0.9375rem;
  visibility: hidden;
  opacity: 0;
  display: flex;
}
.cartItems__grid .card .picture .card__interActButton.toggleCardInterActBtn {
  opacity: 1;
  visibility: visible;
}
.cartItems__grid .card .picture .card__interActButton img {
  border: 2px solid hsl(13, 31%, 94%);
  border-radius: 50%;
  cursor: pointer;
  padding: 0.1875rem;
  z-index: 2;
  flex: 0;
  max-width: fit-content;
}
.cartItems__grid .card .picture .card__interActButton .numberOfItems {
  cursor: auto;
}
.cartItems__grid .card__details {
  margin-block-start: 2.1875rem;
  margin-block-end: 1.25rem;
}
.cartItems__grid .card__details .card__title {
  font-size: 0.75rem;
  color: hsl(12, 20%, 44%);
  font-weight: 500;
}
.cartItems__grid .card__details .card__fullName {
  font-size: 1rem;
  font-weight: 600;
  margin-block: 0.3125rem;
}
.cartItems__grid .card__details .card__price {
  color: hsl(14, 86%, 42%);
  font-size: 1.0625rem;
  font-weight: 600;
}

.selectedItemsWrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: hsl(20, 50%, 98%);
  padding: clamp(10px, 2vw, 20px);
  border-radius: 0.5rem;
  overflow: hidden;
}
@media (min-width: 992px) {
  .selectedItemsWrapper {
    align-self: flex-start;
  }
}

.section__empty {
  position: absolute;
  transition: all 0.8s ease-in-out;
  transform: translateX(-150%);
  opacity: 0.7;
  width: calc(100% - 40px);
  margin-block-start: initial;
  margin-block-end: 1.875rem;
  margin-inline: auto;
}
.section__empty.showEmpty {
  position: relative;
  transform: translateX(0);
  opacity: 1;
}
.section__empty .cakeImg {
  margin-inline: auto;
}

.section__title,
.popupConfirmTitle {
  color: hsl(14, 86%, 42%);
  margin-block-end: 0.625rem;
}
.section__note {
  text-align: center;
  font-size: 0.625rem;
  color: hsl(14, 65%, 9%);
}

.select__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 2vw, 20px);
  position: relative;
  transition: all 0.3s;
}
.select__wrapper::after {
  content: "";
  width: calc(100% - 40px);
  height: 1px;
  background-color: hsl(14, 25%, 72%);
  position: absolute;
  bottom: 0;
}
.select__wrapper:empty {
  display: none;
}
.select__wrapper:empty::after {
  background-color: transparent;
}
.select__wrapper .order__details {
  display: flex;
  flex-direction: column;
}
.select__wrapper .order__details .orderTitle {
  color: hsl(14, 65%, 9%);
  margin-block-end: 0.625rem;
  font-size: 1rem;
}
.select__wrapper .order__details .order__numericDetails span:first-of-type {
  display: inline-block;
  margin-inline-end: 0.625rem;
  color: hsl(14, 86%, 42%);
}
.select__wrapper .order__details .order__numericDetails span:nth-child(2) {
  margin-inline-end: 0.625rem;
  color: hsl(7, 20%, 60%);
}
.select__wrapper .order__details .order__numericDetails span:last-of-type {
  color: hsl(12, 20%, 44%);
  font-weight: bold;
}
.select__wrapper .removeBtn {
  display: block;
  font-size: 15px;
  border: 1px solid rgba(0, 0, 0, 0.555);
  border-radius: 50%;
  width: 1.25rem;
  padding: 0.125rem;
  cursor: pointer;
  text-align: center;
}
.select__wrapper .removeBtn:hover {
  border-color: black;
}

.orderTotal {
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 2vw, 20px);
  position: absolute;
  transition: all 0.5s ease-in-out;
  transform: translateX(550%);
  opacity: 0.7;
}
.orderTotal.showOrderTotal {
  position: relative;
  transform: translateX(0);
  opacity: 1;
}
.orderTotal__sumOfAllOrders {
  display: flex;
  align-items: center;
}
.orderTotal__sumOfAllOrders h3 {
  font-weight: normal;
  font-size: 0.875rem;
}
.orderTotal__sumOfAllOrders span {
  margin-left: auto;
  font-weight: bolder;
  font-size: 1.25rem;
  color: hsl(14, 65%, 9%);
}
.orderTotal__details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  margin: auto;
  background-color: hsl(14, 25%, 72%);
  border-radius: 0.625rem;
  padding: 0.625rem;
  gap: 0.3125rem;
  margin-block-start: 1.875rem;
}
.orderTotal__details.hideTotalOrderDetails {
  display: none;
}
.orderTotal__details p {
  font-size: 0.875rem;
}

.button {
  background-color: hsl(14, 86%, 42%);
  color: hsl(13, 31%, 94%);
  padding-block: 0.9375rem;
  padding-inline: 1.875rem;
  margin-inline: auto;
  margin-block: 0.9375rem;
  width: 90%;
  border-radius: 1.25rem;
  text-align: center;
  cursor: pointer;
  order: 1;
  display: none;
}
.button:hover {
  background-color: hsl(14, 65%, 9%);
}
.button.showConfirm {
  display: block;
}

.selectedItemsPopup {
  display: flex;
  flex-direction: column;
  background-color: hsl(20, 50%, 98%);
  border-radius: 0.5rem;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  top: -100%;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}
.selectedItemsPopup.showSection {
  height: fit-content;
  z-index: 3;
  width: calc(100% - clamp(0.625rem, 3vw + 1rem, 3.125rem) * 2);
  top: 85%;
}
@media (min-width: 992px) {
  .selectedItemsPopup.showSection {
    transform: translate(-50%, -50%);
    top: 30%;
    left: 50%;
    width: max(40%, 350px);
    height: fit-content;
  }
}
.selectedItemsPopup .popupConfirmTitle {
  color: hsl(14, 65%, 9%);
  display: flex;
  flex-wrap: wrap;
  max-width: 15ch;
  line-height: 1.5;
  font-size: 27px;
  gap: 10px;
  order: -1;
  margin-block: 1.25rem;
  padding-inline-start: 1.25rem;
}
.selectedItemsPopup .popupConfirmTitle img {
  order: -1;
}
.selectedItemsPopup .popupConfirmTitle p {
  font-size: 0.75rem;
  max-width: 30ch;
  color: hsl(14, 25%, 72%);
  font-weight: normal;
}
.selectedItemsPopup .select__wrapper {
  gap: 10px;
  padding: clamp(5px, 10vw, 10px);
}
.selectedItemsPopup .select__wrapper img {
  order: -1;
  border-radius: 10px;
  width: clamp(40px, 10vw, 60px);
}
.selectedItemsPopup .select__wrapper .order__details {
  width: 100%;
}
.selectedItemsPopup .select__wrapper .orderTitle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.selectedItemsPopup .select__wrapper .orderTitle h2 {
  font-size: 0.75rem;
}
.selectedItemsPopup .select__wrapper .orderTitle span {
  color: black;
  font-weight: normal;
}
.selectedItemsPopup .select__wrapper .order__numericDetails {
  font-size: 0.75rem;
}
.selectedItemsPopup .button--newOrder {
  display: block;
}

.section__content.brownBg,
.orderTotal.brownBg {
  background-color: hsl(13, 31%, 94%);
  margin-inline: clamp(10px, 2vw, 20px);
}

.attribution {
  display: flex;
  font-size: 11px;
  position: fixed;
  background: hsl(0, 29%, 12.2%);
  border-radius: 5px;
  width: 35%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.8;
  top: 10%;
  left: -45%;
  color: hsl(36.7, 84.1%, 49.2%);
  box-shadow: 0px 0px 5px #b74426;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
.attribution a {
  color: hsl(28.6, 44.7%, 72.4%);
  text-decoration-line: underline;
}
@media (max-width: 991px) {
  .attribution {
    animation: moveToLeft 10s ease-in-out 4 alternate;
  }
}
@media (min-width: 992px) {
  .attribution {
    width: 18%;
    left: -15%;
  }
  .attribution:hover {
    left: 0;
  }
}

@keyframes moveToLeft {
  from {
    left: -45%;
  }
  to {
    left: 0;
  }
}/*# sourceMappingURL=style.css.map */