.nutrition-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 34, 34, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1500;
}

.nutrition-modal.is-open {
  display: flex;
}

.nutrition-modal-dialog {
  width: min(640px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.nutrition-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nutrition-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: #164a4a;
  margin: 0;
}

.nutrition-modal-close {
  border: 0;
  border-radius: 10px;
  background: #efe8db;
  color: #164a4a;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.nutrition-modal-img {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.nutrition-modal-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.nutrition-modal-img[hidden] {
  display: none;
}

.nutrition-modal-text {
  margin: 0 0 20px;
  color: #6f7d73;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.nutrition-modal-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 28px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: #64af9d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.nutrition-modal-buy:hover:not(.is-disabled) {
  background: #1b6b6b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 175, 157, 0.4);
}

.nutrition-modal-buy.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}
