@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #666;
  font-family: "Montserrat", sans-serif;
}

/* Overlay */
.overlay {
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Card */
.meal-card {
  width: 650px;
  max-width: 95%;
  background: #ffffff;
  border-radius: 14px;
  border: 3px solid white;
  padding: 32px;
}

/* Title & Header Flex */
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.clear-all-btn {
  background: transparent;
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-all-btn:hover {
  background: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 68, 68, 0.1);
}

.clear-all-btn:active {
  transform: translateY(0);
}

/* Subtitle */
.subtitle {
  margin-top: 15px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.6;
}

/* ORDER CONTEXT */
.order-context-summary {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.context-item {
  display: flex;
  gap: 8px;
  font-size: 15px;
}

.context-label {
  font-weight: 600;
  color: #555;
}

.context-value {
  color: #2C6022;
  font-weight: 700;
}

/* Divider */
.divider {
  height: 1px;
  background: #000000;
  border: 1px;
  margin: 24px 0;
}

/* Day list */
.day-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.week-group {
  margin-bottom: 10px;
}

.week-header {
  font-size: 18px;
  color: #2e7d32;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e0e0e0;
}

.week-days-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 10px;
}

/* Day row */
.day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Text */
.day-title {
  font-size: 16px;
  font-weight: 600;
}

.day-text p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #222;
}

/* Icon button */
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn img {
  width: 18px;
  height: 18px;
}



.icon-btn:hover {
  background: #e8f5e9;
  border-radius: 0.2px;
}



/* MODAL BACKGROUND */
.edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* MODAL BOX */
.edit-modal-content {
  background: #fff;
  width: 400px;
  max-width: 90%;
  max-height: 80vh;
  padding: 30px;
  border-radius: 20px;
  animation: scaleIn 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.edit-modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 10px;
}

.edit-options {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 25px;
  padding-right: 10px;
}

.edit-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f9f9f9;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
}

.edit-options label:hover {
  background: #e8f5e9;
}

.edit-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2C6022;
}

.edit-actions {
  display: flex;
  gap: 12px;
}

.edit-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.save-btn {
  background: #2C6022;
  color: #fff;
}

.save-btn:hover {
  background: #1e4d16;
}

.cancel-btn {
  background: #eee;
  color: #333;
}

.cancel-btn:hover {
  background: #ddd;
}





/* Footer submit */
.footer {
  width: 650px;
  max-width: 95%;
  display: flex;
  justify-content: flex-end;
}

.submit-btn {
  background: #2C6022;
  color: #fff;
  border: none;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  /* remove underline */
}

.submit-btn:hover {
  background: #2C6022;
}