.preloader-holder {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fffffff2;
  z-index: 10000;
}
.preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 128px;
  width: 128px;
  margin: -64px 0 0 -64px;
  -webkit-animation: 2s linear infinite fade;
  animation: 2s linear infinite fade;
}
.status {
  margin: 1em 0;
}
.status.error {
  color: #e11d48;
}
.status.success {
  color: green;
}
.req.error {
  border-color: #e11d48;
}
body .captcha-row.invisible.logo_captcha_n {
  display: none;
}

main {
  min-height: 100vh;
}

/* OPT */
.logo {
  margin-right: 60px;
  flex-shrink: 0;

  @media (max-width: 768px) {
    width: 60px;
    margin-right: 48px;
  }

  @media (max-width: 450px) {
    width: 30px;
    margin-right: 24px;
  }
}

.section-menu {
  padding-bottom: 50px;
}

.menu-card-opt {
  scroll-margin-top: 1rem;
  -moz-column-break-inside: avoid;
  break-inside: avoid;
  padding-top: 3.125rem;
}

@media (min-width: 640px) {
  .menu-card-opt {
    padding-top: 3.125rem;
  }
}

@media (min-width: 768px) {
  .menu-card-opt {
    padding-top: 3.125rem;
  }
}

.menu-card-opt__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .menu-card-opt__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .menu-card-opt__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 10px;
  }
}

.menu-item-opt {
  display: flex;
  flex-direction: column;
}

.menu-item-opt:hover .item-image img {
  box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.15);
}

.item-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: box-shadow 0.2s ease-in-out;
}

.menu-item__name {
  margin: 10px 0 2px;
  line-height: 1.2;
  word-break: break-word;
  text-wrap: balance;

  .weight {
    font-style: italic;
  }
}

.menu-item__composition {
  color: #52525b;
  line-height: 1.2;
}

.menu-item__tocart {
  margin-top: 20px;
}

.menu-item__button {
  margin-left: 0;
  gap: 0px;
  padding: 0;
  font-size: 13px;
  transition:
    box-shadow 0.2s ease-in-out,
    background-color 0.15s ease-in-out;
}

.menu-item__button button:first-child {
  padding-left: 10px;
  padding-right: 5px;
}

.menu-item__button button:last-child {
  padding-left: 5px;
  padding-right: 10px;
}

.menu-item__button button:active {
  position: relative;
  top: 1px;
}

.menu-item__button--active {
  box-shadow: 0 0 1rem 0.3rem #bf98a170;
}

.menu-item-input {
  outline: transparent;
  background: transparent;
  height: 30px;
  line-height: 30px;
  width: 45px;
  text-align: center;
  color: #d4d4d8;
  display: block;
  padding: 0;
  font-size: 16px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
}

.menu-item__price-total {
  margin-top: 20px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  width: 100%;
  flex-grow: 1;
}

.menu-item__amount {
  display: block;
}

.menu-item__button--active .menu-item-input,
.menu-item__button--active .item-quantity-plus,
.menu-item__button--active .item-quantity-minus {
  color: #fff;
}

.menu-item_description {
  color: #52525b;
  font-size: 14px;
  line-height: 1;
  margin-left: 5px;
}

.font-roboto {
  font-weight: 500;
}

.cart-button .font-roboto {
  font-weight: normal;
}

.menu-item__button .hidden {
  pointer-events: none;
  display: block;
  color: #d4d4d8;
}

.menu-item__button:not(.menu-item__button--active):hover {
  background: transparent;
}

.menu-item__button:not(.menu-item__button--active):hover button[data-entity='item-quantity-plus'],
.menu-item__button:not(.menu-item__button--active):hover button[data-entity='item-weight-plus'] {
  color: #000;
}

/* cart */

.cart-container {
  width: 100%;
  max-width: 750px;
}

.cart-items {
  display: grid;
  grid-template-rows: 1fr;
  gap: 15px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 80px 80px 30px;
  width: 100%;
  gap: 20px 15px;
  position: relative;
  counter-increment: number;
}

