/* 购物车页面样式 */
.cart-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px - 60px - 80px); /* 减去顶部导航栏、底部导航栏和包厢选择的高度 */
  background-color: #f5f5f5;
}

/* 包厢号选择样式 */
.room-selection {
  background-color: white;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.room-selection-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.room-selection-content {
  display: flex;
  flex-direction: column;
}

.room-input-group {
  display: flex;
  flex-direction: column;
}

.room-autocomplete {
  position: relative;
}

.room-autocomplete input {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

.room-autocomplete input::placeholder {
  color: #999;
}

.room-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  z-index: 10;
  display: none;
}

.room-suggestions.show {
  display: block;
}

.suggestion-item {
  padding: 10px 15px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-item.active {
  background-color: #f0f0f0;
}

.room-dropdown {
  position: relative;
}

.room-dropdown select {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  color: #333;
}

.room-dropdown i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.room-input input {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

.room-input input::placeholder {
  color: #999;
}

/* 购物车项目样式 */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* 空购物车样式 */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
}

.empty-cart i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-cart p {
  font-size: 16px;
  margin-bottom: 20px;
}

.go-shopping-btn {
  background-color: #1CBBB4;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}

.cart-item {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 15px;
  display: flex;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
}

.item-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.item-time {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-price {
  font-size: 16px;
  color: #FF5722;
  font-weight: 500;
}

.item-quantity {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.quantity-btn.minus {
  color: #999;
}

.quantity-btn.plus {
  background-color: #1CBBB4;
  color: white;
}

.quantity-input {
  width: 30px;
  text-align: center;
  border: none;
  font-size: 15px;
  background-color: transparent;
}

.delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 12px;
  cursor: pointer;
}

/* 结算栏样式 */
.checkout-bar {
  height: 60px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.total-info {
  display: flex;
  align-items: baseline;
}

.total-label {
  font-size: 14px;
  color: #666;
  margin-right: 5px;
}

.total-price {
  font-size: 20px;
  font-weight: bold;
  color: #FF5722;
}

.checkout-btn {
  background-color: #1CBBB4;
  color: white;
  height: 40px;
  padding: 0 25px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.checkout-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 清空购物车按钮 */
.clear-cart {
  color: #666;
  font-size: 14px;
  cursor: pointer;
} 