/* Tổng quan */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

/* Căn chỉnh giỏ hàng và các phần tử trong .user_option */
.user_option {
  display: flex; /* Sắp xếp các phần tử ngang */
  align-items: center; /* Căn giữa theo chiều dọc */
  gap: 15px; /* Khoảng cách giữa các phần tử */
}

.user_option a {
  display: flex; /* Căn chỉnh ngang biểu tượng và số giỏ hàng */
  align-items: center; /* Căn giữa theo chiều dọc */
  gap: 5px; /* Khoảng cách giữa biểu tượng và số */
  text-decoration: none; /* Loại bỏ gạch chân */
}

.user_option svg {
  width: 24px; /* Kích thước biểu tượng giỏ hàng */
  height: 24px;
}

.user_option #cart-count {
  font-size: 16px;
  font-weight: bold;
}

/* Các phần tử trong giỏ hàng */
#cart-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

#cart-items {
  max-height: 300px;
  overflow-y: auto;
}

#total-price {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
}

.cart-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px; /* Khoảng cách giữa các nút */
}

.cart-item-controls button {
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0; /* Loại bỏ khung to */
}

.cart-item-controls .quantity {
  font-size: 1.5em;
  text-align: center;
  width: 30px; /* Kích thước nhỏ gọn hơn */
}

.cart-item-controls button.remove {
  font-size: 1.5em;
  background: none;
  border: none;
  cursor: pointer;
  color: #ff4d4f;
  margin-left: 10px; /* Khoảng cách giữa nút xóa và các nút điều khiển số lượng */
}

.cart-item-controls button.remove:hover {
  color: #d9363e;
}

/* Nút thanh toán */
#checkout-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

#checkout-btn:hover {
  background-color: #218838;
}

button {
  display: block;
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.special-instructions,
.add-coupon {
  background-color: #28a745;
}

.special-instructions:hover,
.add-coupon:hover {
  background-color: #218838;
}

#special-instructions-text,
#coupon-code-text {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}
/* Modal cho form thanh toán */
#cart-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 27%; /* Adjust as needed */
  max-height: 100vh; /* Adjust as needed */
  overflow-y: auto; /* Add this line */
}

.modal-content {
  display: flex;
  flex-direction: column;
}
/* Modal cho form thanh toán */
#checkout-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 400px;
}

#checkout-modal .modal-content {
  display: flex;
  flex-direction: column;
}

#checkout-modal label {
  margin-top: 10px;
}

#checkout-modal input,
#checkout-modal select {
  margin-top: 5px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

#checkout-modal button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#checkout-modal button:hover {
  background-color: #0056b3;
}
/* Modal cho form thanh toán */
#checkout-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 400px;
}

#checkout-modal .modal-content {
  display: flex;
  flex-direction: column;
}

#checkout-modal label {
  margin-top: 10px;
}

#checkout-modal input,
#checkout-modal select,
#checkout-modal textarea {
  margin-top: 5px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

#checkout-modal button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

#checkout-modal button:hover {
  background-color: #0056b3;
}
/* Modal cho form thanh toán */
#cart-modal,
#checkout-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 400px;
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin-top: 10px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  margin-top: 5px;
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
}

.modal-content button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #0056b3;
}

#coupon-message {
  margin-top: 10px;
  color: red;
}