.cart-item__titles {
  display: flex;
  flex-direction: column;
  padding-left: 30px;
}

.cart-item__titles::before {
  content: counter(number);
  font-size: 12px;
  position: absolute;
  left: 0;
  top: 6px;
}

.cart-item__title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.cart-item__description {
  font-size: 14px;
  color: #52525b;
}

.cart-item__quantity,
.cart-item__weight,
.cart-item__price {
  padding-top: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.delete__button {
  color: #52525b;
  cursor: pointer;
  display: flex;
  position: relative;
  top: 2px;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: all 0.1s ease-in-out;
}

.delete__button:hover {
  color: #e11d48;
  transform: rotate(90deg);
}

.delete__button:active {
  top: 3px;
}

@media (max-width: 530px) {
  .cart-item {
    grid-template-columns: 1fr 50px 50px 30px;
    gap: 10px 5px;
  }

  .cart-item__titles {
    padding-left: 0;
  }

  .cart-item__titles::before {
    content: '';
  }

  .cart-item__title {
    font-size: 14px;
  }

  .cart-item__description {
    font-size: 10px;
    line-height: 1.5;
    height: 15px;
  }

  .cart-item__quantity,
  .cart-item__weight,
  .cart-item__price {
    padding-top: 0;
    font-size: 12px;
  }

  .delete__button {
    top: -5px;
    width: 24px;
    height: 24px;
  }

  .delete__button:hover {
    color: #52525b;
    transform: rotate(0deg);
  }

  .delete__button:active {
    top: -5px;
    color: #e11d48;
    transform: rotate(0deg);
  }
}

.cart-information {
  margin: 0 0 20px;
  font-size: 14px;
  color: #52525b;
  text-align: right;
}

.button-order {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.button-order:hover {
  opacity: 0.8;
}

/* order history */

.h3::first-letter {
  text-transform: uppercase;
}

.items-start {
  align-items: start;
}

.orders-history {
  width: 100%;
  max-width: 800px;
}

.order-history__list {
  display: grid;
  grid-template-columns: 1fr auto minmax(100px, auto);
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;

  .order-history__title {
    display: flex;
    flex-direction: column;
    gap: 0;

    .weight {
      font-style: italic;
    }
  }

  .order-history__name {
    font-size: 20px;
    line-height: 1.2;
  }

  .order-history__quantity {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    color: #666;
  }

  .order-history__total {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    text-align: right;
  }
}

.order-history__comment {
  span {
    color: #e11d48;
  }

  p {
    color: #666;
  }
}

.order-history__total-amount {
  font-weight: 500;
}

@media (max-width: 650px) {
  .order-history__list {
    grid-template-columns: 1fr minmax(100px, auto);
    gap: 5px;

    .order-history__title {
      grid-column: 1 / -1;
    }

    .order-history__quantity {
      text-align: right;
    }

    .order-history__title:not(:first-child) {
      margin-top: 5px;
    }
  }
}

.menu {
  flex: 1;
  padding: 8px 0;

  display: flex;
  flex-direction: row;
  gap: 10px;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  user-select: none;

  @media (max-width: 768px) {
    gap: 8px;
  }

  @media (max-width: 450px) {
    gap: 6px;
  }

  a {
    display: flex;
    white-space: nowrap;
    border-radius: 14px;
    background: #f3f4f6;
    padding-top: 4px 12px;
    font-size: 10px;
    font-weight: 300;
    line-height: 1;
    transition:
      background 0.2s ease-in-out,
      transform 0.2s ease-in-out;

    &.selected,
    &:hover {
      transform: translateY(-2px);
      background: #d4d4d8;
    }

    @media (min-width: 640px) {
      padding: 8px 15px;
    }

    @media (min-width: 330px) {
      padding: 6px 14px;
      font-size: 14px;
    }
  }
}
