body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f4f4f4;
  color: #333;
}
.container {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
  color: #d32f2f;
  text-align: center;
  margin-bottom: 30px;
}
.form-section {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.left-panel, .right-panel {
  flex: 1;
  min-width: 300px;
}
h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  margin-top: 0;
  margin-bottom: 20px;
  color: #555;
}
.input-group {
  margin-bottom: 15px;
}
.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="tel"] {
  width: calc(100% - 22px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.flavor-list {
  margin-top: 10px;
}
.flavor-item {
  display: block;
  margin-bottom: 5px;
  font-size: 1em;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}
.flavor-item:last-child {
  border-bottom: none;
}
.flavor-item label {
  font-size: 1.3em;
  font-weight: bold;
  display: inline-block;
  width: 65%;
  text-align: left;
  margin-right: 5px;
  vertical-align: middle;
}
.flavor-item input[type="number"] {
  display: inline-block;
  width: 30%;
  text-align: center;
  vertical-align: middle;
  font-size: 1.3em;
  font-weight: bold;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.error-message {
  font-size: 1.5em;
  color: red;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
}
.success-message {
  color: green;
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
}
.submit-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-top: 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}
.submit-button:hover {
  background-color: #45a049;
}
.submit-button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .form-section {
	flex-direction: column;
  }
  .left-panel, .right-panel {
	min-width: auto;
	width: 100%;
  }
}

#shipDate {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 12px 14px;
  height: 48px;
  line-height: 48px;
  width: calc(100% - 22px);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* 取貨時間（備註）下拉：外觀與 shipDate 一致 */
#pickupTimeSlot {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 6px 8px;
  height: 48px;
  width: calc(100% - 22px);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fff;
}

/* 小螢幕一致放大 */
@media (max-width: 768px) {
  #pickupTimeSlot {
    font-size: 1.8rem;
    height: 54px;
    padding: 12px 16px;
  }
}

.input-group select {
  width: calc(100% - 22px);
  padding: 2px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

label {
  font-weight: bold;
  font-size: 1.5em;
  display: block;
  margin-bottom: 5px;
}
.summary-container {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}
.summary-item,
.summary-total-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 1.1em;
  border-bottom: 1px dashed #eee;
}
.summary-total-item {
  margin-top: 10px;
  border-top: 2px solid #333;
  border-bottom: none;
  font-size: 1.5em;
  font-weight: bold;
  color: #D32F2F;
}
.summary-value {
  font-weight: bold;
  color: #333;
}
.summary-total-item .summary-value {
  color: #D32F2F;
}
label[for="announce"] {
  color: #d32f2f;
  font-weight: bold;
  font-size: 1.3em;
  display: block;
  margin-top: 10px;
}

@media (max-width: 768px) {
  #shipDate {
	font-size: 1.8rem;
	height: 54px;
	line-height: 54px;
	padding: 12px 16px;
  }
}
/* ===== 訂購條件確認 Modal ===== */
#termsModal {
  font-family: Arial, sans-serif;
}
#termsAgreeBtn:hover {
  background-color: #b71c1c !important;
}
#termsCancelBtn:hover {
  background-color: #555 !important;
}
@media (max-width: 600px) {
  #termsModal > div {
    margin: 20px 12px !important;
    padding: 20px 16px !important;
  }
  #termsModal > div > div:last-child {
    flex-direction: column !important;
  }
}
