textarea {
  max-width: 500px;
  max-height: 100px;
}

/* MAIN */

.order-page {
  width: 100%;
  background-color: var(--color-background);
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.order-container {
  display: flex;
  gap: 16px;
  background-color: var(--color-card-bg);
  padding: 16px;
  border-radius: 24px;
  max-width: 1440px;
  width: 100%;
  box-shadow: 0 4px 8px var(--color-card-shadow);
  justify-content: space-between;
  margin-bottom: 120px;
  padding-left: 50px;
}

.order-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}

.order-form h2 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
}

.order-form label {
  font-size: 14px;
  font-weight: 500;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-field {
  padding-left: 10px;
  padding-top: 10px;
}

.order-form select,
.order-form input[type="time"],
.order-form input[type="text"] {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  margin-top: 4px;
}

.order-footer {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.total-price {
  font-weight: 700;
  font-size: 24px;
  margin-left: 37px;
}

.order-summary {
  width: 560px;
  box-sizing: border-box;
  padding-right: 12px;
}

.order-summary h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.order-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.order-summary-header h2 {
  margin-bottom: 0;
}

.clear-cart {
  background: none;
  border: none;
  color: #6b6b6b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: .2s;
}

.clear-cart:hover {
  color: var(--color-text-dark);
}

.order-items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.order-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.order-items img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.item-main-info {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  flex: 1 1 0;
  margin-right: 24px;
}

.item-title {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 4px;
  color: #222;
}

.item-options-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-option {
  color: #888;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
}

.item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  margin-right: 24px;
}

.item-qty-bg {
  display: flex;
  align-items: center;
  background: #f5f4f2;
  border-radius: 20px;
  padding: 4px 16px;
  gap: 16px;
  height: 36px;
  min-width: 90px;
  justify-content: center;
  box-sizing: border-box;
}

.item-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  border-radius: 50%;
  transition: background 0.2s;
}

.item-qty-btn:hover {
  background: #ececec;
}

.item-qty {
  min-width: 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.item-price {
  font-weight: 600;
  font-size: 18px;
  color: #222;
  margin-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.checkout {
  width: 223px;
  height: 40px;
  cursor: pointer;
  border: none;
  border-radius: 18px;
  background-color: var(--color-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text-light);
}

.checkout:hover {
  transition: .3s;
  background-color: var(--color-button-hover);
  color: var(--color-text-light);
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin-right: 200px;
}

.empty-cart img {
  width: 300px;
}

.empty-cart a {
  color: var(--color-primary);
}

.empty-cart a:hover {
  color: var(--color-primary-hover);
}

.item-controls-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}

@media (max-width: 1200px) {
  .order-container {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 20px;
  }

  .order-summary {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .order-page {
    padding: 20px 4px;
  }

  .order-container {
    flex-direction: column;
    gap: 16px;
    padding: 10px;
    min-width: 0;
  }

  .order-summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .order-items li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
  }

  .order-items img {
    width: 56px;
    height: 56px;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .item-main-info {
    margin-right: 0;
    min-width: 0;
  }

  .item-controls-row {
    width: 100%;
    max-width: 320px;
    margin-left: 0;
    margin-top: 8px;
    gap: 8px;
    justify-content: flex-start;
  }

  .item-quantity {
    margin-right: 0;
    min-width: 0;
    width: auto;
    justify-content: flex-start;
  }

  .item-qty-bg {
    min-width: 0;
    padding: 4px 10px;
    gap: 10px;
    height: 32px;
  }

  .item-price {
    align-self: center;
    margin-top: 0;
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .order-summary h2 {
    font-size: 18px;
  }

  .order-items img {
    width: 40px;
    height: 40px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-option {
    font-size: 11px;
  }

  .item-qty-btn {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }

  .item-qty {
    font-size: 13px;
  }

  .item-price {
    font-size: 14px;
  }

  .order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .checkout {
    width: 70%;
    font-size: 14px;
    height: 36px;
  }

  .total-price {
    font-size: 20px;
    margin-left: 0;
    text-align: right;
  }

  .empty-cart {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .empty-cart img {
    width: 100px;
  }

  .empty-cart p {
    font-size: 16px;
  }
  
  .empty-cart .btn {
    font-size: 14px;
  }
}